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

Unified Diff: Source/devtools/front_end/emulation/module.json

Issue 1164933008: [DevTools] Extract DeviceModeButton from AdvancedApp. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/devtools/front_end/emulation/module.json
diff --git a/Source/devtools/front_end/emulation/module.json b/Source/devtools/front_end/emulation/module.json
index 6dc91dc384b278ca73119a2668cbca5684cd976f..22f1bf805cc7fcef75688bf891eeef473f5eb09c 100644
--- a/Source/devtools/front_end/emulation/module.json
+++ b/Source/devtools/front_end/emulation/module.json
@@ -8,6 +8,29 @@
"className": "WebInspector.OverridesView"
},
{
+ "type": "@WebInspector.ToolbarItem.Provider",
+ "className": "WebInspector.DeviceModeButtonProvider",
+ "condition": "can_dock",
+ "order": 1,
+ "location": "main-toolbar-left"
+ },
+ {
+ "type": "@WebInspector.ActionDelegate",
+ "actionId": "emulation.toggle-device-mode",
+ "className": "WebInspector.ToggleDeviceModeActionDelegate",
+ "condition": "can_dock",
+ "bindings": [
+ {
+ "platform": "windows,linux",
+ "shortcut": "Shift+Ctrl+M"
+ },
+ {
+ "platform": "mac",
+ "shortcut": "Shift+Meta+M"
+ }
+ ]
+ },
+ {
"type": "@WebInspector.Revealer",
"contextTypes": ["WebInspector.OverridesSupport"],
"className": "WebInspector.OverridesView.Revealer"
@@ -30,6 +53,7 @@
"OverridesSupport.js",
"EmulatedDevices.js",
"DevicesSettingsTab.js",
+ "DeviceModeButton.js",
"OverridesUI.js",
"InspectedPagePlaceholder.js",
"MediaQueryInspector.js",
« no previous file with comments | « Source/devtools/front_end/emulation/DeviceModeButton.js ('k') | Source/devtools/front_end/main/AdvancedApp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698