| OLD | NEW |
| 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 Loading... |
| 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; |
| OLD | NEW |