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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/common/OutputStream.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 * @interface 5 * @interface
6 */ 6 */
7 Common.OutputStream = function() {}; 7 Common.OutputStream = function() {};
8 8
9 Common.OutputStream.prototype = { 9 Common.OutputStream.prototype = {
10 /** 10 /**
11 * @param {string} data 11 * @param {string} data
12 * @param {function(!Common.OutputStream)=} callback 12 * @param {function(!Common.OutputStream)=} callback
13 */ 13 */
14 write: function(data, callback) {}, 14 write(data, callback) {},
15 15
16 close: function() {} 16 close() {}
17 }; 17 };
18 18
19 /** 19 /**
20 * @implements {Common.OutputStream} 20 * @implements {Common.OutputStream}
21 * @unrestricted 21 * @unrestricted
22 */ 22 */
23 Common.StringOutputStream = class { 23 Common.StringOutputStream = class {
24 constructor() { 24 constructor() {
25 this._data = ''; 25 this._data = '';
26 } 26 }
(...skipping 13 matching lines...) Expand all
40 close() { 40 close() {
41 } 41 }
42 42
43 /** 43 /**
44 * @return {string} 44 * @return {string}
45 */ 45 */
46 data() { 46 data() {
47 return this._data; 47 return this._data;
48 } 48 }
49 }; 49 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698