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

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

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined 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
« no previous file with comments | « Source/devtools/front_end/SearchableView.js ('k') | Source/devtools/front_end/SplitView.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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 801
802 if (sourceFrame && event.data.focusSource) 802 if (sourceFrame && event.data.focusSource)
803 sourceFrame.focus(); 803 sourceFrame.focus();
804 }, 804 },
805 805
806 _pauseOnExceptionEnabledChanged: function() 806 _pauseOnExceptionEnabledChanged: function()
807 { 807 {
808 var enabled = WebInspector.settings.pauseOnExceptionEnabled.get(); 808 var enabled = WebInspector.settings.pauseOnExceptionEnabled.get();
809 this._pauseOnExceptionButton.toggled = enabled; 809 this._pauseOnExceptionButton.toggled = enabled;
810 this._pauseOnExceptionButton.title = WebInspector.UIString(enabled ? "Do n't pause on exceptions." : "Pause on exceptions."); 810 this._pauseOnExceptionButton.title = WebInspector.UIString(enabled ? "Do n't pause on exceptions." : "Pause on exceptions.");
811 this._debugToolbarDrawer.enableStyleClass("expanded", enabled); 811 this._debugToolbarDrawer.classList.toggle("expanded", enabled);
812 }, 812 },
813 813
814 _updateDebuggerButtons: function() 814 _updateDebuggerButtons: function()
815 { 815 {
816 if (this._paused) { 816 if (this._paused) {
817 this._updateButtonTitle(this._pauseButton, WebInspector.UIString("Re sume script execution (%s).")) 817 this._updateButtonTitle(this._pauseButton, WebInspector.UIString("Re sume script execution (%s)."))
818 this._pauseButton.state = true; 818 this._pauseButton.state = true;
819 this._pauseButton.setLongClickOptionsEnabled((function() { return [ this._longResumeButton ] }).bind(this)); 819 this._pauseButton.setLongClickOptionsEnabled((function() { return [ this._longResumeButton ] }).bind(this));
820 820
821 this._pauseButton.setEnabled(true); 821 this._pauseButton.setEnabled(true);
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 { 1858 {
1859 } 1859 }
1860 1860
1861 WebInspector.SourcesPanel.EditorAction.prototype = { 1861 WebInspector.SourcesPanel.EditorAction.prototype = {
1862 /** 1862 /**
1863 * @param {!WebInspector.SourcesPanel} panel 1863 * @param {!WebInspector.SourcesPanel} panel
1864 * @return {!Element} 1864 * @return {!Element}
1865 */ 1865 */
1866 button: function(panel) { } 1866 button: function(panel) { }
1867 } 1867 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SearchableView.js ('k') | Source/devtools/front_end/SplitView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698