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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Rebase Created 3 years, 11 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/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js
deleted file mode 100644
index cdb5e93ec187fee0a9f273fb3740da6a3672e90a..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview Provides bindings to instantiate objects in the automation API.
- *
- * Due to restrictions in the extension system, it is not ordinarily possible to
- * construct an object defined by the extension API. However, given an instance
- * of that object, we can save its constructor for future use.
- */
-
-goog.provide('AutomationObjectConstructorInstaller');
-
-/**
- * Installs the AutomationNode and AutomationEvent classes based on an
- * AutomationNode instance.
- * @param {chrome.automation.AutomationNode} node
- * @param {function()} callback Called when installation finishes.
- */
-AutomationObjectConstructorInstaller.init = function(node, callback) {
- chrome.automation.AutomationNode =
- /** @type {function (new:chrome.automation.AutomationNode)} */(
- node.constructor);
- node.addEventListener(chrome.automation.EventType.childrenChanged,
- function installAutomationEvent(e) {
- chrome.automation.AutomationEvent =
- /** @type {function (new:chrome.automation.AutomationEvent)} */(
- e.constructor);
- node.removeEventListener(
- chrome.automation.EventType.childrenChanged,
- installAutomationEvent,
- true);
- callback();
- },
- true);
-};

Powered by Google App Engine
This is Rietveld 408576698