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

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

Issue 2903973002: Rich editable text implementation using spannables (Closed)
Patch Set: Address feedback. 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 // The RGBA foreground color of this subtree, as an integer. 659 // The RGBA foreground color of this subtree, as an integer.
660 long? color; 660 long? color;
661 661
662 // The RGBA background color of this subtree, as an integer. 662 // The RGBA background color of this subtree, as an integer.
663 long? backgroundColor; 663 long? backgroundColor;
664 664
665 // The RGBA color of an input element whose value is a color. 665 // The RGBA color of an input element whose value is a color.
666 long? colorValue; 666 long? colorValue;
667 667
668 // Bit-map of text styles: Bold, italic, underline, line through.
669 long? textStyle;
michaelpg 2017/06/08 21:16:12 This isn't sufficient documentation -- what are th
David Tseng 2017/06/08 22:20:09 Done.
michaelpg 2017/06/08 22:27:41 Thanks!
670
668 // 671 //
669 // Walking the tree. 672 // Walking the tree.
670 // 673 //
671 674
672 AutomationNode[] children; 675 AutomationNode[] children;
673 AutomationNode? parent; 676 AutomationNode? parent;
674 AutomationNode? firstChild; 677 AutomationNode? firstChild;
675 AutomationNode? lastChild; 678 AutomationNode? lastChild;
676 AutomationNode? previousSibling; 679 AutomationNode? previousSibling;
677 AutomationNode? nextSibling; 680 AutomationNode? nextSibling;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 // Everything in the tree between the two node/offset pairs gets included 807 // Everything in the tree between the two node/offset pairs gets included
805 // in the selection. The anchor is where the user started the selection, 808 // in the selection. The anchor is where the user started the selection,
806 // while the focus is the point at which the selection gets extended 809 // while the focus is the point at which the selection gets extended
807 // e.g. when dragging with a mouse or using the keyboard. For nodes with 810 // e.g. when dragging with a mouse or using the keyboard. For nodes with
808 // the role staticText, the offset gives the character offset within 811 // the role staticText, the offset gives the character offset within
809 // the value where the selection starts or ends, respectively. 812 // the value where the selection starts or ends, respectively.
810 [nocompile] static void setDocumentSelection( 813 [nocompile] static void setDocumentSelection(
811 SetDocumentSelectionParams params); 814 SetDocumentSelectionParams params);
812 }; 815 };
813 }; 816 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698