mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 20:39:31 +08:00
This was a temporary flag used during the build_release_applications to GN migration. R=aerotwist@chromium.org Bug: 1131500 Change-Id: I8a772bcc4bee31dbd3270bf7ef62d8c97941024a Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2484716 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
320 lines
8.0 KiB
JSON
320 lines
8.0 KiB
JSON
{
|
|
"extensions": [
|
|
{
|
|
"type": "@Common.AppProvider",
|
|
"condition": "can_dock",
|
|
"className": "Emulation.AdvancedAppProvider",
|
|
"order": 0
|
|
},
|
|
{
|
|
"type": "action",
|
|
"category": "Mobile",
|
|
"actionId": "emulation.toggle-device-mode",
|
|
"toggleable": true,
|
|
"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": "Screenshot",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture screenshot"
|
|
},
|
|
{
|
|
"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": "Screenshot",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture full size screenshot"
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "emulation.capture-node-screenshot",
|
|
"category": "Screenshot",
|
|
"className": "Emulation.DeviceModeWrapper.ActionDelegate",
|
|
"title": "Capture node screenshot"
|
|
},
|
|
{
|
|
"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",
|
|
"category": "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, timezones, locale, locales, accelerometer, device orientation"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"settingName": "emulation.locations",
|
|
"settingType": "array",
|
|
"defaultValue": [
|
|
{
|
|
"title": "Berlin",
|
|
"lat": 52.520007,
|
|
"long": 13.404954,
|
|
"timezoneId": "Europe/Berlin",
|
|
"locale": "de_DE"
|
|
},
|
|
{
|
|
"title": "London",
|
|
"lat": 51.507351,
|
|
"long": -0.127758,
|
|
"timezoneId": "Europe/London",
|
|
"locale": "en_GB"
|
|
},
|
|
{
|
|
"title": "Moscow",
|
|
"lat": 55.755826,
|
|
"long": 37.6173,
|
|
"timezoneId": "Europe/Moscow",
|
|
"locale": "ru_RU"
|
|
},
|
|
{
|
|
"title": "Mountain View",
|
|
"lat": 37.386052,
|
|
"long": -122.083851,
|
|
"timezoneId": "US/Pacific",
|
|
"locale": "en_US"
|
|
},
|
|
{
|
|
"title": "Mumbai",
|
|
"lat": 19.075984,
|
|
"long": 72.877656,
|
|
"timezoneId": "Asia/Kolkata",
|
|
"locale": "mr_IN"
|
|
},
|
|
{
|
|
"title": "San Francisco",
|
|
"lat": 37.774929,
|
|
"long": -122.419416,
|
|
"timezoneId": "US/Pacific",
|
|
"locale": "en_US"
|
|
},
|
|
{
|
|
"title": "Shanghai",
|
|
"lat": 31.230416,
|
|
"long": 121.473701,
|
|
"timezoneId": "Asia/Shanghai",
|
|
"locale": "zh_Hans_CN"
|
|
},
|
|
{
|
|
"title": "São Paulo",
|
|
"lat": -23.55052,
|
|
"long": -46.633309,
|
|
"timezoneId": "America/Sao_Paulo",
|
|
"locale": "pt_BR"
|
|
},
|
|
{
|
|
"title": "Tokyo",
|
|
"lat": 35.689487,
|
|
"long": 139.691706,
|
|
"timezoneId": "Asia/Tokyo",
|
|
"locale": "ja_JP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "settings-view",
|
|
"id": "emulation-locations",
|
|
"title": "Locations",
|
|
"order": 40,
|
|
"className": "Emulation.LocationsSettingsTab",
|
|
"settings": [
|
|
"emulation.locations"
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"title": "Touch",
|
|
"reloadRequired": true,
|
|
"settingName": "emulation.touch",
|
|
"settingType": "enum",
|
|
"defaultValue": "none",
|
|
"options": [
|
|
{
|
|
"title": "Device-based",
|
|
"text": "Device-based",
|
|
"value": "none"
|
|
},
|
|
{
|
|
"title": "Force enabled",
|
|
"text": "Force enabled",
|
|
"value": "force"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"title": "Emulate Idle Detector state",
|
|
"settingName": "emulation.idleDetection",
|
|
"settingType": "enum",
|
|
"defaultValue": "none",
|
|
"options": [
|
|
{
|
|
"title": "No idle emulation",
|
|
"text": "No idle emulation",
|
|
"value": "none"
|
|
},
|
|
{
|
|
"title": "User active, screen unlocked",
|
|
"text": "User active, screen unlocked",
|
|
"value": "{\"isUserActive\":true,\"isScreenUnlocked\":true}"
|
|
},
|
|
{
|
|
"title": "User active, screen locked",
|
|
"text": "User active, screen locked",
|
|
"value": "{\"isUserActive\":true,\"isScreenUnlocked\":false}"
|
|
},
|
|
{
|
|
"title": "User idle, screen unlocked",
|
|
"text": "User idle, screen unlocked",
|
|
"value": "{\"isUserActive\":false,\"isScreenUnlocked\":true}"
|
|
},
|
|
{
|
|
"title": "User idle, screen locked",
|
|
"text": "User idle, screen locked",
|
|
"value": "{\"isUserActive\":false,\"isScreenUnlocked\":false}"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"bindings",
|
|
"components",
|
|
"host",
|
|
"platform",
|
|
"ui",
|
|
"mobile_throttling"
|
|
],
|
|
"modules": [
|
|
"emulation.js",
|
|
"emulation-legacy.js",
|
|
"AdvancedApp.js",
|
|
"DeviceModeModel.js",
|
|
"DeviceModeToolbar.js",
|
|
"DeviceModeView.js",
|
|
"DeviceModeWrapper.js",
|
|
"DevicesSettingsTab.js",
|
|
"EmulatedDevices.js",
|
|
"InspectedPagePlaceholder.js",
|
|
"LocationsSettingsTab.js",
|
|
"MediaQueryInspector.js",
|
|
"SensorsView.js"
|
|
],
|
|
"resources": [
|
|
"deviceModeToolbar.css",
|
|
"deviceModeView.css",
|
|
"devicesSettingsTab.css",
|
|
"inspectedPagePlaceholder.css",
|
|
"locationsSettingsTab.css",
|
|
"mediaQueryInspector.css",
|
|
"sensors.css"
|
|
]
|
|
} |