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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/terminal/TerminalWidget.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.TerminalWidget = function() 9 WebInspector.TerminalWidget = function()
10 { 10 {
11 WebInspector.VBox.call(this, false); 11 WebInspector.VBox.call(this, false);
12 this.registerRequiredCSS("terminal/xterm.js/build/xterm.css"); 12 this.registerRequiredCSS("terminal/xterm.js/build/xterm.css");
13 this.registerRequiredCSS("terminal/terminal.css"); 13 this.registerRequiredCSS("terminal/terminal.css");
14 this.element.classList.add("terminal-root"); 14 this.element.classList.add("terminal-root");
15 this.element.addEventListener("mousemove", this._mouseMove.bind(this), false ); 15 this.element.addEventListener("mousemove", this._mouseMove.bind(this), false );
16 this._init(); 16 this._init();
17 this._linkifier = new WebInspector.Linkifier(); 17 this._linkifier = new WebInspector.Linkifier();
18 this._linkifyFunction = this._linkifyURL.bind(this); 18 this._linkifyFunction = this._linkifyURL.bind(this);
19 } 19 };
20 20
21 WebInspector.TerminalWidget.prototype = { 21 WebInspector.TerminalWidget.prototype = {
22 _init: function() 22 _init: function()
23 { 23 {
24 WebInspector.serviceManager.createRemoteService("Terminal").then(this._i nitialized.bind(this)); 24 WebInspector.serviceManager.createRemoteService("Terminal").then(this._i nitialized.bind(this));
25 }, 25 },
26 26
27 /** 27 /**
28 * @param {?WebInspector.ServiceManager.Service} backend 28 * @param {?WebInspector.ServiceManager.Service} backend
29 */ 29 */
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 * @param {string} url 129 * @param {string} url
130 * @param {number=} lineNumber 130 * @param {number=} lineNumber
131 * @param {number=} columnNumber 131 * @param {number=} columnNumber
132 */ 132 */
133 _linkifyURL: function(title, url, lineNumber, columnNumber) 133 _linkifyURL: function(title, url, lineNumber, columnNumber)
134 { 134 {
135 return this._linkifier.linkifyScriptLocation(null, null, url, lineNumber || 0, columnNumber || 0); 135 return this._linkifier.linkifyScriptLocation(null, null, url, lineNumber || 0, columnNumber || 0);
136 }, 136 },
137 137
138 __proto__: WebInspector.VBox.prototype 138 __proto__: WebInspector.VBox.prototype
139 } 139 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698