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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/module.json

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fixes Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "extensions": [ 2 "extensions": [
3 { 3 {
4 "type": "@Common.AppProvider", 4 "type": "@Common.AppProvider",
5 "className": "Main.SimpleAppProvider", 5 "className": "Main.SimpleAppProvider",
6 "order": 10 6 "order": 10
7 }, 7 },
8 { 8 {
9 "type": "@UI.ContextMenu.Provider", 9 "type": "@UI.ContextMenu.Provider",
10 "contextTypes": ["Workspace.UISourceCode", "SDK.Resource", "SDK.Netw orkRequest"], 10 "contextTypes": [
11 "className": "Components.Linkifier.ContentProviderContextMenuProvide r" 11 "Workspace.UISourceCode",
12 }, 12 "SDK.Resource",
13 { 13 "SDK.NetworkRequest"
14 "type": "@UI.ContextMenu.Provider", 14 ],
15 "contextTypes": ["Node"], 15 "className": "Components.Linkifier.ContentProviderContextMenuProvider"
16 "className": "UI.ExternaLinkContextMenuProvider" 16 },
17 }, 17 {
18 { 18 "type": "@UI.ContextMenu.Provider",
19 "type": "@UI.ContextMenu.Provider", 19 "contextTypes": [
20 "contextTypes": ["Node"], 20 "Node"
21 "className": "Components.Linkifier.LinkContextMenuProvider" 21 ],
22 }, 22 "className": "UI.ExternaLinkContextMenuProvider"
23 { 23 },
24 "type": "@UI.ActionDelegate", 24 {
25 "category": "Navigation", 25 "type": "@UI.ContextMenu.Provider",
26 "actionId": "main.reload", 26 "contextTypes": [
27 "className": "Main.Main.ReloadActionDelegate", 27 "Node"
28 "iconClass": "largeicon-refresh", 28 ],
29 "title": "Reload page", 29 "className": "Components.Linkifier.LinkContextMenuProvider"
30 "bindings": [ 30 },
31 { 31 {
32 "platform": "windows,linux", 32 "type": "@UI.ActionDelegate",
33 "shortcut": "F5 Ctrl+R" 33 "category": "Navigation",
34 }, 34 "actionId": "main.reload",
35 { 35 "className": "Main.Main.ReloadActionDelegate",
36 "platform": "mac", 36 "iconClass": "largeicon-refresh",
37 "shortcut": "Meta+R" 37 "title": "Reload page",
38 } 38 "bindings": [
39 ] 39 {
40 }, 40 "platform": "windows,linux",
41 { 41 "shortcut": "F5 Ctrl+R"
42 "type": "@UI.ActionDelegate", 42 },
43 "category": "Navigation", 43 {
44 "actionId": "main.hard-reload", 44 "platform": "mac",
45 "className": "Main.Main.ReloadActionDelegate", 45 "shortcut": "Meta+R"
46 "title": "Hard reload page", 46 }
47 "bindings": [ 47 ]
48 { 48 },
49 "platform": "windows,linux", 49 {
50 "shortcut": "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R" 50 "type": "@UI.ActionDelegate",
51 }, 51 "category": "Navigation",
52 { 52 "actionId": "main.hard-reload",
53 "platform": "mac", 53 "className": "Main.Main.ReloadActionDelegate",
54 "shortcut": "Shift+Meta+R" 54 "title": "Hard reload page",
55 } 55 "bindings": [
56 ] 56 {
57 }, 57 "platform": "windows,linux",
58 { 58 "shortcut": "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R"
59 "type": "@UI.ActionDelegate", 59 },
60 "category": "Drawer", 60 {
61 "actionId": "main.toggle-drawer", 61 "platform": "mac",
62 "className": "UI.InspectorView.DrawerToggleActionDelegate", 62 "shortcut": "Shift+Meta+R"
63 "order": 100, 63 }
64 "title": "Toggle drawer", 64 ]
65 "bindings": [ 65 },
66 { 66 {
67 "shortcut": "Esc" 67 "type": "@UI.ActionDelegate",
68 } 68 "category": "Drawer",
69 ] 69 "actionId": "main.toggle-drawer",
70 }, 70 "className": "UI.InspectorView.DrawerToggleActionDelegate",
71 { 71 "order": 100,
72 "type": "@UI.ActionDelegate", 72 "title": "Toggle drawer",
73 "actionId": "main.debug-reload", 73 "bindings": [
74 "className": "Main.Main.ReloadActionDelegate", 74 {
75 "bindings": [ 75 "shortcut": "Esc"
76 { 76 }
77 "shortcut": "Alt+R" 77 ]
78 } 78 },
79 ] 79 {
80 }, 80 "type": "@UI.ActionDelegate",
81 { 81 "actionId": "main.debug-reload",
82 "type": "@UI.ActionDelegate", 82 "className": "Main.Main.ReloadActionDelegate",
83 "category": "DevTools", 83 "bindings": [
84 "title": "Restore last dock position", 84 {
85 "actionId": "main.toggle-dock", 85 "shortcut": "Alt+R"
86 "className": "Components.DockController.ToggleDockActionDelegate", 86 }
87 "bindings": [ 87 ]
88 { 88 },
89 "platform": "windows,linux", 89 {
90 "shortcut": "Ctrl+Shift+D" 90 "type": "@UI.ActionDelegate",
91 }, 91 "category": "DevTools",
92 { 92 "title": "Restore last dock position",
93 "platform": "mac", 93 "actionId": "main.toggle-dock",
94 "shortcut": "Meta+Shift+D" 94 "className": "Components.DockController.ToggleDockActionDelegate",
95 } 95 "bindings": [
96 ] 96 {
97 }, 97 "platform": "windows,linux",
98 { 98 "shortcut": "Ctrl+Shift+D"
99 "type": "@UI.ActionDelegate", 99 },
100 "actionId": "main.zoom-in", 100 {
101 "className": "Main.Main.ZoomActionDelegate", 101 "platform": "mac",
102 "bindings": [ 102 "shortcut": "Meta+Shift+D"
103 { 103 }
104 "platform": "windows,linux", 104 ]
105 "shortcut": "Ctrl+Plus Ctrl+Shift+Plus Ctrl+NumpadPlus Ctrl+ Shift+NumpadPlus" 105 },
106 }, 106 {
107 { 107 "type": "@UI.ActionDelegate",
108 "platform": "mac", 108 "actionId": "main.zoom-in",
109 "shortcut": "Meta+Plus Meta+Shift+Plus Meta+NumpadPlus Meta+ Shift+NumpadPlus" 109 "className": "Main.Main.ZoomActionDelegate",
110 } 110 "bindings": [
111 ] 111 {
112 }, 112 "platform": "windows,linux",
113 { 113 "shortcut": "Ctrl+Plus Ctrl+Shift+Plus Ctrl+NumpadPlus Ctrl+Shift+Nump adPlus"
114 "type": "@UI.ActionDelegate", 114 },
115 "actionId": "main.zoom-out", 115 {
116 "className": "Main.Main.ZoomActionDelegate", 116 "platform": "mac",
117 "bindings": [ 117 "shortcut": "Meta+Plus Meta+Shift+Plus Meta+NumpadPlus Meta+Shift+Nump adPlus"
118 { 118 }
119 "platform": "windows,linux", 119 ]
120 "shortcut": "Ctrl+Minus Ctrl+Shift+Minus Ctrl+NumpadMinus Ct rl+Shift+NumpadMinus" 120 },
121 }, 121 {
122 { 122 "type": "@UI.ActionDelegate",
123 "platform": "mac", 123 "actionId": "main.zoom-out",
124 "shortcut": "Meta+Minus Meta+Shift+Minus Meta+NumpadMinus Me ta+Shift+NumpadMinus" 124 "className": "Main.Main.ZoomActionDelegate",
125 } 125 "bindings": [
126 ] 126 {
127 }, 127 "platform": "windows,linux",
128 { 128 "shortcut": "Ctrl+Minus Ctrl+Shift+Minus Ctrl+NumpadMinus Ctrl+Shift+N umpadMinus"
129 "type": "@UI.ActionDelegate", 129 },
130 "actionId": "main.zoom-reset", 130 {
131 "className": "Main.Main.ZoomActionDelegate", 131 "platform": "mac",
132 "bindings": [ 132 "shortcut": "Meta+Minus Meta+Shift+Minus Meta+NumpadMinus Meta+Shift+N umpadMinus"
133 { 133 }
134 "platform": "windows,linux", 134 ]
135 "shortcut": "Ctrl+0 Ctrl+Numpad0" 135 },
136 }, 136 {
137 { 137 "type": "@UI.ActionDelegate",
138 "platform": "mac", 138 "actionId": "main.zoom-reset",
139 "shortcut": "Meta+0 Meta+Numpad0" 139 "className": "Main.Main.ZoomActionDelegate",
140 } 140 "bindings": [
141 ] 141 {
142 }, 142 "platform": "windows,linux",
143 { 143 "shortcut": "Ctrl+0 Ctrl+Numpad0"
144 "type": "@UI.ActionDelegate", 144 },
145 "actionId": "main.search-in-panel.find", 145 {
146 "className": "Main.Main.SearchActionDelegate", 146 "platform": "mac",
147 "bindings": [ 147 "shortcut": "Meta+0 Meta+Numpad0"
148 { 148 }
149 "platform": "windows,linux", 149 ]
150 "shortcut": "Ctrl+F" 150 },
151 }, 151 {
152 { 152 "type": "@UI.ActionDelegate",
153 "platform": "mac", 153 "actionId": "main.search-in-panel.find",
154 "shortcut": "Meta+F F3" 154 "className": "Main.Main.SearchActionDelegate",
155 } 155 "bindings": [
156 ] 156 {
157 }, 157 "platform": "windows,linux",
158 { 158 "shortcut": "Ctrl+F"
159 "type": "@UI.ActionDelegate", 159 },
160 "actionId": "main.search-in-panel.cancel", 160 {
161 "className": "Main.Main.SearchActionDelegate", 161 "platform": "mac",
162 "order": 10, 162 "shortcut": "Meta+F F3"
163 "bindings": [ 163 }
164 { 164 ]
165 "shortcut": "Esc" 165 },
166 } 166 {
167 ] 167 "type": "@UI.ActionDelegate",
168 }, 168 "actionId": "main.search-in-panel.cancel",
169 { 169 "className": "Main.Main.SearchActionDelegate",
170 "type": "@UI.ActionDelegate", 170 "order": 10,
171 "actionId": "main.search-in-panel.find-next", 171 "bindings": [
172 "className": "Main.Main.SearchActionDelegate", 172 {
173 "bindings": [ 173 "shortcut": "Esc"
174 { 174 }
175 "platform": "mac", 175 ]
176 "shortcut": "Meta+G" 176 },
177 } 177 {
178 ] 178 "type": "@UI.ActionDelegate",
179 }, 179 "actionId": "main.search-in-panel.find-next",
180 { 180 "className": "Main.Main.SearchActionDelegate",
181 "type": "@UI.ActionDelegate", 181 "bindings": [
182 "actionId": "main.search-in-panel.find-previous", 182 {
183 "className": "Main.Main.SearchActionDelegate", 183 "platform": "mac",
184 "bindings": [ 184 "shortcut": "Meta+G"
185 { 185 }
186 "platform": "mac", 186 ]
187 "shortcut": "Meta+Shift+G" 187 },
188 } 188 {
189 ] 189 "type": "@UI.ActionDelegate",
190 }, 190 "actionId": "main.search-in-panel.find-previous",
191 { 191 "className": "Main.Main.SearchActionDelegate",
192 "type": "@UI.ToolbarItem.Provider", 192 "bindings": [
193 "separator": true, 193 {
194 "location": "main-toolbar-left", 194 "platform": "mac",
195 "order": 100 195 "shortcut": "Meta+Shift+G"
196 }, 196 }
197 { 197 ]
198 "type": "@UI.ToolbarItem.Provider", 198 },
199 "className": "Main.Main.WarningErrorCounter", 199 {
200 "order": 1, 200 "type": "@UI.ToolbarItem.Provider",
201 "location": "main-toolbar-right" 201 "separator": true,
202 }, 202 "location": "main-toolbar-left",
203 { 203 "order": 100
204 "type": "@UI.ToolbarItem.Provider", 204 },
205 "separator": true, 205 {
206 "order": 98, 206 "type": "@UI.ToolbarItem.Provider",
207 "location": "main-toolbar-right" 207 "className": "Main.Main.WarningErrorCounter",
208 }, 208 "order": 1,
209 { 209 "location": "main-toolbar-right"
210 "type": "@UI.ToolbarItem.Provider", 210 },
211 "className": "Main.Main.MainMenuItem", 211 {
212 "order": 99, 212 "type": "@UI.ToolbarItem.Provider",
213 "location": "main-toolbar-right" 213 "separator": true,
214 }, 214 "order": 98,
215 { 215 "location": "main-toolbar-right"
216 "type": "@UI.ToolbarItem.Provider", 216 },
217 "className": "Components.DockController.CloseButtonProvider", 217 {
218 "order": 100, 218 "type": "@UI.ToolbarItem.Provider",
219 "location": "main-toolbar-right" 219 "className": "Main.Main.MainMenuItem",
220 }, 220 "order": 99,
221 { 221 "location": "main-toolbar-right"
222 "type": "setting", 222 },
223 "category": "Network", 223 {
224 "title": "Disable cache (while DevTools is open)", 224 "type": "@UI.ToolbarItem.Provider",
225 "settingName": "cacheDisabled", 225 "className": "Components.DockController.CloseButtonProvider",
226 "settingType": "boolean", 226 "order": 100,
227 "order": 0, 227 "location": "main-toolbar-right"
228 "defaultValue": false, 228 },
229 "options": [ 229 {
230 { "value": true, "title": "Disable cache (while DevTools is open )" }, 230 "type": "setting",
231 { "value": false, "title": "Enable cache" } 231 "category": "Network",
232 ] 232 "title": "Disable cache (while DevTools is open)",
233 }, 233 "settingName": "cacheDisabled",
234 { 234 "settingType": "boolean",
235 "type": "setting", 235 "order": 0,
236 "category": "Debugger", 236 "defaultValue": false,
237 "title": "Disable JavaScript", 237 "options": [
238 "settingName": "javaScriptDisabled", 238 {
239 "settingType": "boolean", 239 "value": true,
240 "order": 1, 240 "title": "Disable cache (while DevTools is open)"
241 "defaultValue": false, 241 },
242 "options": [ 242 {
243 { "value": true, "title": "Disable JavaScript" }, 243 "value": false,
244 { "value": false, "title": "Enable JavaScript" } 244 "title": "Enable cache"
245 ] 245 }
246 }, 246 ]
247 { 247 },
248 "type": "setting", 248 {
249 "category": "DevTools", 249 "type": "setting",
250 "title": "Auto-open DevTools for popups", 250 "category": "Debugger",
251 "settingName": "autoAttachToCreatedPages", 251 "title": "Disable JavaScript",
252 "settingType": "boolean", 252 "settingName": "javaScriptDisabled",
253 "order": 2, 253 "settingType": "boolean",
254 "defaultValue": false, 254 "order": 1,
255 "options": [ 255 "defaultValue": false,
256 { "value": true, "title": "Auto-open DevTools for popups" }, 256 "options": [
257 { "value": false, "title": "Do not auto-open DevTools for popups " } 257 {
258 ] 258 "value": true,
259 }, 259 "title": "Disable JavaScript"
260 { 260 },
261 "type": "setting", 261 {
262 "category": "Appearance", 262 "value": false,
263 "title": "Theme:", 263 "title": "Enable JavaScript"
264 "settingName": "uiTheme", 264 }
265 "settingType": "enum", 265 ]
266 "defaultValue": "default", 266 },
267 "options": [ 267 {
268 { "title": "Switch to light theme", "text": "Light", "value": "d efault" }, 268 "type": "setting",
269 { "title": "Switch to dark theme", "text": "Dark", "value": "dar k" } 269 "category": "DevTools",
270 ], 270 "title": "Auto-open DevTools for popups",
271 "tags": "dark, light" 271 "settingName": "autoAttachToCreatedPages",
272 }, 272 "settingType": "boolean",
273 { 273 "order": 2,
274 "type": "setting", 274 "defaultValue": false,
275 "category": "Appearance", 275 "options": [
276 "title": "Panel layout:", 276 {
277 "settingName": "sidebarPosition", 277 "value": true,
278 "settingType": "enum", 278 "title": "Auto-open DevTools for popups"
279 "defaultValue": "auto", 279 },
280 "options": [ 280 {
281 { "title": "Use horizontal panel layout", "text": "horizontal", "value": "bottom" }, 281 "value": false,
282 { "title": "Use vertical panel layout", "text": "vertical", "val ue": "right" }, 282 "title": "Do not auto-open DevTools for popups"
283 { "title": "Use automatic panel layout", "text": "auto", "value" : "auto" } 283 }
284 ] 284 ]
285 }, 285 },
286 { 286 {
287 "type": "setting", 287 "type": "setting",
288 "category": "Appearance", 288 "category": "Appearance",
289 "title": "Enable Ctrl + 1-9 shortcut to switch panels", 289 "title": "Theme:",
290 "title-mac": "Enable \u2318 + 1-9 shortcut to switch panels", 290 "settingName": "uiTheme",
291 "settingName": "shortcutPanelSwitch", 291 "settingType": "enum",
292 "settingType": "boolean", 292 "defaultValue": "default",
293 "defaultValue": false 293 "options": [
294 }, 294 {
295 { 295 "title": "Switch to light theme",
296 "type": "setting", 296 "text": "Light",
297 "category": "Appearance", 297 "value": "default"
298 "title": "Don't show Chrome Data Saver warning", 298 },
299 "settingName": "disableDataSaverInfobar", 299 {
300 "settingType": "boolean", 300 "title": "Switch to dark theme",
301 "defaultValue": false 301 "text": "Dark",
302 }, 302 "value": "dark"
303 { 303 }
304 "type": "setting", 304 ],
305 "category": "Appearance", 305 "tags": "dark, light"
306 "title": "Disable paused state overlay", 306 },
307 "settingName": "disablePausedStateOverlay", 307 {
308 "settingType": "boolean", 308 "type": "setting",
309 "defaultValue": false 309 "category": "Appearance",
310 }, 310 "title": "Panel layout:",
311 { 311 "settingName": "sidebarPosition",
312 "type": "@UI.SettingUI", 312 "settingType": "enum",
313 "category": "Extensions", 313 "defaultValue": "auto",
314 "className": "Components.Linkifier.LinkHandlerSettingUI" 314 "options": [
315 }, 315 {
316 { 316 "title": "Use horizontal panel layout",
317 "type": "@UI.SettingUI", 317 "text": "horizontal",
318 "category": "Elements", 318 "value": "bottom"
319 "order": 3, 319 },
320 "className": "Main.ShowMetricsRulersSettingUI" 320 {
321 }, 321 "title": "Use vertical panel layout",
322 { 322 "text": "vertical",
323 "type": "context-menu-item", 323 "value": "right"
324 "location": "mainMenu/navigate", 324 },
325 "title": "More tools", 325 {
326 "subMenuId": "mainMenuMoreTools", 326 "title": "Use automatic panel layout",
327 "order": 80 327 "text": "auto",
328 }, 328 "value": "auto"
329 { 329 }
330 "type": "view", 330 ]
331 "location": "drawer-view", 331 },
332 "id": "rendering", 332 {
333 "title": "Rendering", 333 "type": "setting",
334 "persistence": "closeable", 334 "category": "Appearance",
335 "order": 50, 335 "title": "Enable Ctrl + 1-9 shortcut to switch panels",
336 "className": "Main.RenderingOptionsView" 336 "title-mac": "Enable ⌘ + 1-9 shortcut to switch panels",
337 }, 337 "settingName": "shortcutPanelSwitch",
338 { 338 "settingType": "boolean",
339 "type": "setting", 339 "defaultValue": false
340 "category": "DevTools", 340 },
341 "settingName": "currentDockState", 341 {
342 "settingType": "enum", 342 "type": "setting",
343 "defaultValue": "right", 343 "category": "Appearance",
344 "options": [ 344 "title": "Don't show Chrome Data Saver warning",
345 { "value": "right", "title": "Dock to right" }, 345 "settingName": "disableDataSaverInfobar",
346 { "value": "bottom", "title": "Dock to bottom" }, 346 "settingType": "boolean",
347 { "value": "undocked", "title": "Undock into separate window" } 347 "defaultValue": false
348 ] 348 },
349 }, 349 {
350 { 350 "type": "setting",
351 "type": "@UI.ViewLocationResolver", 351 "category": "Appearance",
352 "name": "drawer-view", 352 "title": "Disable paused state overlay",
353 "className": "UI.InspectorView" 353 "settingName": "disablePausedStateOverlay",
354 } 354 "settingType": "boolean",
355 ], 355 "defaultValue": false
356 "dependencies": [ 356 },
357 "extensions", 357 {
358 "host", 358 "type": "@UI.SettingUI",
359 "platform", 359 "category": "Extensions",
360 "sdk", 360 "className": "Components.Linkifier.LinkHandlerSettingUI"
361 "persistence" 361 },
362 ], 362 {
363 "scripts": [ 363 "type": "@UI.SettingUI",
364 "RenderingOptions.js", 364 "category": "Elements",
365 "SimpleApp.js", 365 "order": 3,
366 "OverlayController.js", 366 "className": "Main.ShowMetricsRulersSettingUI"
367 "Main.js" 367 },
368 ], 368 {
369 "resources": [ 369 "type": "context-menu-item",
370 "errorWarningCounter.css", 370 "location": "mainMenu/navigate",
371 "remoteDebuggingTerminatedScreen.css", 371 "title": "More tools",
372 "renderingOptions.css", 372 "subMenuId": "mainMenuMoreTools",
373 "targetCrashedScreen.css" 373 "order": 80
374 ] 374 },
375 } 375 {
376 "type": "view",
377 "location": "drawer-view",
378 "id": "rendering",
379 "title": "Rendering",
380 "persistence": "closeable",
381 "order": 50,
382 "className": "Main.RenderingOptionsView"
383 },
384 {
385 "type": "setting",
386 "category": "DevTools",
387 "settingName": "currentDockState",
388 "settingType": "enum",
389 "defaultValue": "right",
390 "options": [
391 {
392 "value": "right",
393 "title": "Dock to right"
394 },
395 {
396 "value": "bottom",
397 "title": "Dock to bottom"
398 },
399 {
400 "value": "undocked",
401 "title": "Undock into separate window"
402 }
403 ]
404 },
405 {
406 "type": "@UI.ViewLocationResolver",
407 "name": "drawer-view",
408 "className": "UI.InspectorView"
409 },
410 {
411 "type": "@UI.ActionDelegate",
412 "actionId": "components.collect-garbage",
413 "title": "Collect garbage",
414 "iconClass": "largeicon-trash-bin",
415 "className": "Main.GCActionDelegate"
416 },
417 {
418 "type": "@UI.ActionDelegate",
419 "category": "Mobile",
420 "actionId": "components.request-app-banner",
421 "className": "Main.RequestAppBannerActionDelegate",
422 "title": "Add to homescreen"
423 }
424 ],
425 "dependencies": [
426 "extensions",
427 "host",
428 "platform",
429 "sdk",
430 "persistence"
431 ],
432 "scripts": [
433 "RenderingOptions.js",
434 "SimpleApp.js",
435 "OverlayController.js",
436 "Main.js",
437 "DataSaverInfobar.js",
438 "ExecutionContextSelector.js",
439 "GCActionDelegate.js",
440 "RequestAppBannerActionDelegate.js",
441 "Reload.js"
442 ],
443 "resources": [
444 "errorWarningCounter.css",
445 "remoteDebuggingTerminatedScreen.css",
446 "renderingOptions.css",
447 "targetCrashedScreen.css"
448 ]
449 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698