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

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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 { 344 {
345 console.timeStamp("Main.inspectorAgentEnableCallback"); 345 console.timeStamp("Main.inspectorAgentEnableCallback");
346 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorAgentEnabledForTests); 346 WebInspector.notifications.dispatchEventToListeners(WebInspector.Not ificationService.Events.InspectorAgentEnabledForTests);
347 // Asynchronously run the extensions. 347 // Asynchronously run the extensions.
348 setTimeout(function() { WebInspector.extensionServer.initializeExten sions(); }, 0); 348 setTimeout(function() { WebInspector.extensionServer.initializeExten sions(); }, 0);
349 } 349 }
350 }, 350 },
351 351
352 _registerForwardedShortcuts: function() 352 _registerForwardedShortcuts: function()
353 { 353 {
354 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active"]; 354 /** @const */ var forwardedActions = ["main.reload", "main.hard-reload", "main.toggle-dock", "debugger.toggle-breakpoints-active", "debugger.toggle-paus e"];
355 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey); 355 var actionKeys = WebInspector.shortcutRegistry.keysForActions(forwardedA ctions).map(WebInspector.KeyboardShortcut.keyCodeAndModifiersFromKey);
356 356
357 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}); 357 actionKeys.push({keyCode: WebInspector.KeyboardShortcut.Keys.F8.code});
358 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) ); 358 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify(actionKeys) );
359 }, 359 },
360 360
361 _registerMessageSinkListener: function() 361 _registerMessageSinkListener: function()
362 { 362 {
363 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded); 363 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded);
364 364
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 p.classList.add("help-section"); 933 p.classList.add("help-section");
934 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); 934 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
935 } 935 }
936 936
937 WebInspector.WorkerTerminatedScreen.prototype = { 937 WebInspector.WorkerTerminatedScreen.prototype = {
938 938
939 __proto__: WebInspector.HelpScreen.prototype 939 __proto__: WebInspector.HelpScreen.prototype
940 } 940 }
941 941
942 new WebInspector.Main(); 942 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698