mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
Screenshot: https://imgur.com/a/e1J1Cyp Bug: 803891 Change-Id: Ibc1ffb9990dcc76d16dce0128b0dc84b74b0c929 Reviewed-on: https://chromium-review.googlesource.com/1068264 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#560716} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 7dcd69b71e3a7e8210f68cc6830730a4f2790bb9
182 lines
5.4 KiB
JSON
182 lines
5.4 KiB
JSON
{
|
|
"extensions": [
|
|
{
|
|
"type": "@Common.AppProvider",
|
|
"condition": "can_dock",
|
|
"className": "Emulation.AdvancedAppProvider",
|
|
"order": 0
|
|
},
|
|
{
|
|
"type": "action",
|
|
"category": "Mobile",
|
|
"actionId": "emulation.toggle-device-mode",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"condition": "can_dock",
|
|
"title": "Toggle device toolbar",
|
|
"iconClass": "largeicon-phone",
|
|
"bindings": [
|
|
{
|
|
"platform": "windows,linux",
|
|
"shortcut": "Shift+Ctrl+M"
|
|
},
|
|
{
|
|
"platform": "mac",
|
|
"shortcut": "Shift+Meta+M"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "emulation.capture-screenshot",
|
|
"category": "Mobile",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture screenshot",
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "context-menu-item",
|
|
"location": "deviceModeMenu/save",
|
|
"order": 12,
|
|
"actionId": "emulation.capture-screenshot"
|
|
},
|
|
{
|
|
"type": "@UI.ToolbarItem.Provider",
|
|
"actionId": "emulation.toggle-device-mode",
|
|
"condition": "can_dock",
|
|
"location": "main-toolbar-left",
|
|
"order": 1
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "emulation.capture-full-height-screenshot",
|
|
"category": "Mobile",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture full size screenshot",
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "emulation.capture-node-screenshot",
|
|
"category": "Mobile",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture node screenshot",
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "context-menu-item",
|
|
"location": "deviceModeMenu/save",
|
|
"order": 13,
|
|
"actionId": "emulation.capture-full-height-screenshot"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Mobile",
|
|
"settingName": "showMediaQueryInspector",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Show media queries"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Hide media queries"
|
|
}
|
|
],
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Mobile",
|
|
"settingName": "emulation.showRulers",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Show rulers"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Hide rulers"
|
|
}
|
|
],
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Mobile",
|
|
"settingName": "emulation.showDeviceOutline",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Show device frame"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Hide device frame"
|
|
}
|
|
],
|
|
"tags": "device"
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "settings-view",
|
|
"id": "devices",
|
|
"title": "Devices",
|
|
"order": 30,
|
|
"className": "Emulation.DevicesSettingsTab",
|
|
"settings": [
|
|
"standardEmulatedDeviceList",
|
|
"customEmulatedDeviceList"
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "emulation.show-sensors",
|
|
"title": "Sensors",
|
|
"className": "Emulation.SensorsView.ShowActionDelegate"
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "drawer-view",
|
|
"id": "sensors",
|
|
"title": "Sensors",
|
|
"persistence": "closeable",
|
|
"order": 100,
|
|
"className": "Emulation.SensorsView",
|
|
"tags": "geolocation, accelerometer, device orientation"
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"bindings",
|
|
"components",
|
|
"platform",
|
|
"ui",
|
|
"mobile_throttling"
|
|
],
|
|
"scripts": [
|
|
"AdvancedApp.js",
|
|
"EmulatedDevices.js",
|
|
"DevicesSettingsTab.js",
|
|
"InspectedPagePlaceholder.js",
|
|
"MediaQueryInspector.js",
|
|
"SensorsView.js",
|
|
"DeviceModeModel.js",
|
|
"DeviceModeToolbar.js",
|
|
"DeviceModeView.js",
|
|
"DeviceModeWrapper.js"
|
|
],
|
|
"resources": [
|
|
"devicesSettingsTab.css",
|
|
"deviceModeToolbar.css",
|
|
"deviceModeView.css",
|
|
"inspectedPagePlaceholder.css",
|
|
"mediaQueryInspector.css",
|
|
"sensors.css"
|
|
]
|
|
}
|