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

Unified Diff: third_party/closure_compiler/externs/automation_custom.js

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
« no previous file with comments | « third_party/closure_compiler/externs/automation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/automation_custom.js
diff --git a/third_party/closure_compiler/externs/automation.js b/third_party/closure_compiler/externs/automation_custom.js
similarity index 80%
copy from third_party/closure_compiler/externs/automation.js
copy to third_party/closure_compiler/externs/automation_custom.js
index fd080cbb1195544e0318db209ba24e453fdde400..f1356f86d601ef563f0aff97df6e8c635958d393 100644
--- a/third_party/closure_compiler/externs/automation.js
+++ b/third_party/closure_compiler/externs/automation_custom.js
@@ -2,21 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This file was generated by:
-// tools/json_schema_compiler/compiler.py -g externs
-// chrome/common/extensions/api/automation.idl
-//
-// Further edits were applied by hand due to bugs / limitations in
-// json_schema_compiler.
-//
-// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
-
-/** @fileoverview Externs generated from namespace: automation */
-
-/**
- * @const
- */
-chrome.automation = {};
+// This file was hand written due to limitations in the extension system and the
+// idl parser.
/**
* @enum {string}
@@ -254,43 +241,6 @@ chrome.automation.DescriptionFromType = {
};
/**
- * @enum {string}
- */
-chrome.automation.TreeChangeType = {
- nodeCreated: 'nodeCreated',
- subtreeCreated: 'subtreeCreated',
- nodeChanged: 'nodeChanged',
- nodeRemoved: 'nodeRemoved',
-};
-
-/**
- * @typedef {{
- * left: number,
- * top: number,
- * width: number,
- * height: number
- * }}
- */
-chrome.automation.Rect;
-
-/**
- * @typedef {{
- * role: (!chrome.automation.RoleType|undefined),
- * state: (Object|undefined),
- * attributes: (Object|undefined)
- * }}
- */
-chrome.automation.FindParams;
-
-/**
- * @constructor
- * @param {chrome.automation.EventType} type
- * @param {chrome.automation.AutomationNode} node
- * @param {string} eventFrom
- */
-chrome.automation.AutomationEvent = function(type, node, eventFrom) {};
-
-/**
* @type {!chrome.automation.AutomationNode}
*/
chrome.automation.AutomationEvent.prototype.target;
@@ -307,59 +257,16 @@ chrome.automation.AutomationEvent.prototype.eventFrom;
/**
* @type {number}
- */
+ */
chrome.automation.AutomationEvent.prototype.mouseX;
-/**
+ /**
* @type {number}
- */
+ */
chrome.automation.AutomationEvent.prototype.mouseY;
chrome.automation.AutomationEvent.prototype.stopPropagation = function() {};
-/**
- * @typedef {{
- * target: chrome.automation.AutomationNode,
- * type: !chrome.automation.TreeChangeType
- * }}
- */
-chrome.automation.TreeChange;
-
-/**
- * @constructor
- */
-chrome.automation.AutomationNode = function() {};
-
-
-/**
- * @param {number} tabId
- * @param {function(chrome.automation.AutomationNode):void} callback
- */
-chrome.automation.getTree = function(tabId, callback) {};
-
-/** @param {function(!chrome.automation.AutomationNode):void} callback */
-chrome.automation.getDesktop = function(callback) {};
-
-/** @param {function(!chrome.automation.AutomationNode):void} callback */
-chrome.automation.getFocus = function(callback) {};
-
-/**
- * @param {string} filter
- * @param {function(chrome.automation.TreeChange) : void}
- * observer
- */
-chrome.automation.addTreeChangeObserver = function(filter, observer) {};
-
-/**
- * @param {function(chrome.automation.TreeChange) : void} observer
- */
-chrome.automation.removeTreeChangeObserver = function(observer) {};
-
-//
-// End auto generated externs; do not edit.
-//
-
-
/**
* @type {chrome.automation.RoleType}
@@ -605,14 +512,6 @@ chrome.automation.AutomationNode.prototype.inputType;
chrome.automation.AutomationNode.prototype.anchorObject;
/**
- * @param {{anchorObject: !chrome.automation.AutomationNode,
- * anchorOffset: number,
- * focusObject: !chrome.automation.AutomationNode,
- * focusOffset: number}} selectionParams
- */
-chrome.automation.setDocumentSelection = function(selectionParams) {};
-
-/**
* @type {(number|undefined)}
*/
chrome.automation.anchorOffset;
@@ -623,16 +522,6 @@ chrome.automation.anchorOffset;
chrome.automation.AutomationNode.prototype.focusObject;
/**
- * @type {(Array<number>|undefined)}
- */
-chrome.automation.AutomationNode.prototype.lineBreaks;
-
-/**
- * @type {(number|undefined)}
- */
-chrome.automation.focusOffset;
-
-/**
* @type {(chrome.automation.AutomationNode|undefined)}
*/
chrome.automation.AutomationNode.prototype.activeDescendant;
@@ -670,28 +559,28 @@ chrome.automation.AutomationNode.prototype.previousOnLine;
/** @type {Object<string, string>} */
chrome.automation.AutomationNode.prototype.htmlAttributes;
-/**
+ /**
* @extends {chrome.automation.AutomationNode}
* @constructor
- */
+ */
chrome.automation.AutomationRootNode = function() {};
-/**
+ /**
* @type {chrome.automation.AutomationNode}
- */
+ */
chrome.automation.AutomationRootNode.prototype.anchorObject;
-/**
+ /**
* @type {number}
- */
+ */
chrome.automation.AutomationRootNode.prototype.anchorOffset;
-/**
+ /**
* @type {chrome.automation.AutomationNode}
- */
+ */
chrome.automation.AutomationRootNode.prototype.focusObject;
-/**
+ /**
* @type {number}
- */
+ */
chrome.automation.AutomationRootNode.prototype.focusOffset;
« no previous file with comments | « third_party/closure_compiler/externs/automation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698