Chromium Code Reviews| 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 * @param {chrome.automation.EventType} type The event type. | |
| 18 * @param {!chrome.automation.AutomationNode} target The event target. | |
| 19 * @param {string} eventFrom The source of this event. | |
|
Dan Beam
2017/01/10 22:54:43
could AutomationEvent just be an interface that ge
dmazzoni
2017/01/11 22:20:41
I don't think I could do that without major change
| |
| 20 */ | |
| 21 CustomAutomationEvent = function(type, target, eventFrom) { | |
|
Dan Beam
2017/01/10 22:54:43
var CustomAutomationEvent = function(...) {
};
or
dmazzoni
2017/01/11 22:20:41
Done.
| |
| 22 this.type = type; | |
| 23 this.target = target; | |
| 24 this.eventFrom = eventFrom; | |
| 25 }; | |
| OLD | NEW |