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

Unified Diff: Source/devtools/front_end/main/AdvancedApp.js

Issue 1163293003: [DevTools] Remove WI.OverridesSupport.responsiveDesignAvailable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplified Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/emulation/OverridesView.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/AdvancedApp.js
diff --git a/Source/devtools/front_end/main/AdvancedApp.js b/Source/devtools/front_end/main/AdvancedApp.js
index 5cbe17876c8ab8fa602c8544844b5afde56accb1..78b9fe896330596f6554dbc0a798427a5a47faf6 100644
--- a/Source/devtools/front_end/main/AdvancedApp.js
+++ b/Source/devtools/front_end/main/AdvancedApp.js
@@ -8,13 +8,11 @@
*/
WebInspector.AdvancedApp = function()
{
- if (WebInspector.overridesSupport.responsiveDesignAvailable()) {
- this._toggleEmulationButton = new WebInspector.ToolbarButton(WebInspector.UIString("Toggle device mode"), "emulation-toolbar-item");
- this._toggleEmulationButton.setToggled(WebInspector.overridesSupport.emulationEnabled());
- this._toggleEmulationButton.addEventListener("click", this._toggleEmulationEnabled, this);
- WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.EmulationStateChanged, this._emulationEnabledChanged, this);
- WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this);
- }
+ this._toggleEmulationButton = new WebInspector.ToolbarButton(WebInspector.UIString("Toggle device mode"), "emulation-toolbar-item");
+ this._toggleEmulationButton.setToggled(WebInspector.overridesSupport.emulationEnabled());
+ this._toggleEmulationButton.addEventListener("click", this._toggleEmulationEnabled, this);
+ WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.EmulationStateChanged, this._emulationEnabledChanged, this);
+ WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this);
WebInspector.dockController.addEventListener(WebInspector.DockController.Events.BeforeDockSideChanged, this._openToolboxWindow, this);
};
@@ -28,8 +26,6 @@ WebInspector.AdvancedApp.prototype = {
_emulationEnabledChanged: function()
{
this._toggleEmulationButton.setToggled(WebInspector.overridesSupport.emulationEnabled());
- if (!WebInspector.overridesSupport.responsiveDesignAvailable() && WebInspector.overridesSupport.emulationEnabled())
- WebInspector.inspectorView.showViewInDrawer("emulation", true);
},
_overridesWarningUpdated: function()
@@ -277,7 +273,6 @@ WebInspector.AdvancedApp.ToggleDeviceModeActionDelegate.prototype = {
*/
handleAction: function(context, actionId)
{
- if (WebInspector.overridesSupport.responsiveDesignAvailable())
- WebInspector.AdvancedApp._instance()._toggleEmulationEnabled();
+ WebInspector.AdvancedApp._instance()._toggleEmulationEnabled();
}
}
« no previous file with comments | « Source/devtools/front_end/emulation/OverridesView.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698