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

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

Issue 1458723002: Finish implementing ChromeVox Next active indicator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load_key_map
Patch Set: Addressed feedback and added tests Created 5 years, 1 month 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 // Whether this AutomationNode is a root node. 328 // Whether this AutomationNode is a root node.
329 boolean isRootNode; 329 boolean isRootNode;
330 330
331 // The role of this node. 331 // The role of this node.
332 automation.RoleType role; 332 automation.RoleType role;
333 333
334 // The $(ref:automation.StateType)s describing this node. 334 // The $(ref:automation.StateType)s describing this node.
335 object state; 335 object state;
336 336
337 // The rendered location (as a bounding box) of this node within the frame. 337 // The rendered location (as a bounding box) of this node in global
338 // screen coordinates.
338 automation.Rect location; 339 automation.Rect location;
339 340
341 // Computes the bounding box of a subrange of this node in global screen
342 // coordinates. Returns the same as |location| if range information
Peter Lundblad 2015/11/23 13:39:08 Uber-nit: the standard in this file is one space a
dmazzoni 2015/11/23 17:22:49 Done.
343 // is not available. The start and end indices are zero-based offsets
344 // into the node's "name" string attribute.
345 static automation.Rect boundsForRange(long startIndex, long endIndex);
346
340 // The purpose of the node, other than the role, if any. 347 // The purpose of the node, other than the role, if any.
341 DOMString description; 348 DOMString description;
342 349
343 // The help text for the node, if any. 350 // The help text for the node, if any.
344 DOMString help; 351 DOMString help;
345 352
346 // The accessible name for this node, via the 353 // The accessible name for this node, via the
347 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation"> 354 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation">
348 // Accessible Name Calculation</a> process. 355 // Accessible Name Calculation</a> process.
349 DOMString name; 356 DOMString name;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 // Everything in the tree between the two node/offset pairs gets included 592 // Everything in the tree between the two node/offset pairs gets included
586 // in the selection. The anchor is where the user started the selection, 593 // in the selection. The anchor is where the user started the selection,
587 // while the focus is the point at which the selection gets extended 594 // while the focus is the point at which the selection gets extended
588 // e.g. when dragging with a mouse or using the keyboard. For nodes with 595 // e.g. when dragging with a mouse or using the keyboard. For nodes with
589 // the role staticText, the offset gives the character offset within 596 // the role staticText, the offset gives the character offset within
590 // the value where the selection starts or ends, respectively. 597 // the value where the selection starts or ends, respectively.
591 [nocompile] static void setDocumentSelection( 598 [nocompile] static void setDocumentSelection(
592 SetDocumentSelectionParams params); 599 SetDocumentSelectionParams params);
593 }; 600 };
594 }; 601 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698