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 22 matching lines...) Expand all Loading... | |
33 * @extends {WebInspector.Object} | 33 * @extends {WebInspector.Object} |
34 */ | 34 */ |
35 WebInspector.DockController = function() | 35 WebInspector.DockController = function() |
36 { | 36 { |
37 this._dockToggleButton = new WebInspector.StatusBarButton("", "dock-status-b ar-item", 3); | 37 this._dockToggleButton = new WebInspector.StatusBarButton("", "dock-status-b ar-item", 3); |
38 this._dockToggleButtonOption = new WebInspector.StatusBarButton("", "dock-st atus-bar-item", 3); | 38 this._dockToggleButtonOption = new WebInspector.StatusBarButton("", "dock-st atus-bar-item", 3); |
39 this._dockToggleButton.addEventListener("click", this._toggleDockState, this ); | 39 this._dockToggleButton.addEventListener("click", this._toggleDockState, this ); |
40 this._dockToggleButtonOption.addEventListener("click", this._toggleDockState , this); | 40 this._dockToggleButtonOption.addEventListener("click", this._toggleDockState , this); |
41 this._dockToggleButton.setLongClickOptionsEnabled(this._createDockOptions.bi nd(this)); | 41 this._dockToggleButton.setLongClickOptionsEnabled(this._createDockOptions.bi nd(this)); |
42 | 42 |
43 this.setDockSide(WebInspector.queryParamsObject["dockSide"] || "bottom"); | 43 this.setDockSide(WebInspector.WorkerManager.isWorkerFrontend() ? "undocked" : (WebInspector.queryParamsObject["dockSide"] || "bottom")); |
pfeldman
2013/12/05 15:44:06
There is a number of cases where dock size is not
dgozman
2013/12/06 16:17:13
Solved separately.
| |
44 } | 44 } |
45 | 45 |
46 WebInspector.DockController.State = { | 46 WebInspector.DockController.State = { |
47 DockedToBottom: "bottom", | 47 DockedToBottom: "bottom", |
48 DockedToRight: "right", | 48 DockedToRight: "right", |
49 Undocked: "undocked" | 49 Undocked: "undocked" |
50 } | 50 } |
51 | 51 |
52 WebInspector.DockController.Events = { | 52 WebInspector.DockController.Events = { |
53 DockSideChanged: "DockSideChanged" | 53 DockSideChanged: "DockSideChanged" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
168 InspectorFrontendHost.requestSetDockSide(action); | 168 InspectorFrontendHost.requestSetDockSide(action); |
169 }, | 169 }, |
170 | 170 |
171 __proto__: WebInspector.Object.prototype | 171 __proto__: WebInspector.Object.prototype |
172 } | 172 } |
173 | 173 |
174 /** | 174 /** |
175 * @type {?WebInspector.DockController} | 175 * @type {?WebInspector.DockController} |
176 */ | 176 */ |
177 WebInspector.dockController = null; | 177 WebInspector.dockController = null; |
OLD | NEW |