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

Unified Diff: Source/devtools/front_end/main/Main.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/main/AdvancedApp.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 36b8226d0a8dfb4e1e636581056627264f91a2b1..c4f8d7b2dc5076a025730e4748f8ab35215e0a7b 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -191,7 +191,7 @@ WebInspector.Main.prototype = {
WebInspector.ContextMenu.initialize();
WebInspector.ContextMenu.installHandler(document);
WebInspector.dockController = new WebInspector.DockController(canDock);
- WebInspector.overridesSupport = new WebInspector.OverridesSupport(canDock);
+ WebInspector.overridesSupport = new WebInspector.OverridesSupport();
WebInspector.emulatedDevicesList = new WebInspector.EmulatedDevicesList();
WebInspector.multitargetConsoleModel = new WebInspector.MultitargetConsoleModel();
WebInspector.multitargetNetworkManager = new WebInspector.MultitargetNetworkManager();
@@ -335,7 +335,7 @@ WebInspector.Main.prototype = {
function overridesReady()
{
- if (!WebInspector.overridesSupport.responsiveDesignAvailable() && WebInspector.overridesSupport.emulationEnabled())
+ if (!WebInspector.dockController.canDock() && WebInspector.overridesSupport.emulationEnabled())
WebInspector.inspectorView.showViewInDrawer("emulation", true);
target.inspectorAgent().enable(inspectorAgentEnableCallback);
@@ -455,10 +455,10 @@ WebInspector.Main.prototype = {
var toggleConsoleLabel = WebInspector.UIString("Show console");
section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Modifiers.Ctrl), toggleConsoleLabel);
section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), WebInspector.UIString("Toggle drawer"));
- if (WebInspector.overridesSupport.responsiveDesignAvailable())
+ if (WebInspector.dockController.canDock()) {
section.addKey(shortcut.makeDescriptor("M", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Shift), WebInspector.UIString("Toggle device mode"));
- if (WebInspector.dockController.canDock())
section.addKey(shortcut.makeDescriptor("D", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Shift), WebInspector.UIString("Toggle dock side"));
+ }
section.addKey(shortcut.makeDescriptor("f", shortcut.Modifiers.CtrlOrMeta), WebInspector.UIString("Search"));
var advancedSearchShortcutModifier = WebInspector.isMac()
« no previous file with comments | « Source/devtools/front_end/main/AdvancedApp.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698