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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js

Issue 2922183002: DevTools: the sources debug toolbar buttons should not be drag targets (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 /** 186 /**
187 * @param {string} actionId 187 * @param {string} actionId
188 * @return {!UI.ToolbarToggle} 188 * @return {!UI.ToolbarToggle}
189 */ 189 */
190 static createActionButtonForId(actionId) { 190 static createActionButtonForId(actionId) {
191 const action = UI.actionRegistry.action(actionId); 191 const action = UI.actionRegistry.action(actionId);
192 return UI.Toolbar.createActionButton(/** @type {!UI.Action} */ (action)); 192 return UI.Toolbar.createActionButton(/** @type {!UI.Action} */ (action));
193 } 193 }
194 194
195 /** 195 /**
196 * @return {!Element}
197 */
198 gripElementForResize() {
199 return this._contentElement;
200 }
201
202 /**
196 * @param {boolean=} reverse 203 * @param {boolean=} reverse
197 * @param {boolean=} growVertically 204 * @param {boolean=} growVertically
198 */ 205 */
199 makeWrappable(reverse, growVertically) { 206 makeWrappable(reverse, growVertically) {
200 this._contentElement.classList.add('wrappable'); 207 this._contentElement.classList.add('wrappable');
201 this._reverse = !!reverse; 208 this._reverse = !!reverse;
202 if (reverse) 209 if (reverse)
203 this._contentElement.classList.add('wrappable-reverse'); 210 this._contentElement.classList.add('wrappable-reverse');
204 if (growVertically) 211 if (growVertically)
205 this._contentElement.classList.add('toolbar-grow-vertical'); 212 this._contentElement.classList.add('toolbar-grow-vertical');
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 /** 1068 /**
1062 * @param {!Common.Setting} setting 1069 * @param {!Common.Setting} setting
1063 * @param {string=} tooltip 1070 * @param {string=} tooltip
1064 * @param {string=} alternateTitle 1071 * @param {string=} alternateTitle
1065 */ 1072 */
1066 constructor(setting, tooltip, alternateTitle) { 1073 constructor(setting, tooltip, alternateTitle) {
1067 super(alternateTitle || setting.title() || '', tooltip); 1074 super(alternateTitle || setting.title() || '', tooltip);
1068 UI.SettingsUI.bindCheckbox(this.inputElement, setting); 1075 UI.SettingsUI.bindCheckbox(this.inputElement, setting);
1069 } 1076 }
1070 }; 1077 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698