| Index: chrome/renderer/resources/extensions/automation/automation_node.js
|
| diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| index 85211225d443168893012700f72b7330f169241f..3c875816498f55874e92a6a531616c8913526b60 100644
|
| --- a/chrome/renderer/resources/extensions/automation/automation_node.js
|
| +++ b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| @@ -939,46 +939,57 @@ AutomationRootNodeImpl.prototype = {
|
| },
|
| };
|
|
|
| -var AutomationNode = utils.expose('AutomationNode',
|
| - AutomationNodeImpl,
|
| - { functions: ['doDefault',
|
| - 'find',
|
| - 'findAll',
|
| - 'focus',
|
| - 'makeVisible',
|
| - 'matches',
|
| - 'setSelection',
|
| - 'showContextMenu',
|
| - 'addEventListener',
|
| - 'removeEventListener',
|
| - 'domQuerySelector',
|
| - 'toString',
|
| - 'boundsForRange'],
|
| - readonly: publicAttributes.concat(
|
| - ['parent',
|
| - 'firstChild',
|
| - 'lastChild',
|
| - 'children',
|
| - 'previousSibling',
|
| - 'nextSibling',
|
| - 'isRootNode',
|
| - 'role',
|
| - 'state',
|
| - 'location',
|
| - 'indexInParent',
|
| - 'root']) });
|
| -
|
| -var AutomationRootNode = utils.expose('AutomationRootNode',
|
| - AutomationRootNodeImpl,
|
| - { superclass: AutomationNode,
|
| - readonly: ['docTitle',
|
| - 'docUrl',
|
| - 'docLoaded',
|
| - 'docLoadingProgress',
|
| - 'anchorObject',
|
| - 'anchorOffset',
|
| - 'focusObject',
|
| - 'focusOffset'] });
|
| +function AutomationNode() {
|
| + privates(AutomationNode).constructPrivate(this, arguments);
|
| +}
|
| +utils.expose(AutomationNode, AutomationNodeImpl, {
|
| + functions: [
|
| + 'doDefault',
|
| + 'find',
|
| + 'findAll',
|
| + 'focus',
|
| + 'makeVisible',
|
| + 'matches',
|
| + 'setSelection',
|
| + 'showContextMenu',
|
| + 'addEventListener',
|
| + 'removeEventListener',
|
| + 'domQuerySelector',
|
| + 'toString',
|
| + 'boundsForRange',
|
| + ],
|
| + readonly: $Array.concat(publicAttributes, [
|
| + 'parent',
|
| + 'firstChild',
|
| + 'lastChild',
|
| + 'children',
|
| + 'previousSibling',
|
| + 'nextSibling',
|
| + 'isRootNode',
|
| + 'role',
|
| + 'state',
|
| + 'location',
|
| + 'indexInParent',
|
| + 'root',
|
| + ]),
|
| +});
|
| +
|
| +function AutomationRootNode() {
|
| + privates(AutomationRootNode).constructPrivate(this, arguments);
|
| +}
|
| +utils.expose(AutomationRootNode, AutomationRootNodeImpl, {
|
| + superclass: AutomationNode,
|
| + readonly: [
|
| + 'docTitle',
|
| + 'docUrl',
|
| + 'docLoaded',
|
| + 'docLoadingProgress',
|
| + 'anchorObject',
|
| + 'anchorOffset',
|
| + 'focusObject',
|
| + 'focusOffset',
|
| + ],
|
| +});
|
|
|
| AutomationRootNode.get = function(treeID) {
|
| return AutomationRootNodeImpl.get(treeID);
|
|
|