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

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

Issue 2584513006: Split out non-auto-generatable externs from auto generated ones. (Closed)
Patch Set: Use bound enum values. Created 4 years 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..13281a63a56bf9993a14467151d842fdafdc6b35 100644
--- a/chrome/common/extensions/api/automation.idl
+++ b/chrome/common/extensions/api/automation.idl
@@ -8,222 +8,6 @@
// used to programmatically interact with a page by examining names, roles, and
// states, listening for events, and performing actions on nodes.
[nocompile] namespace automation {
- // Keep the following enums in sync with 'ui/accessibility/ax_enums.idl'.
- // They are kept here purely for extension docs generation.
-
- // Possible events fired on an $(ref:automation.AutomationNode).
- enum EventType {
- activedescendantchanged,
- alert,
- ariaAttributeChanged,
- autocorrectionOccured,
- blur,
- checkedStateChanged,
- childrenChanged,
- clicked,
- documentSelectionChanged,
- expandedChanged,
- focus,
- imageFrameUpdated,
- hide,
- hover,
- invalidStatusChanged,
- layoutComplete,
- liveRegionCreated,
- liveRegionChanged,
- loadComplete,
- locationChanged,
- mediaStartedPlaying,
- mediaStoppedPlaying,
- menuEnd,
- menuListItemSelected,
- menuListValueChanged,
- menuPopupEnd,
- menuPopupStart,
- menuStart,
- mouseCanceled,
- mouseDragged,
- mouseMoved,
- mousePressed,
- mouseReleased,
- rowCollapsed,
- rowCountChanged,
- rowExpanded,
- scrollPositionChanged,
- scrolledToAnchor,
- selectedChildrenChanged,
- selection,
- selectionAdd,
- selectionRemove,
- show,
- textChanged,
- textSelectionChanged,
- treeChanged,
- valueChanged
- };
-
- // Describes the purpose of an $(ref:automation.AutomationNode).
- enum RoleType {
- abbr,
- alertDialog,
- alert,
- annotation,
- application,
- article,
- audio,
- banner,
- blockquote,
- busyIndicator,
- button,
- buttonDropDown,
- canvas,
- caption,
- cell,
- checkBox,
- client,
- colorWell,
- columnHeader,
- column,
- comboBox,
- complementary,
- contentInfo,
- date,
- dateTime,
- definition,
- descriptionListDetail,
- descriptionList,
- descriptionListTerm,
- desktop,
- details,
- dialog,
- directory,
- disclosureTriangle,
- div,
- document,
- embeddedObject,
- figcaption,
- figure,
- footer,
- form,
- grid,
- group,
- heading,
- iframe,
- iframePresentational,
- ignored,
- imageMapLink,
- imageMap,
- image,
- inlineTextBox,
- inputTime,
- labelText,
- legend,
- lineBreak,
- link,
- listBoxOption,
- listBox,
- listItem,
- listMarker,
- list,
- locationBar,
- log,
- main,
- mark,
- marquee,
- math,
- menuBar,
- menuButton,
- menuItem,
- menuItemCheckBox,
- menuItemRadio,
- menuListOption,
- menuListPopup,
- menu,
- meter,
- navigation,
- note,
- outline,
- pane,
- paragraph,
- popUpButton,
- pre,
- presentational,
- progressIndicator,
- radioButton,
- radioGroup,
- region,
- rootWebArea,
- rowHeader,
- row,
- ruby,
- ruler,
- svgRoot,
- scrollArea,
- scrollBar,
- seamlessWebArea,
- search,
- searchBox,
- slider,
- sliderThumb,
- spinButtonPart,
- spinButton,
- splitter,
- staticText,
- status,
- switch,
- tabGroup,
- tabList,
- tabPanel,
- tab,
- tableHeaderContainer,
- table,
- textField,
- time,
- timer,
- titleBar,
- toggleButton,
- toolbar,
- treeGrid,
- treeItem,
- tree,
- unknown,
- tooltip,
- video,
- webArea,
- webView,
- window
- };
-
- // Describes characteristics of an $(ref:automation.AutomationNode).
- enum StateType {
- busy,
- checked,
- collapsed,
- default,
- disabled,
- editable,
- expanded,
- focusable,
- focused,
- haspopup,
- horizontal,
- hovered,
- invisible,
- linked,
- multiline,
- multiselectable,
- offscreen,
- pressed,
- protected,
- readOnly,
- required,
- richlyEditable,
- selectable,
- selected,
- vertical,
- visited
- };
-
// Possible changes to the automation tree. For any given atomic change
// to the tree, each node that's added, removed, or changed, will appear
// in exactly one TreeChange, with one of these types.
@@ -270,12 +54,12 @@
// Arguments for the find() and findAll() methods.
[nocompile, noinline_doc] dictionary FindParams {
- RoleType? role;
+ DOMString? role;
- // A map of $(ref:automation.StateType) to boolean, indicating for each
+ // A map of $(DOMString) to boolean, indicating for each
// state whether it should be set or not. For example:
- // <code>{ StateType.disabled: false }</code> would only match if
- // <code>StateType.disabled</code> was <em>not</em> present in the node's
+ // disabled: false would only match if
+ // disabled: false was <em>not</em> present in the node's
// <code>state</code> object.
object? state;
@@ -316,7 +100,7 @@
AutomationNode target;
// The type of the event.
- EventType type;
+ DOMString type;
// The source of this event.
DOMString eventFrom;
@@ -362,9 +146,9 @@
boolean isRootNode;
// The role of this node.
- automation.RoleType role;
+ DOMString role;
- // The $(ref:automation.StateType)s describing this node.
+ // The states describing this node.
object state;
// The rendered location (as a bounding box) of this node in global
@@ -600,11 +384,11 @@
// Adds a listener for the given event type and event phase.
static void addEventListener(
- EventType eventType, AutomationListener listener, boolean capture);
+ DOMString eventType, AutomationListener listener, boolean capture);
// Removes a listener for the given event type and event phase.
static void removeEventListener(
- EventType eventType, AutomationListener listener, boolean capture);
+ DOMString eventType, AutomationListener listener, boolean capture);
// Gets the first node in this node's subtree which matches the given CSS
// selector and is within the same DOM context.
@@ -646,7 +430,7 @@
// tree with a placeholder root node; listen for the "loadComplete" event to
// get a notification that the tree has fully loaded (the previous root node
// reference will stop working at or before this point).
- [nocompile] static void getTree(optional long tabId, RootCallback callback);
+ [nocompile] static void getTree(long tabId, RootCallback callback);
// Get the automation tree for the whole desktop which consists of all on
// screen views. Note this API is currently only supported on Chrome OS.
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/tools/check_chromevox.py ('k') | third_party/closure_compiler/externs/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698