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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layer_viewer/LayerViewHost.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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 /* 1 /*
2 * Copyright 2015 The Chromium Authors. All rights reserved. 2 * Copyright 2015 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 /** 6 /**
7 * @interface 7 * @interface
8 */ 8 */
9 LayerViewer.LayerView = function() {}; 9 LayerViewer.LayerView = function() {};
10 10
11 LayerViewer.LayerView.prototype = { 11 LayerViewer.LayerView.prototype = {
12 /** 12 /**
13 * @param {?LayerViewer.LayerView.Selection} selection 13 * @param {?LayerViewer.LayerView.Selection} selection
14 */ 14 */
15 hoverObject: function(selection) {}, 15 hoverObject(selection) {},
16 16
17 /** 17 /**
18 * @param {?LayerViewer.LayerView.Selection} selection 18 * @param {?LayerViewer.LayerView.Selection} selection
19 */ 19 */
20 selectObject: function(selection) {}, 20 selectObject(selection) {},
21 21
22 /** 22 /**
23 * @param {?SDK.LayerTreeBase} layerTree 23 * @param {?SDK.LayerTreeBase} layerTree
24 */ 24 */
25 setLayerTree: function(layerTree) {} 25 setLayerTree(layerTree) {}
26 }; 26 };
27 27
28 /** 28 /**
29 * @unrestricted 29 * @unrestricted
30 */ 30 */
31 LayerViewer.LayerView.Selection = class { 31 LayerViewer.LayerView.Selection = class {
32 /** 32 /**
33 * @param {!LayerViewer.LayerView.Selection.Type} type 33 * @param {!LayerViewer.LayerView.Selection.Type} type
34 * @param {!SDK.Layer} layer 34 * @param {!SDK.Layer} layer
35 */ 35 */
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 * @param {?SDK.DOMNode} node 251 * @param {?SDK.DOMNode} node
252 */ 252 */
253 _toggleNodeHighlight(node) { 253 _toggleNodeHighlight(node) {
254 if (node) { 254 if (node) {
255 node.highlightForTwoSeconds(); 255 node.highlightForTwoSeconds();
256 return; 256 return;
257 } 257 }
258 SDK.DOMModel.hideDOMNodeHighlight(); 258 SDK.DOMModel.hideDOMNodeHighlight();
259 } 259 }
260 }; 260 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698