diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /accessible/interfaces/nsIAccessibleTextLeafRange.idl | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
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; +}; |