summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/extensions/api/automation.idl
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 15:05:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:33:47 +0000
commite684a3455bcc29a6e3e66a004e352dea4e1141e7 (patch)
treed55b4003bde34d7d05f558f02cfd82b2a66a7aac /chromium/chrome/common/extensions/api/automation.idl
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-e684a3455bcc29a6e3e66a004e352dea4e1141e7.tar.gz
BASELINE: Update Chromium to 72.0.3626.110 and Ninja to 1.9.0
Change-Id: Ic57220b00ecc929a893c91f5cc552f5d3e99e922 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/chrome/common/extensions/api/automation.idl')
-rw-r--r--chromium/chrome/common/extensions/api/automation.idl16
1 files changed, 11 insertions, 5 deletions
diff --git a/chromium/chrome/common/extensions/api/automation.idl b/chromium/chrome/common/extensions/api/automation.idl
index 299d02c67e2..0985048ecd5 100644
--- a/chromium/chrome/common/extensions/api/automation.idl
+++ b/chromium/chrome/common/extensions/api/automation.idl
@@ -63,6 +63,8 @@
stateChanged,
textChanged,
textSelectionChanged,
+ windowActivated,
+ windowDeactivated,
treeChanged,
valueChanged
};
@@ -288,6 +290,7 @@
doDefault,
focus,
getImageData,
+ getTextLocation,
hitTest,
increment,
loadInlineTextBoxes,
@@ -486,6 +489,8 @@
// Callback called for actions with a response.
callback PerformActionCallback = void(boolean result);
callback PerformActionCallbackWithNode = void(AutomationNode node);
+ callback BoundsForRangeCallback = void(Rect bounds);
+
dictionary CustomAction {
long id;
@@ -512,11 +517,12 @@
// screen coordinates.
Rect? location;
- // Computes the bounding box of a subrange of this node in global screen
- // coordinates. Returns the same as |location| if range information
- // is not available. The start and end indices are zero-based offsets
- // into the node's "name" string attribute.
- static Rect boundsForRange(long startIndex, long endIndex);
+ // Determines the location of the text within the node specified by
+ // |startIndex| and |endIndex|, inclusively. Invokes |callback| with the
+ // bounding rectangle, in screen coordinates. |callback| can be invoked
+ // either synchronously or asynchronously.
+ static void boundsForRange(long startIndex, long endIndex,
+ BoundsForRangeCallback callback);
// The location (as a bounding box) of this node in global screen
// coordinates without applying any clipping from ancestors.