OLD | NEW |
---|---|
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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
664 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta; | 664 var platformSpecificModifier = WebInspector.KeyboardShortcut.Modifiers.C trlOrMeta; |
665 | 665 |
666 // Run snippet. | 666 // Run snippet. |
667 title = WebInspector.UIString("Run snippet (%s)."); | 667 title = WebInspector.UIString("Run snippet (%s)."); |
668 handler = this._runSnippet.bind(this); | 668 handler = this._runSnippet.bind(this); |
669 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.ShortcutsScreen.SourcesPanelShortcut s.RunSnippet); | 669 this._runSnippetButton = this._createButtonAndRegisterShortcuts("scripts -run-snippet", title, handler, WebInspector.ShortcutsScreen.SourcesPanelShortcut s.RunSnippet); |
670 debugToolbar.appendChild(this._runSnippetButton.element); | 670 debugToolbar.appendChild(this._runSnippetButton.element); |
671 this._runSnippetButton.element.classList.add("hidden"); | 671 this._runSnippetButton.element.classList.add("hidden"); |
672 | 672 |
673 // Continue. | 673 // Continue. |
674 handler = this.togglePause.bind(this); | 674 handler = function() { return WebInspector.actionRegistry.execute("debug ger.toggle-pause"); }; |
675 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PauseContinu e); | 675 this._pauseButton = this._createButtonAndRegisterShortcuts("scripts-paus e", "", handler, WebInspector.ShortcutsScreen.SourcesPanelShortcuts.PauseContinu e); |
vsevik
2014/06/06 16:41:35
this._pauseButton = this._createButtonAndRegisterS
apavlov
2014/06/09 09:00:01
Done.
| |
676 debugToolbar.appendChild(this._pauseButton.element); | 676 debugToolbar.appendChild(this._pauseButton.element); |
677 | 677 |
678 // Long resume. | 678 // Long resume. |
679 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms "); | 679 title = WebInspector.UIString("Resume with all pauses blocked for 500 ms "); |
680 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume"); | 680 this._longResumeButton = new WebInspector.StatusBarButton(title, "script s-long-resume"); |
681 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this); | 681 this._longResumeButton.addEventListener("click", this._longResume.bind(t his), this); |
682 | 682 |
683 // Step over. | 683 // Step over. |
684 title = WebInspector.UIString("Step over next function call (%s)."); | 684 title = WebInspector.UIString("Step over next function call (%s)."); |
685 handler = this._stepOverClicked.bind(this); | 685 handler = this._stepOverClicked.bind(this); |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1388 var disabled = forbidden || (status === "disabled"); | 1388 var disabled = forbidden || (status === "disabled"); |
1389 | 1389 |
1390 this._disableJSInfo.classList.toggle("hidden", !forbidden); | 1390 this._disableJSInfo.classList.toggle("hidden", !forbidden); |
1391 this._disableJSCheckbox.checked = disabled; | 1391 this._disableJSCheckbox.checked = disabled; |
1392 this._disableJSCheckbox.disabled = forbidden; | 1392 this._disableJSCheckbox.disabled = forbidden; |
1393 } | 1393 } |
1394 }, | 1394 }, |
1395 | 1395 |
1396 __proto__: WebInspector.UISettingDelegate.prototype | 1396 __proto__: WebInspector.UISettingDelegate.prototype |
1397 } | 1397 } |
1398 | |
1399 /** | |
1400 * @constructor | |
1401 * @implements {WebInspector.ActionDelegate} | |
1402 */ | |
1403 WebInspector.SourcesPanel.TogglePauseActionDelegate = function() | |
1404 { | |
1405 } | |
1406 | |
1407 WebInspector.SourcesPanel.TogglePauseActionDelegate.prototype = { | |
1408 /** | |
1409 * @return {boolean} | |
1410 */ | |
1411 handleAction: function() | |
1412 { | |
1413 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorView.sh owPanel("sources")).togglePause(); | |
1414 return true; | |
1415 } | |
1416 } | |
OLD | NEW |