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
13 this.eventPhase
= Event
.NONE
;
16 AutomationEventImpl
.prototype = {
17 stopPropagation: function() {
18 this.propagationStopped
= true;
22 exports
.AutomationEvent
= utils
.expose(
25 { functions
: ['stopPropagation'],
26 readonly
: ['type', 'target', 'eventPhase'] });