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

Side by Side Diff: Source/devtools/front_end/main/AdvancedApp.js

Issue 671913006: DevTools: Fix frontend compilation errors uncovered by r184188 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months 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 | Annotate | Revision Log
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 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.App} 7 * @extends {WebInspector.App}
8 * @implements {WebInspector.ToolboxDelegate} 8 * @implements {WebInspector.ToolboxHost}
9 */ 9 */
10 WebInspector.AdvancedApp = function() 10 WebInspector.AdvancedApp = function()
11 { 11 {
12 WebInspector.App.call(this); 12 WebInspector.App.call(this);
13 if (WebInspector.overridesSupport.responsiveDesignAvailable()) { 13 if (WebInspector.overridesSupport.responsiveDesignAvailable()) {
14 this._toggleEmulationButton = new WebInspector.StatusBarButton(WebInspec tor.UIString("Toggle device mode."), "emulation-status-bar-item"); 14 this._toggleEmulationButton = new WebInspector.StatusBarButton(WebInspec tor.UIString("Toggle device mode."), "emulation-status-bar-item");
15 this._toggleEmulationButton.toggled = WebInspector.overridesSupport.emul ationEnabled(); 15 this._toggleEmulationButton.toggled = WebInspector.overridesSupport.emul ationEnabled();
16 this._toggleEmulationButton.addEventListener("click", this._toggleEmulat ionEnabled, this); 16 this._toggleEmulationButton.addEventListener("click", this._toggleEmulat ionEnabled, this);
17 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSup port.Events.EmulationStateChanged, this._emulationEnabledChanged, this); 17 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSup port.Events.EmulationStateChanged, this._emulationEnabledChanged, this);
18 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSup port.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this); 18 WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSup port.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 handleAction: function() 284 handleAction: function()
285 { 285 {
286 if (!WebInspector.overridesSupport.responsiveDesignAvailable()) 286 if (!WebInspector.overridesSupport.responsiveDesignAvailable())
287 return false; 287 return false;
288 if (!(WebInspector.app instanceof WebInspector.AdvancedApp)) 288 if (!(WebInspector.app instanceof WebInspector.AdvancedApp))
289 return false; 289 return false;
290 WebInspector.app._toggleEmulationEnabled(); 290 WebInspector.app._toggleEmulationEnabled();
291 return true; 291 return true;
292 } 292 }
293 } 293 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/host/module.json ('k') | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698