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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/common/OutputStream.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline 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 /** 5 /**
6 * @interface 6 * @interface
7 */ 7 */
8 WebInspector.OutputStream = function() 8 WebInspector.OutputStream = function()
9 { 9 {
10 } 10 };
11 11
12 WebInspector.OutputStream.prototype = { 12 WebInspector.OutputStream.prototype = {
13 /** 13 /**
14 * @param {string} data 14 * @param {string} data
15 * @param {function(!WebInspector.OutputStream)=} callback 15 * @param {function(!WebInspector.OutputStream)=} callback
16 */ 16 */
17 write: function(data, callback) { }, 17 write: function(data, callback) { },
18 18
19 close: function() { } 19 close: function() { }
20 } 20 };
21 21
22 /** 22 /**
23 * @constructor 23 * @constructor
24 * @implements {WebInspector.OutputStream} 24 * @implements {WebInspector.OutputStream}
25 */ 25 */
26 WebInspector.StringOutputStream = function() 26 WebInspector.StringOutputStream = function()
27 { 27 {
28 this._data = ""; 28 this._data = "";
29 } 29 };
30 30
31 WebInspector.StringOutputStream.prototype = { 31 WebInspector.StringOutputStream.prototype = {
32 /** 32 /**
33 * @override 33 * @override
34 * @param {string} chunk 34 * @param {string} chunk
35 * @param {function(!WebInspector.OutputStream)=} callback 35 * @param {function(!WebInspector.OutputStream)=} callback
36 */ 36 */
37 write: function(chunk, callback) 37 write: function(chunk, callback)
38 { 38 {
39 this._data += chunk; 39 this._data += chunk;
40 }, 40 },
41 41
42 /** 42 /**
43 * @override 43 * @override
44 */ 44 */
45 close: function() 45 close: function()
46 { 46 {
47 }, 47 },
48 48
49 /** 49 /**
50 * @return {string} 50 * @return {string}
51 */ 51 */
52 data: function() 52 data: function()
53 { 53 {
54 return this._data; 54 return this._data;
55 } 55 }
56 } 56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698