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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/WorkspaceMappingTip.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 1
2 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Copyright 2014 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 * @constructor 7 * @constructor
8 * @param {!WebInspector.SourcesPanel} sourcesPanel 8 * @param {!WebInspector.SourcesPanel} sourcesPanel
9 * @param {!WebInspector.Workspace} workspace 9 * @param {!WebInspector.Workspace} workspace
10 */ 10 */
11 WebInspector.WorkspaceMappingTip = function(sourcesPanel, workspace) 11 WebInspector.WorkspaceMappingTip = function(sourcesPanel, workspace)
12 { 12 {
13 this._sourcesPanel = sourcesPanel; 13 this._sourcesPanel = sourcesPanel;
14 this._workspace = workspace; 14 this._workspace = workspace;
15 15
16 this._sourcesView = this._sourcesPanel.sourcesView(); 16 this._sourcesView = this._sourcesPanel.sourcesView();
17 this._workspaceInfobarDisabledSetting = WebInspector.settings.createSetting( "workspaceInfobarDisabled", false); 17 this._workspaceInfobarDisabledSetting = WebInspector.settings.createSetting( "workspaceInfobarDisabled", false);
18 this._workspaceMappingInfobarDisabledSetting = WebInspector.settings.createS etting("workspaceMappingInfobarDisabled", false); 18 this._workspaceMappingInfobarDisabledSetting = WebInspector.settings.createS etting("workspaceMappingInfobarDisabled", false);
19 19
20 if (this._workspaceInfobarDisabledSetting.get() && this._workspaceMappingInf obarDisabledSetting.get()) 20 if (this._workspaceInfobarDisabledSetting.get() && this._workspaceMappingInf obarDisabledSetting.get())
21 return; 21 return;
22 this._sourcesView.addEventListener(WebInspector.SourcesView.Events.EditorSel ected, this._editorSelected.bind(this)); 22 this._sourcesView.addEventListener(WebInspector.SourcesView.Events.EditorSel ected, this._editorSelected.bind(this));
23 WebInspector.persistence.addEventListener(WebInspector.Persistence.Events.Bi ndingCreated, this._bindingCreated, this); 23 WebInspector.persistence.addEventListener(WebInspector.Persistence.Events.Bi ndingCreated, this._bindingCreated, this);
24 } 24 };
25 25
26 WebInspector.WorkspaceMappingTip._infobarSymbol = Symbol("infobar"); 26 WebInspector.WorkspaceMappingTip._infobarSymbol = Symbol("infobar");
27 27
28 WebInspector.WorkspaceMappingTip.prototype = { 28 WebInspector.WorkspaceMappingTip.prototype = {
29 /** 29 /**
30 * @param {!WebInspector.Event} event 30 * @param {!WebInspector.Event} event
31 */ 31 */
32 _bindingCreated: function(event) 32 _bindingCreated: function(event)
33 { 33 {
34 var binding = /** @type {!WebInspector.PersistenceBinding} */(event.data ); 34 var binding = /** @type {!WebInspector.PersistenceBinding} */(event.data );
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 { 170 {
171 var uiSourceCodeFrame = this._sourcesView.viewForFile(uiSourceCode); 171 var uiSourceCodeFrame = this._sourcesView.viewForFile(uiSourceCode);
172 172
173 var rowElement = infobar.createDetailsRowMessage(WebInspector.UIString(" For more information on workspaces, refer to the ")); 173 var rowElement = infobar.createDetailsRowMessage(WebInspector.UIString(" For more information on workspaces, refer to the "));
174 rowElement.appendChild(WebInspector.linkifyDocumentationURLAsNode("../se tup/setup-workflow", WebInspector.UIString("workspaces documentation"))); 174 rowElement.appendChild(WebInspector.linkifyDocumentationURLAsNode("../se tup/setup-workflow", WebInspector.UIString("workspaces documentation")));
175 rowElement.createTextChild("."); 175 rowElement.createTextChild(".");
176 uiSourceCode[WebInspector.WorkspaceMappingTip._infobarSymbol] = infobar; 176 uiSourceCode[WebInspector.WorkspaceMappingTip._infobarSymbol] = infobar;
177 uiSourceCodeFrame.attachInfobars([infobar]); 177 uiSourceCodeFrame.attachInfobars([infobar]);
178 WebInspector.runCSSAnimationOnce(infobar.element, "source-frame-infobar- animation"); 178 WebInspector.runCSSAnimationOnce(infobar.element, "source-frame-infobar- animation");
179 } 179 }
180 } 180 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698