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

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 1312393004: Devtools UI: Fix Chrome focus shortcut and add pause debugger shortcut (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 { 345 {
346 console.timeStamp("Main.inspectorAgentEnableCallback"); 346 console.timeStamp("Main.inspectorAgentEnableCallback");
347 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorAgentEnabledForTests); 347 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorAgentEnabledForTests);
348 // Asynchronously run the extensions. 348 // Asynchronously run the extensions.
349 setTimeout(function() { WebInspector.extensionServer.initializeExten sions(); }, 0); 349 setTimeout(function() { WebInspector.extensionServer.initializeExten sions(); }, 0);
350 } 350 }
351 }, 351 },
352 352
353 _registerForwardedShortcuts: function() 353 _registerForwardedShortcuts: function()
354 { 354 {
355 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active"]; 355 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active", "debugger.toggle-paus e"];
356 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); 356 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey);
357 357
358 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); 358 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code});
359 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) ); 359 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) );
360 }, 360 },
361 361
362 _registerMessageSinkListener: function() 362 _registerMessageSinkListener: function()
363 { 363 {
364 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded); 364 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded);
365 365
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 p.classList.add("help-section"); 934 p.classList.add("help-section");
935 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); 935 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
936 } 936 }
937 937
938 WebInspector.WorkerTerminatedScreen.prototype = { 938 WebInspector.WorkerTerminatedScreen.prototype = {
939 939
940 __proto__: WebInspector.HelpScreen.prototype 940 __proto__: WebInspector.HelpScreen.prototype
941 } 941 }
942 942
943 new WebInspector.Main(); 943 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698