Chromium Code Reviews| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/custom_automation_event.js |
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/custom_automation_event.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/custom_automation_event.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f6a8c071c178ea7d816e15b864c564a9411a4e6f |
| --- /dev/null |
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/custom_automation_event.js |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2017 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 Custom Automation Event. |
| + * |
| + * An object similar to a chrome.automation.AutomationEvent that we can |
| + * construct, unlike the object from the extension system. |
| + */ |
| + |
| +goog.provide('CustomAutomationEvent'); |
| + |
| +/** |
| + * An object we can use instead of a chrome.automation.AutomationEvent. |
| + * @constructor |
| + * @extends {chrome.automation.AutomationEvent} |
| + * @param {chrome.automation.EventType} type The event type. |
| + * @param {!chrome.automation.AutomationNode} target The event target. |
| + * @param {string} eventFrom The source of this event. |
| + */ |
| +var CustomAutomationEvent = function(type, target, eventFrom) { |
| + this.type = type; |
| + this.target = target; |
| + this.eventFrom = eventFrom; |
| +}; |
|
David Tseng
2017/01/11 22:34:39
Override stopPropagation and throw.
dmazzoni
2017/01/11 22:54:17
Done.
|