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

Unified Diff: chrome/common/extensions/api/automation.idl

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Better solution Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/automation.idl
diff --git a/chrome/common/extensions/api/automation.idl b/chrome/common/extensions/api/automation.idl
index f9dc153bc3c624f9e1095e09738bd4b61632e0cf..98d944109e1398b267bc7567f7e6d522d42e63ea 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -261,6 +261,11 @@
nodeRemoved
};
+ // A map from AutomationNode.nameFrom (a number) to a string describing
+ // the source of the computed name.
+ dictionary NameFromType {
+ };
+
dictionary Rect {
long left;
long top;
@@ -362,20 +367,20 @@
boolean isRootNode;
// The role of this node.
- automation.RoleType role;
+ RoleType role;
// The $(ref:automation.StateType)s describing this node.
object state;
// The rendered location (as a bounding box) of this node in global
// screen coordinates.
- automation.Rect location;
+ Rect location;
// Computes the bounding box of a subrange of this node in global screen
// coordinates. Returns the same as |location| if range information
// is not available. The start and end indices are zero-based offsets
// into the node's "name" string attribute.
- static automation.Rect boundsForRange(long startIndex, long endIndex);
+ static Rect boundsForRange(long startIndex, long endIndex);
// The purpose of the node, other than the role, if any.
DOMString description;
@@ -388,6 +393,9 @@
// Accessible Name Calculation</a> process.
DOMString name;
+ // The source of the name. Use NameFromType to convert this to a string.
+ long nameFrom;
+
// The value for this node: for example the <code>value</code> attribute of
// an <code>&lt;input&gt; element.
DOMString value;
@@ -423,7 +431,7 @@
// The node referred to by <code>aria-activedescendant</code>, where
// applicable
- AutomationNode activedescendant;
+ AutomationNode activeDescendant;
//
// Link attributes.
@@ -474,6 +482,16 @@
// The input type, like email or number.
DOMString textInputType;
+ // An array of indexes of the start position of each text marker.
+ object? markerStarts;
+
+ // An array of indexes of the end position of each text marker.
+ object? markerEnds;
+
+ // An array of numerical types indicating the type of each text marker,
+ // such as a spelling error.
+ object? markerTypes;
+
//
// Tree selection attributes (available on root nodes only)
//
@@ -556,6 +574,16 @@
boolean containerLiveBusy;
//
+ // Miscellaneous attributes.
+ //
+
+ // A map containing all HTML attributes and their values
+ object? htmlAttributes;
+
+ // The input type of a text field, such as "text" or "email".
+ DOMString? inputType;
+
+ //
// Walking the tree.
//

Powered by Google App Engine
This is Rietveld 408576698