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

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

Issue 225873004: DevTools: Handle the F8 shortcut forwarded from the inspected page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME Created 6 years, 8 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
« no previous file with comments | « Source/devtools/front_end/Main.js ('k') | Source/devtools/front_end/externs.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 */ 479 */
480 _editorChanged: function(uiSourceCode) 480 _editorChanged: function(uiSourceCode)
481 { 481 {
482 var isSnippet = uiSourceCode && uiSourceCode.project().type() === WebIns pector.projectTypes.Snippets; 482 var isSnippet = uiSourceCode && uiSourceCode.project().type() === WebIns pector.projectTypes.Snippets;
483 this._runSnippetButton.element.classList.toggle("hidden", !isSnippet); 483 this._runSnippetButton.element.classList.toggle("hidden", !isSnippet);
484 }, 484 },
485 485
486 /** 486 /**
487 * @return {boolean} 487 * @return {boolean}
488 */ 488 */
489 _togglePause: function() 489 togglePause: function()
490 { 490 {
491 if (this._paused) { 491 if (this._paused) {
492 delete this._skipExecutionLineRevealing; 492 delete this._skipExecutionLineRevealing;
493 this._paused = false; 493 this._paused = false;
494 this._waitingToPause = false; 494 this._waitingToPause = false;
495 WebInspector.debuggerModel.resume(); 495 WebInspector.debuggerModel.resume();
496 } else { 496 } else {
497 this._waitingToPause = true; 497 this._waitingToPause = true;
498 // Make sure pauses didn't stick skipped. 498 // Make sure pauses didn't stick skipped.
499 WebInspector.debuggerModel.skipAllPauses(false); 499 WebInspector.debuggerModel.skipAllPauses(false);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta; 627 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta;
628 628
629 // Run snippet. 629 // Run snippet.
630 title = WebInspector.UIString("Run snippet (%s)."); 630 title = WebInspector.UIString("Run snippet (%s).");
631 handler = this._runSnippet.bind(this); 631 handler = this._runSnippet.bind(this);
632 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.ShortcutsScreen.SourcesPanelShortcut s.RunSnippet); 632 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.ShortcutsScreen.SourcesPanelShortcut s.RunSnippet);
633 debugToolbar.appendChild(this._runSnippetButton.element); 633 debugToolbar.appendChild(this._runSnippetButton.element);
634 this._runSnippetButton.element.classList.add("hidden"); 634 this._runSnippetButton.element.classList.add("hidden");
635 635
636 // Continue. 636 // Continue.
637 handler = this._togglePause.bind(this); 637 handler = this.togglePause.bind(this);
638 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PauseContinu e); 638 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PauseContinu e);
639 debugToolbar.appendChild(this._pauseButton.element); 639 debugToolbar.appendChild(this._pauseButton.element);
640 640
641 // Long resume. 641 // Long resume.
642 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms "); 642 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms ");
643 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume"); 643 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume");
644 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this); 644 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this);
645 645
646 // Step over. 646 // Step over.
647 title = WebInspector.UIString("Step over next function call (%s)."); 647 title = WebInspector.UIString("Step over next function call (%s).");
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 var disabled = forbidden || (status === "disabled"); 1324 var disabled = forbidden || (status === "disabled");
1325 1325
1326 this._disableJSInfo.classList.toggle("hidden", !forbidden); 1326 this._disableJSInfo.classList.toggle("hidden", !forbidden);
1327 this._disableJSCheckbox.checked = disabled; 1327 this._disableJSCheckbox.checked = disabled;
1328 this._disableJSCheckbox.disabled = forbidden; 1328 this._disableJSCheckbox.disabled = forbidden;
1329 } 1329 }
1330 }, 1330 },
1331 1331
1332 __proto__: WebInspector.UISettingDelegate.prototype 1332 __proto__: WebInspector.UISettingDelegate.prototype
1333 } 1333 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Main.js ('k') | Source/devtools/front_end/externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698