Index: chrome/common/extensions/api/automation.idl |
diff --git a/chrome/common/extensions/api/automation.idl b/chrome/common/extensions/api/automation.idl |
index f0fba7fda510459b5c92743caa9d4387e5f4f976..4dcf3f6cd99ccfe63cacd367ef7450e435714b49 100644 |
--- a/chrome/common/extensions/api/automation.idl |
+++ b/chrome/common/extensions/api/automation.idl |
@@ -263,6 +263,11 @@ |
nodeRemoved |
}; |
+ // A map from AutomationNode.nameFrom (a number) to a string describing |
+ // the source of the computed name. |
+ dictionary NameFromType { |
David Tseng
2017/01/10 23:24:32
Is this missing?
dmazzoni
2017/01/11 22:20:42
It wasn't possible to express in IDL before. As su
|
+ }; |
+ |
dictionary Rect { |
long left; |
long top; |
@@ -364,20 +369,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; |
@@ -390,6 +395,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><input> element. |
DOMString value; |
@@ -425,7 +433,7 @@ |
// The node referred to by <code>aria-activedescendant</code>, where |
// applicable |
- AutomationNode activedescendant; |
+ AutomationNode activeDescendant; |
// |
// Link attributes. |
@@ -476,6 +484,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) |
// |
@@ -558,6 +576,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; |
+ |
+ // |
David Tseng
2017/01/10 23:24:32
Please do a diff between automation_node.js and th
dmazzoni
2017/01/11 22:20:42
Done. Note that you had added the media ones to ch
|
// Walking the tree. |
// |