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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/custom_automation_event.js

Issue 2650733002: Revert of Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Custom Automation Event.
7 *
8 * An object similar to a chrome.automation.AutomationEvent that we can
9 * construct, unlike the object from the extension system.
10 */
11
12 goog.provide('CustomAutomationEvent');
13
14 /**
15 * An object we can use instead of a chrome.automation.AutomationEvent.
16 * @constructor
17 * @extends {chrome.automation.AutomationEvent}
18 * @param {chrome.automation.EventType} type The event type.
19 * @param {!chrome.automation.AutomationNode} target The event target.
20 * @param {string} eventFrom The source of this event.
21 */
22 var CustomAutomationEvent = function(type, target, eventFrom) {
23 this.type = type;
24 this.target = target;
25 this.eventFrom = eventFrom;
26 };
27
28 /**
29 * @override
30 */
31 CustomAutomationEvent.prototype.stopPropagation = function() {
32 throw Error('Can\'t call stopPropagation on a CustomAutomationEvent');
33 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698