Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/renderer/resources/extensions/automation/automation_event.js

Issue 2080573003: Track all changed nodes during an update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make suggested change. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var utils = require('utils'); 5 var utils = require('utils');
6 6
7 function AutomationEventImpl(type, target) { 7 function AutomationEventImpl(type, target, eventFrom) {
8 this.propagationStopped = false; 8 this.propagationStopped = false;
9
10 // TODO(aboxhall): make these read-only properties
11 this.type = type; 9 this.type = type;
12 this.target = target; 10 this.target = target;
13 this.eventPhase = Event.NONE; 11 this.eventPhase = Event.NONE;
12 this.eventFrom = eventFrom;
14 } 13 }
15 14
16 AutomationEventImpl.prototype = { 15 AutomationEventImpl.prototype = {
17 __proto__: null, 16 __proto__: null,
18 stopPropagation: function() { 17 stopPropagation: function() {
19 this.propagationStopped = true; 18 this.propagationStopped = true;
20 }, 19 },
21 }; 20 };
22 21
23 function AutomationEvent() { 22 function AutomationEvent() {
24 privates(AutomationEvent).constructPrivate(this, arguments); 23 privates(AutomationEvent).constructPrivate(this, arguments);
25 } 24 }
26 utils.expose(AutomationEvent, AutomationEventImpl, { 25 utils.expose(AutomationEvent, AutomationEventImpl, {
27 functions: [ 26 functions: [
28 'stopPropagation', 27 'stopPropagation',
29 ], 28 ],
30 readonly: [ 29 readonly: [
31 'type', 30 'type',
32 'target', 31 'target',
33 'eventPhase', 32 'eventPhase',
33 'eventFrom',
34 ], 34 ],
35 }); 35 });
36 36
37 exports.$set('AutomationEvent', AutomationEvent); 37 exports.$set('AutomationEvent', AutomationEvent);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698