OLD | NEW |
---|---|
(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 }; | |
David Tseng
2017/01/11 22:34:39
Override stopPropagation and throw.
dmazzoni
2017/01/11 22:54:17
Done.
| |
OLD | NEW |