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

Side by Side Diff: Source/devtools/front_end/modules.js

Issue 170273003: DevTools: Implement extensions-based shortcut bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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",
35 extensions: [
36 {
37 type: "@WebInspector.ActionDelegate",
38 bindings: [
39 {
40 platform: "win,linux",
41 shortcut: "F5 Ctrl+R"
42 },
43 {
44 platform: "mac",
45 shortcut: "Meta+R"
46 }
47 ],
48 className: "WebInspector.Main.ReloadActionDelegate"
49 },
50 {
51 type: "@WebInspector.ActionDelegate",
52 bindings: [
53 {
54 platform: "win,linux",
55 shortcut: "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R"
56 },
57 {
58 platform: "mac",
59 shortcut: "Shift+Meta+R"
60 }
61 ],
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 }
82 ]
83 },
84 {
34 name: "elements", 85 name: "elements",
35 extensions: [ 86 extensions: [
36 { 87 {
37 type: "@WebInspector.Panel", 88 type: "@WebInspector.Panel",
38 name: "elements", 89 name: "elements",
39 title: "Elements", 90 title: "Elements",
40 order: 0, 91 order: 0,
41 className: "WebInspector.ElementsPanel" 92 className: "WebInspector.ElementsPanel"
42 }, 93 },
43 { 94 {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 title: "Content scripts", 216 title: "Content scripts",
166 order: 2, 217 order: 2,
167 className: "WebInspector.ContentScriptsNavigatorView" 218 className: "WebInspector.ContentScriptsNavigatorView"
168 }, 219 },
169 { 220 {
170 type: "navigator-view", 221 type: "navigator-view",
171 name: "snippets", 222 name: "snippets",
172 title: "Snippets", 223 title: "Snippets",
173 order: 3, 224 order: 3,
174 className: "WebInspector.SnippetsNavigatorView" 225 className: "WebInspector.SnippetsNavigatorView"
226 },
227 {
228 type: "@WebInspector.ActionDelegate",
229 bindings: [
230 {
231 platform: "mac",
232 shortcut: "Meta+O Meta+P"
233 },
234 {
235 platform: "win,linux",
236 shortcut: "Ctrl+O Ctrl+P"
237 }
238 ],
239 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate"
175 } 240 }
176 ], 241 ],
177 scripts: [ "SourcesPanel.js" ] 242 scripts: [ "SourcesPanel.js" ]
178 }, 243 },
179 { 244 {
180 name: "timeline", 245 name: "timeline",
181 extensions: [ 246 extensions: [
182 { 247 {
183 type: "@WebInspector.Panel", 248 type: "@WebInspector.Panel",
184 name: "timeline", 249 name: "timeline",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 type: "drawer-view", 317 type: "drawer-view",
253 name: "console", 318 name: "console",
254 title: "Console", 319 title: "Console",
255 order: "0", 320 order: "0",
256 className: "WebInspector.ConsolePanel.WrapperView" 321 className: "WebInspector.ConsolePanel.WrapperView"
257 }, 322 },
258 { 323 {
259 type: "@WebInspector.Revealer", 324 type: "@WebInspector.Revealer",
260 contextTypes: ["WebInspector.ConsoleModel"], 325 contextTypes: ["WebInspector.ConsoleModel"],
261 className: "WebInspector.ConsolePanel.ConsoleRevealer" 326 className: "WebInspector.ConsolePanel.ConsoleRevealer"
327 },
328 {
329 type: "@WebInspector.ActionDelegate",
330 bindings: [
331 {
332 shortcut: "Ctrl+`"
333 }
334 ],
335 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate"
262 } 336 }
263 ], 337 ],
264 scripts: [ "ConsolePanel.js" ] 338 scripts: [ "ConsolePanel.js" ]
265 }, 339 },
266 { 340 {
341 name: "settings",
342 extensions: [
343 {
344 type: "@WebInspector.ActionDelegate",
345 bindings: [
346 {
347 shortcut: "F1 Shift+?"
348 }
349 ],
350 className: "WebInspector.SettingsController.SettingsScreenAction Delegate"
351 }
352 ]
353 },
354 {
355 name: "extensions",
267 extensions: [ 356 extensions: [
268 { 357 {
269 type: "@WebInspector.ExtensionServerAPI", 358 type: "@WebInspector.ExtensionServerAPI",
270 className: "WebInspector.ExtensionServer" 359 className: "WebInspector.ExtensionServer"
271 } 360 }
272 ], 361 ],
273 name: "extensions",
274 scripts: [ "ExtensionServer.js" ] 362 scripts: [ "ExtensionServer.js" ]
275 }, 363 },
276 { 364 {
277 name: "layers", 365 name: "layers",
278 extensions: [ 366 extensions: [
279 { 367 {
280 type: "@WebInspector.Panel", 368 type: "@WebInspector.Panel",
281 name: "layers", 369 name: "layers",
282 title: "Layers", 370 title: "Layers",
283 order: 7, 371 order: 7,
(...skipping 11 matching lines...) Expand all
295 name: "handler-registry", 383 name: "handler-registry",
296 extensions: [ 384 extensions: [
297 { 385 {
298 type: "@WebInspector.ContextMenu.Provider", 386 type: "@WebInspector.ContextMenu.Provider",
299 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"], 387 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"],
300 className: "WebInspector.HandlerRegistry.ContextMenuProvider" 388 className: "WebInspector.HandlerRegistry.ContextMenuProvider"
301 } 389 }
302 ] 390 ]
303 } 391 }
304 ]; 392 ];
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/scripts/frontend_modules.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698