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

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

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Changes to c/c/e/a/PRESUBMIT.py Created 3 years, 6 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // is not available. The start and end indices are zero-based offsets 392 // is not available. The start and end indices are zero-based offsets
393 // into the node's "name" string attribute. 393 // into the node's "name" string attribute.
394 static Rect boundsForRange(long startIndex, long endIndex); 394 static Rect boundsForRange(long startIndex, long endIndex);
395 395
396 // The purpose of the node, other than the role, if any. 396 // The purpose of the node, other than the role, if any.
397 DOMString? description; 397 DOMString? description;
398 398
399 // The placeholder for this text field, if any. 399 // The placeholder for this text field, if any.
400 DOMString? placeholder; 400 DOMString? placeholder;
401 401
402 // The role description for this node.
403 DOMString? roleDescription;
404
402 // The accessible name for this node, via the 405 // The accessible name for this node, via the
403 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation"> 406 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation">
404 // Accessible Name Calculation</a> process. 407 // Accessible Name Calculation</a> process.
405 DOMString? name; 408 DOMString? name;
406 409
407 // The source of the name. 410 // The source of the name.
408 NameFromType? nameFrom; 411 NameFromType? nameFrom;
409 412
410 // The value for this node: for example the <code>value</code> attribute of 413 // The value for this node: for example the <code>value</code> attribute of
411 // an <code>&lt;input&gt; element. 414 // an <code>&lt;input&gt; element.
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 // Everything in the tree between the two node/offset pairs gets included 808 // Everything in the tree between the two node/offset pairs gets included
806 // in the selection. The anchor is where the user started the selection, 809 // in the selection. The anchor is where the user started the selection,
807 // while the focus is the point at which the selection gets extended 810 // while the focus is the point at which the selection gets extended
808 // e.g. when dragging with a mouse or using the keyboard. For nodes with 811 // e.g. when dragging with a mouse or using the keyboard. For nodes with
809 // the role staticText, the offset gives the character offset within 812 // the role staticText, the offset gives the character offset within
810 // the value where the selection starts or ends, respectively. 813 // the value where the selection starts or ends, respectively.
811 [nocompile] static void setDocumentSelection( 814 [nocompile] static void setDocumentSelection(
812 SetDocumentSelectionParams params); 815 SetDocumentSelectionParams params);
813 }; 816 };
814 }; 817 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698