summaryrefslogtreecommitdiffstats
path: root/accessible/interfaces/nsIAccessibleTextLeafRange.idl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /accessible/interfaces/nsIAccessibleTextLeafRange.idl
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'accessible/interfaces/nsIAccessibleTextLeafRange.idl')
-rw-r--r--accessible/interfaces/nsIAccessibleTextLeafRange.idl43
1 files changed, 43 insertions, 0 deletions
diff --git a/accessible/interfaces/nsIAccessibleTextLeafRange.idl b/accessible/interfaces/nsIAccessibleTextLeafRange.idl
new file mode 100644
index 0000000000..00b9cc4cad
--- /dev/null
+++ b/accessible/interfaces/nsIAccessibleTextLeafRange.idl
@@ -0,0 +1,43 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+/* 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/. */
+
+#include "nsISupports.idl"
+#include "nsIArray.idl"
+#include "nsIAccessibleText.idl"
+
+interface nsIAccessible;
+
+[scriptable, builtinclass, uuid(9181e777-8954-4f8f-8cee-32f9771e40d7)]
+interface nsIAccessibleTextLeafPoint : nsISupports
+{
+ attribute nsIAccessible accessible;
+
+ attribute long offset;
+
+ /**
+ * Find a boundary (word start, line start, etc.) in a specific direction.
+ * If no boundary is found, the start/end of the document is returned
+ * (depending on the direction).
+ *
+ * @param aBoundaryType [in] the boundary type to search for
+ * @param aDirection [in] search next or previous
+ * @param aFlags [in] optional flags for search
+ */
+ nsIAccessibleTextLeafPoint findBoundary(in AccessibleTextBoundary aBoundaryType,
+ in unsigned long aDirection,
+ in unsigned long aFlags);
+
+ const long DIRECTION_NEXT = 0x0;
+ const long DIRECTION_PREVIOUS = 0x1;
+
+ // Keep these flags up to date with the ones in TextLeafPoint.
+ const unsigned long BOUNDARY_FLAG_DEFAULT = 0x0;
+ // If current point is a matching boundary, return unchanged.
+ const unsigned long BOUNDARY_FLAG_INCLUDE_ORIGIN = 0x1;
+ // Do not search past end of editables.
+ const unsigned long BOUNDARY_FLAG_STOP_IN_EDITABLE = 0x2;
+ // Skip over list items in searches and don't consider them line or paragraph starts.
+ const unsigned long BOUNDARY_FLAG_SKIP_LIST_ITEM_MARKER = 0x4;
+};