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

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

Issue 1705853002: NOT FOR REVIEW. ax tree focus with debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 4 years, 10 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // tab if no tabID is given, enabling automation if necessary. Returns a 610 // tab if no tabID is given, enabling automation if necessary. Returns a
611 // tree with a placeholder root node; listen for the "loadComplete" event to 611 // tree with a placeholder root node; listen for the "loadComplete" event to
612 // get a notification that the tree has fully loaded (the previous root node 612 // get a notification that the tree has fully loaded (the previous root node
613 // reference will stop working at or before this point). 613 // reference will stop working at or before this point).
614 [nocompile] static void getTree(optional long tabId, RootCallback callback); 614 [nocompile] static void getTree(optional long tabId, RootCallback callback);
615 615
616 // Get the automation tree for the whole desktop which consists of all on 616 // Get the automation tree for the whole desktop which consists of all on
617 // screen views. Note this API is currently only supported on Chrome OS. 617 // screen views. Note this API is currently only supported on Chrome OS.
618 [nocompile] static void getDesktop(RootCallback callback); 618 [nocompile] static void getDesktop(RootCallback callback);
619 619
620 // Get the automation node that currently has focus, globally. Will return
621 // null if none of the nodes in any loaded trees have focus.
622 [nocompile] static AutomationNode getFocus();
623
620 // Add a tree change observer. Tree change observers are static/global, they 624 // Add a tree change observer. Tree change observers are static/global, they
621 // listen to changes across all trees. Pass a filter to determine what 625 // listen to changes across all trees. Pass a filter to determine what
622 // specific tree changes to listen to, and note that listnening to all 626 // specific tree changes to listen to, and note that listnening to all
623 // tree changes can be expensive. 627 // tree changes can be expensive.
624 [nocompile] static void addTreeChangeObserver( 628 [nocompile] static void addTreeChangeObserver(
625 TreeChangeObserverFilter filter, TreeChangeObserver observer); 629 TreeChangeObserverFilter filter, TreeChangeObserver observer);
626 630
627 // Remove a tree change observer. 631 // Remove a tree change observer.
628 [nocompile] static void removeTreeChangeObserver( 632 [nocompile] static void removeTreeChangeObserver(
629 TreeChangeObserver observer); 633 TreeChangeObserver observer);
630 634
631 // Sets the selection in a tree. This creates a selection in a single 635 // Sets the selection in a tree. This creates a selection in a single
632 // tree (anchorObject and focusObject must have the same root). 636 // tree (anchorObject and focusObject must have the same root).
633 // Everything in the tree between the two node/offset pairs gets included 637 // Everything in the tree between the two node/offset pairs gets included
634 // in the selection. The anchor is where the user started the selection, 638 // in the selection. The anchor is where the user started the selection,
635 // while the focus is the point at which the selection gets extended 639 // while the focus is the point at which the selection gets extended
636 // e.g. when dragging with a mouse or using the keyboard. For nodes with 640 // e.g. when dragging with a mouse or using the keyboard. For nodes with
637 // the role staticText, the offset gives the character offset within 641 // the role staticText, the offset gives the character offset within
638 // the value where the selection starts or ends, respectively. 642 // the value where the selection starts or ends, respectively.
639 [nocompile] static void setDocumentSelection( 643 [nocompile] static void setDocumentSelection(
640 SetDocumentSelectionParams params); 644 SetDocumentSelectionParams params);
641 }; 645 };
642 }; 646 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc ('k') | chrome/common/extensions/chrome_extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698