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

Side by Side Diff: Source/devtools/front_end/components/DockController.js

Issue 408853002: [DevTools] Make toolbar counters declarative. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed comment Created 6 years, 5 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 | « no previous file | Source/devtools/front_end/components/InspectElementModeController.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 body.classList.remove("dock-to-bottom"); 157 body.classList.remove("dock-to-bottom");
158 break; 158 break;
159 } 159 }
160 }, 160 },
161 161
162 __proto__: WebInspector.Object.prototype 162 __proto__: WebInspector.Object.prototype
163 } 163 }
164 164
165 /** 165 /**
166 * @constructor 166 * @constructor
167 * @implements {WebInspector.StatusBarButton.Provider} 167 * @implements {WebInspector.StatusBarItem.Provider}
168 */ 168 */
169 WebInspector.DockController.ButtonProvider = function() 169 WebInspector.DockController.ButtonProvider = function()
170 { 170 {
171 } 171 }
172 172
173 WebInspector.DockController.ButtonProvider.prototype = { 173 WebInspector.DockController.ButtonProvider.prototype = {
174 /** 174 /**
175 * @return {?WebInspector.StatusBarButton} 175 * @return {?WebInspector.StatusBarItem}
176 */ 176 */
177 button: function() 177 item: function()
178 { 178 {
179 if (!WebInspector.dockController.canDock()) 179 if (!WebInspector.dockController.canDock())
180 return null; 180 return null;
181 181
182 if (!this._dockToggleButton) { 182 if (!this._dockToggleButton) {
183 this._dockToggleButton = new WebInspector.StatusBarStatesSettingButt on( 183 this._dockToggleButton = new WebInspector.StatusBarStatesSettingButt on(
184 "dock-status-bar-item", 184 "dock-status-bar-item",
185 WebInspector.dockController._states, 185 WebInspector.dockController._states,
186 WebInspector.dockController._titles, 186 WebInspector.dockController._titles,
187 WebInspector.dockController.dockSide(), 187 WebInspector.dockController.dockSide(),
188 WebInspector.settings.currentDockState, 188 WebInspector.settings.currentDockState,
189 WebInspector.settings.lastDockState, 189 WebInspector.settings.lastDockState,
190 WebInspector.dockController._dockSideChanged.bind(WebInspect or.dockController)); 190 WebInspector.dockController._dockSideChanged.bind(WebInspect or.dockController));
191 } 191 }
192 return this._dockToggleButton; 192 return this._dockToggleButton;
193 } 193 }
194 } 194 }
195 195
196 /** 196 /**
197 * @type {!WebInspector.DockController} 197 * @type {!WebInspector.DockController}
198 */ 198 */
199 WebInspector.dockController; 199 WebInspector.dockController;
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/components/InspectElementModeController.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698