OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |