diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /accessible/interfaces/nsIAccessibleTextLeafRange.idl | |
parent | Initial commit. (diff) | |
download | firefox-upstream/124.0.1.tar.xz firefox-upstream/124.0.1.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'accessible/interfaces/nsIAccessibleTextLeafRange.idl')
-rw-r--r-- | accessible/interfaces/nsIAccessibleTextLeafRange.idl | 43 |
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; +}; |