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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleModel.js

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 /** 5 /**
6 * @extends {WebInspector.Object} 6 * @extends {WebInspector.Object}
7 * @constructor 7 * @constructor
8 */ 8 */
9 WebInspector.ComputedStyleModel = function() 9 WebInspector.ComputedStyleModel = function()
10 { 10 {
11 WebInspector.Object.call(this); 11 WebInspector.Object.call(this);
12 this._node = WebInspector.context.flavor(WebInspector.DOMNode); 12 this._node = WebInspector.context.flavor(WebInspector.DOMNode);
13 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._onN odeChanged, this); 13 WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._onN odeChanged, this);
14 } 14 }
15 15
16 /** @enum {symbol} */
16 WebInspector.ComputedStyleModel.Events = { 17 WebInspector.ComputedStyleModel.Events = {
17 ComputedStyleChanged: "ComputedStyleChanged" 18 ComputedStyleChanged: Symbol("ComputedStyleChanged")
18 } 19 }
19 20
20 WebInspector.ComputedStyleModel.prototype = { 21 WebInspector.ComputedStyleModel.prototype = {
21 /** 22 /**
22 * @return {?WebInspector.DOMNode} 23 * @return {?WebInspector.DOMNode}
23 */ 24 */
24 node: function() 25 node: function()
25 { 26 {
26 return this._node; 27 return this._node;
27 }, 28 },
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 /** 163 /**
163 * @constructor 164 * @constructor
164 * @param {!WebInspector.DOMNode} node 165 * @param {!WebInspector.DOMNode} node
165 * @param {!Map.<string, string>} computedStyle 166 * @param {!Map.<string, string>} computedStyle
166 */ 167 */
167 WebInspector.ComputedStyleModel.ComputedStyle = function(node, computedStyle) 168 WebInspector.ComputedStyleModel.ComputedStyle = function(node, computedStyle)
168 { 169 {
169 this.node = node; 170 this.node = node;
170 this.computedStyle = computedStyle; 171 this.computedStyle = computedStyle;
171 } 172 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698