Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * @type {!Array.<!WebInspector.ModuleManager.ModuleDescriptor>} | 30 * @type {!Array.<!WebInspector.ModuleManager.ModuleDescriptor>} |
| 31 */ | 31 */ |
| 32 var allDescriptors = [ | 32 var allDescriptors = [ |
| 33 { | 33 { |
| 34 name: "main", | 34 name: "main", |
| 35 extensions: [ | 35 extensions: [ |
| 36 { | 36 { |
| 37 type: "@WebInspector.ActionRegistryAPI", | |
| 38 className: "WebInspector.ActionRegistry" | |
| 39 }, | |
| 40 { | |
| 37 type: "@WebInspector.ActionDelegate", | 41 type: "@WebInspector.ActionDelegate", |
| 42 className: "WebInspector.Main.ReloadActionDelegate", | |
| 43 actionId: "main.reload" | |
| 44 }, | |
| 45 { | |
| 46 type: "@WebInspector.ActionDelegate", | |
| 47 className: "WebInspector.Main.HardReloadActionDelegate", | |
| 48 actionId: "main.hard-reload" | |
| 49 }, | |
| 50 { | |
| 51 type: "@WebInspector.ActionDelegate", | |
| 52 className: "WebInspector.InspectorView.DrawerToggleActionDelegat e", | |
| 53 actionId: "main.toggle-drawer" | |
| 54 }, | |
| 55 { | |
| 56 type: "@WebInspector.ActionDelegate", | |
| 57 className: "WebInspector.Main.DebugReloadActionDelegate", | |
| 58 actionId: "main.debug-reload" | |
| 59 }, | |
| 60 { | |
| 61 type: "action-bindings", | |
| 38 bindings: [ | 62 bindings: [ |
| 39 { | 63 { |
| 40 platform: "windows,linux", | 64 platform: "windows,linux", |
| 41 shortcut: "F5 Ctrl+R" | 65 shortcut: "F5 Ctrl+R", |
| 66 actionId: "main.reload" | |
| 42 }, | 67 }, |
| 43 { | 68 { |
| 44 platform: "mac", | 69 platform: "mac", |
| 45 shortcut: "Meta+R" | 70 shortcut: "Meta+R", |
|
pfeldman
2014/04/14 13:10:44
I don't think we should decouple these - too much
apavlov
2014/04/15 13:33:14
Done.
| |
| 46 } | 71 actionId: "main.reload" |
| 47 ], | 72 }, |
| 48 className: "WebInspector.Main.ReloadActionDelegate" | |
| 49 }, | |
| 50 { | |
| 51 type: "@WebInspector.ActionDelegate", | |
| 52 bindings: [ | |
| 53 { | 73 { |
| 54 platform: "windows,linux", | 74 platform: "windows,linux", |
| 55 shortcut: "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R" | 75 shortcut: "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R", |
| 76 actionId: "main.hard-reload" | |
| 56 }, | 77 }, |
| 57 { | 78 { |
| 58 platform: "mac", | 79 platform: "mac", |
| 59 shortcut: "Shift+Meta+R" | 80 shortcut: "Shift+Meta+R", |
| 81 actionId: "main.hard-reload" | |
| 82 }, | |
| 83 { | |
| 84 shortcut: "Esc", | |
| 85 actionId: "main.toggle-drawer" | |
| 86 }, | |
| 87 { | |
| 88 shortcut: "Alt+R", | |
| 89 actionId: "main.debug-reload" | |
| 60 } | 90 } |
| 61 ], | 91 ] |
| 62 className: "WebInspector.Main.HardReloadActionDelegate" | |
| 63 }, | |
| 64 { | |
| 65 type: "@WebInspector.ActionDelegate", | |
| 66 bindings: [ | |
| 67 { | |
| 68 shortcut: "Esc" | |
| 69 } | |
| 70 ], | |
| 71 className: "WebInspector.InspectorView.DrawerToggleActionDelegat e" | |
| 72 }, | |
| 73 { | |
| 74 type: "@WebInspector.ActionDelegate", | |
| 75 bindings: [ | |
| 76 { | |
| 77 shortcut: "Alt+R" | |
| 78 } | |
| 79 ], | |
| 80 className: "WebInspector.Main.DebugReloadActionDelegate" | |
| 81 }, | 92 }, |
| 82 { | 93 { |
| 83 type: "ui-setting", | 94 type: "ui-setting", |
| 84 title: "Disable cache (while DevTools is open)", | 95 title: "Disable cache (while DevTools is open)", |
| 85 settingName: "cacheDisabled", | 96 settingName: "cacheDisabled", |
| 86 settingType: "checkbox" | 97 settingType: "checkbox" |
| 87 }, | 98 }, |
| 88 { | 99 { |
| 89 type: "ui-setting", | 100 type: "ui-setting", |
| 90 section: "Appearance", | 101 section: "Appearance", |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 }, | 309 }, |
| 299 { | 310 { |
| 300 type: "navigator-view", | 311 type: "navigator-view", |
| 301 name: "snippets", | 312 name: "snippets", |
| 302 title: "Snippets", | 313 title: "Snippets", |
| 303 order: 3, | 314 order: 3, |
| 304 className: "WebInspector.SnippetsNavigatorView" | 315 className: "WebInspector.SnippetsNavigatorView" |
| 305 }, | 316 }, |
| 306 { | 317 { |
| 307 type: "@WebInspector.ActionDelegate", | 318 type: "@WebInspector.ActionDelegate", |
| 319 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate", | |
| 320 actionId: "sources.go-to-source" | |
| 321 }, | |
| 322 { | |
| 323 type: "action-bindings", | |
| 308 bindings: [ | 324 bindings: [ |
| 309 { | 325 { |
| 310 platform: "mac", | 326 platform: "mac", |
| 311 shortcut: "Meta+O Meta+P" | 327 shortcut: "Meta+O Meta+P", |
| 328 actionId: "sources.go-to-source" | |
| 312 }, | 329 }, |
| 313 { | 330 { |
| 314 platform: "windows,linux", | 331 platform: "windows,linux", |
| 315 shortcut: "Ctrl+O Ctrl+P" | 332 shortcut: "Ctrl+O Ctrl+P", |
| 333 actionId: "sources.go-to-source" | |
| 316 } | 334 } |
| 317 ], | 335 ] |
| 318 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate" | |
| 319 }, | 336 }, |
| 320 { | 337 { |
| 321 type: "ui-setting", | 338 type: "ui-setting", |
| 322 settingName: "javaScriptDisabled", | 339 settingName: "javaScriptDisabled", |
| 323 settingType: "custom", | 340 settingType: "custom", |
| 324 className: "WebInspector.SourcesPanel.DisableJavaScriptSettingDe legate" | 341 className: "WebInspector.SourcesPanel.DisableJavaScriptSettingDe legate" |
| 325 }, | 342 }, |
| 326 { | 343 { |
| 327 type: "ui-setting", | 344 type: "ui-setting", |
| 328 section: "Sources", | 345 section: "Sources", |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 490 order: "0", | 507 order: "0", |
| 491 className: "WebInspector.ConsolePanel.WrapperView" | 508 className: "WebInspector.ConsolePanel.WrapperView" |
| 492 }, | 509 }, |
| 493 { | 510 { |
| 494 type: "@WebInspector.Revealer", | 511 type: "@WebInspector.Revealer", |
| 495 contextTypes: ["WebInspector.ConsoleModel"], | 512 contextTypes: ["WebInspector.ConsoleModel"], |
| 496 className: "WebInspector.ConsolePanel.ConsoleRevealer" | 513 className: "WebInspector.ConsolePanel.ConsoleRevealer" |
| 497 }, | 514 }, |
| 498 { | 515 { |
| 499 type: "@WebInspector.ActionDelegate", | 516 type: "@WebInspector.ActionDelegate", |
| 517 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate", | |
| 518 actionId: "console.show" | |
| 519 }, | |
| 520 { | |
| 521 type: "action-bindings", | |
| 500 bindings: [ | 522 bindings: [ |
| 501 { | 523 { |
| 502 shortcut: "Ctrl+`" | 524 shortcut: "Ctrl+`", |
| 525 actionId: "console.show" | |
| 503 } | 526 } |
| 504 ], | 527 ] |
| 505 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate" | |
| 506 }, | 528 }, |
| 507 { | 529 { |
| 508 type: "ui-setting", | 530 type: "ui-setting", |
| 509 section: "Console", | 531 section: "Console", |
| 510 title: "Log XMLHttpRequests", | 532 title: "Log XMLHttpRequests", |
| 511 settingName: "monitoringXHREnabled", | 533 settingName: "monitoringXHREnabled", |
| 512 settingType: "checkbox" | 534 settingType: "checkbox" |
| 513 }, | 535 }, |
| 514 { | 536 { |
| 515 type: "ui-setting", | 537 type: "ui-setting", |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 526 settingType: "checkbox" | 548 settingType: "checkbox" |
| 527 } | 549 } |
| 528 ], | 550 ], |
| 529 scripts: [ "ConsolePanel.js" ] | 551 scripts: [ "ConsolePanel.js" ] |
| 530 }, | 552 }, |
| 531 { | 553 { |
| 532 name: "settings", | 554 name: "settings", |
| 533 extensions: [ | 555 extensions: [ |
| 534 { | 556 { |
| 535 type: "@WebInspector.ActionDelegate", | 557 type: "@WebInspector.ActionDelegate", |
| 558 className: "WebInspector.SettingsController.SettingsScreenAction Delegate", | |
| 559 actionId: "settings.show" | |
| 560 }, | |
| 561 { | |
| 562 type: "action-bindings", | |
| 536 bindings: [ | 563 bindings: [ |
| 537 { | 564 { |
| 538 shortcut: "F1 Shift+?" | 565 shortcut: "F1 Shift+?", |
| 566 actionId: "settings.show" | |
| 539 } | 567 } |
| 540 ], | 568 ] |
| 541 className: "WebInspector.SettingsController.SettingsScreenAction Delegate" | |
| 542 } | 569 } |
| 543 ] | 570 ] |
| 544 }, | 571 }, |
| 545 { | 572 { |
| 546 name: "extensions", | 573 name: "extensions", |
| 547 extensions: [ | 574 extensions: [ |
| 548 { | 575 { |
| 549 type: "@WebInspector.ExtensionServerAPI", | 576 type: "@WebInspector.ExtensionServerAPI", |
| 550 className: "WebInspector.ExtensionServer" | 577 className: "WebInspector.ExtensionServer" |
| 551 } | 578 } |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 574 name: "handler-registry", | 601 name: "handler-registry", |
| 575 extensions: [ | 602 extensions: [ |
| 576 { | 603 { |
| 577 type: "@WebInspector.ContextMenu.Provider", | 604 type: "@WebInspector.ContextMenu.Provider", |
| 578 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"], | 605 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"], |
| 579 className: "WebInspector.HandlerRegistry.ContextMenuProvider" | 606 className: "WebInspector.HandlerRegistry.ContextMenuProvider" |
| 580 } | 607 } |
| 581 ] | 608 ] |
| 582 } | 609 } |
| 583 ]; | 610 ]; |
| OLD | NEW |