Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/common/extensions/api/automation.idl

Issue 2238613002: Support output for Chrome's native find in ChromeVox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_markers
Patch Set: Don't forget to bit shift in SendTreeChanges (checking against cached overall tree filter). Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.automation</code> API allows developers to access the 5 // The <code>chrome.automation</code> API allows developers to access the
6 // automation (accessibility) tree for the browser. The tree resembles the DOM 6 // automation (accessibility) tree for the browser. The tree resembles the DOM
7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be 7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be
8 // used to programmatically interact with a page by examining names, roles, and 8 // used to programmatically interact with a page by examining names, roles, and
9 // states, listening for events, and performing actions on nodes. 9 // states, listening for events, and performing actions on nodes.
10 [nocompile] namespace automation { 10 [nocompile] namespace automation {
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 // The type of change. 322 // The type of change.
323 TreeChangeType type; 323 TreeChangeType type;
324 }; 324 };
325 325
326 // Possible tree changes to listen to using addTreeChangeObserver. 326 // Possible tree changes to listen to using addTreeChangeObserver.
327 // Note that listening to all tree changes can be expensive. 327 // Note that listening to all tree changes can be expensive.
328 enum TreeChangeObserverFilter { 328 enum TreeChangeObserverFilter {
329 noTreeChanges, 329 noTreeChanges,
330 liveRegionTreeChanges, 330 liveRegionTreeChanges,
331 textMarkerChanges,
331 allTreeChanges 332 allTreeChanges
332 }; 333 };
333 334
334 // A listener for changes on the <code>AutomationNode</code> tree. 335 // A listener for changes on the <code>AutomationNode</code> tree.
335 callback TreeChangeObserver = void(TreeChange treeChange); 336 callback TreeChangeObserver = void(TreeChange treeChange);
336 337
337 // A single node in an Automation tree. 338 // A single node in an Automation tree.
338 [nocompile, noinline_doc] dictionary AutomationNode { 339 [nocompile, noinline_doc] dictionary AutomationNode {
339 // The root node of the tree containing this AutomationNode. 340 // The root node of the tree containing this AutomationNode.
340 AutomationNode root; 341 AutomationNode root;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 // Everything in the tree between the two node/offset pairs gets included 645 // Everything in the tree between the two node/offset pairs gets included
645 // in the selection. The anchor is where the user started the selection, 646 // in the selection. The anchor is where the user started the selection,
646 // while the focus is the point at which the selection gets extended 647 // while the focus is the point at which the selection gets extended
647 // e.g. when dragging with a mouse or using the keyboard. For nodes with 648 // e.g. when dragging with a mouse or using the keyboard. For nodes with
648 // the role staticText, the offset gives the character offset within 649 // the role staticText, the offset gives the character offset within
649 // the value where the selection starts or ends, respectively. 650 // the value where the selection starts or ends, respectively.
650 [nocompile] static void setDocumentSelection( 651 [nocompile] static void setDocumentSelection(
651 SetDocumentSelectionParams params); 652 SetDocumentSelectionParams params);
652 }; 653 };
653 }; 654 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698