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

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: 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 within the frame.
338 automation.Rect location; 338 automation.Rect location;
339 339
340 // Computes the bounding box of a subrange of this node within the frame.
Peter Lundblad 2015/11/20 11:15:03 Sorry for being ignorant about coordinate systems
dmazzoni 2015/11/20 23:35:14 Good catch. Actually this returns global screen co
341 // Returns the same as |location| if range information is not available.
342 static automation.Rect boundsForRange(long startIndex, long endIndex);
Peter Lundblad 2015/11/20 11:15:03 Document what the start and end indices index into
dmazzoni 2015/11/20 23:35:14 Done.
343
340 // The purpose of the node, other than the role, if any. 344 // The purpose of the node, other than the role, if any.
341 DOMString description; 345 DOMString description;
342 346
343 // The help text for the node, if any. 347 // The help text for the node, if any.
344 DOMString help; 348 DOMString help;
345 349
346 // The accessible name for this node, via the 350 // The accessible name for this node, via the
347 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation"> 351 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation">
348 // Accessible Name Calculation</a> process. 352 // Accessible Name Calculation</a> process.
349 DOMString name; 353 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 589 // 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, 590 // 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 591 // 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 592 // 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 593 // the role staticText, the offset gives the character offset within
590 // the value where the selection starts or ends, respectively. 594 // the value where the selection starts or ends, respectively.
591 [nocompile] static void setDocumentSelection( 595 [nocompile] static void setDocumentSelection(
592 SetDocumentSelectionParams params); 596 SetDocumentSelectionParams params);
593 }; 597 };
594 }; 598 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698