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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/LiveLocation.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 // 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 /** @interface */ 4 /** @interface */
5 Bindings.LiveLocation = function() {}; 5 Bindings.LiveLocation = function() {};
6 6
7 Bindings.LiveLocation.prototype = { 7 Bindings.LiveLocation.prototype = {
8 update: function() {}, 8 update() {},
9 9
10 /** 10 /**
11 * @return {?Workspace.UILocation} 11 * @return {?Workspace.UILocation}
12 */ 12 */
13 uiLocation: function() {}, 13 uiLocation() {},
14 14
15 dispose: function() {}, 15 dispose() {},
16 16
17 /** 17 /**
18 * @return {boolean} 18 * @return {boolean}
19 */ 19 */
20 isBlackboxed: function() {} 20 isBlackboxed() {}
21 }; 21 };
22 22
23 /** 23 /**
24 * @implements {Bindings.LiveLocation} 24 * @implements {Bindings.LiveLocation}
25 * @unrestricted 25 * @unrestricted
26 */ 26 */
27 Bindings.LiveLocationWithPool = class { 27 Bindings.LiveLocationWithPool = class {
28 /** 28 /**
29 * @param {function(!Bindings.LiveLocation)} updateDelegate 29 * @param {function(!Bindings.LiveLocation)} updateDelegate
30 * @param {!Bindings.LiveLocationPool} locationPool 30 * @param {!Bindings.LiveLocationPool} locationPool
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 */ 87 */
88 _delete(location) { 88 _delete(location) {
89 this._locations.delete(location); 89 this._locations.delete(location);
90 } 90 }
91 91
92 disposeAll() { 92 disposeAll() {
93 for (var location of this._locations) 93 for (var location of this._locations)
94 location.dispose(); 94 location.dispose();
95 } 95 }
96 }; 96 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698