Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / renderer / resources / extensions / automation / automation_event.js
blob7d04ecc438628d07da08dba54affb6cd43d0fb8d
1 // Copyright 2014 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.
5 var utils = require('utils');
7 var AutomationEventImpl = function(type, target) {
8 this.propagationStopped = false;
10 // TODO(aboxhall): make these read-only properties
11 this.type = type;
12 this.target = target;
13 this.eventPhase = Event.NONE;
16 AutomationEventImpl.prototype = {
17 stopPropagation: function() {
18 this.propagationStopped = true;
22 exports.AutomationEvent = utils.expose(
23 'AutomationEvent',
24 AutomationEventImpl,
25 { functions: ['stopPropagation'],
26 readonly: ['type', 'target', 'eventPhase'] });