summaryrefslogtreecommitdiffstats
path: root/accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h
diff options
context:
space:
mode:
Diffstat (limited to 'accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h')
-rw-r--r--accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h b/accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h
new file mode 100644
index 0000000000..c6f2580ccc
--- /dev/null
+++ b/accessible/ipc/extension/mac/DocAccessiblePlatformExtChild.h
@@ -0,0 +1,87 @@
+/* vim: set ts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef mozilla_a11y_DocAccessiblePlatformExtChild_h
+#define mozilla_a11y_DocAccessiblePlatformExtChild_h
+
+#include "mozilla/a11y/PDocAccessiblePlatformExtChild.h"
+
+namespace mozilla {
+namespace a11y {
+
+class HyperTextAccessibleWrap;
+class DocAccessibleChild;
+
+class DocAccessiblePlatformExtChild : public PDocAccessiblePlatformExtChild {
+ public:
+ mozilla::ipc::IPCResult RecvRangeAt(
+ const uint64_t& aID, const int32_t& aOffset,
+ const EWhichRange& aRangeType, uint64_t* aStartContainer,
+ int32_t* aStartOffset, uint64_t* aEndContainer, int32_t* aEndOffset);
+
+ mozilla::ipc::IPCResult RecvNextClusterAt(const uint64_t& aID,
+ const int32_t& aOffset,
+ uint64_t* aNextContainer,
+ int32_t* aNextOffset);
+
+ mozilla::ipc::IPCResult RecvPreviousClusterAt(const uint64_t& aID,
+ const int32_t& aOffset,
+ uint64_t* aPrevContainer,
+ int32_t* aPrevOffset);
+
+ mozilla::ipc::IPCResult RecvTextForRange(const uint64_t& aID,
+ const int32_t& aStartOffset,
+ const uint64_t& aEndContainer,
+ const int32_t& aEndOffset,
+ nsString* aText);
+
+ mozilla::ipc::IPCResult RecvBoundsForRange(const uint64_t& aID,
+ const int32_t& aStartOffset,
+ const uint64_t& aEndContainer,
+ const int32_t& aEndOffset,
+ LayoutDeviceIntRect* aBounds);
+
+ mozilla::ipc::IPCResult RecvLengthForRange(const uint64_t& aID,
+ const int32_t& aStartOffset,
+ const uint64_t& aEndContainer,
+ const int32_t& aEndOffset,
+ int32_t* aLength);
+
+ mozilla::ipc::IPCResult RecvOffsetAtIndex(const uint64_t& aID,
+ const int32_t& aIndex,
+ uint64_t* aContainer,
+ int32_t* aOffset);
+
+ mozilla::ipc::IPCResult RecvRangeOfChild(const uint64_t& aID,
+ const uint64_t& aChild,
+ int32_t* aStartOffset,
+ int32_t* aEndOffset);
+
+ mozilla::ipc::IPCResult RecvLeafAtOffset(const uint64_t& aID,
+ const int32_t& aOffset,
+ uint64_t* aLeaf);
+
+ mozilla::ipc::IPCResult RecvAttributedTextForRange(
+ const uint64_t& aID, const int32_t& aStartOffset,
+ const uint64_t& aEndContainer, const int32_t& aEndOffset,
+ nsTArray<TextAttributesRun>* aAttributes);
+
+ MOZ_CAN_RUN_SCRIPT_BOUNDARY mozilla::ipc::IPCResult RecvSelectRange(
+ const uint64_t& aID, const int32_t& aStartOffset,
+ const uint64_t& aEndContainer, const int32_t& aEndOffset);
+
+ mozilla::ipc::IPCResult RecvApplyPostSearchFilter(
+ const nsTArray<uint64_t>& aAccessibles, const int32_t& aLimit,
+ const EWhichPostFilter& aSearchKey, const nsString& aSearchText,
+ nsTArray<uint64_t>* aMatches);
+
+ private:
+ HyperTextAccessibleWrap* IdToHyperTextAccessibleWrap(
+ const uint64_t& aID) const;
+};
+} // namespace a11y
+} // namespace mozilla
+
+#endif