| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Use BeforeDockSideChanged to do something before all the UI bits are updated, | 69 // Use BeforeDockSideChanged to do something before all the UI bits are updated, |
| 70 // DockSideChanged to update UI, and AfterDockSideChanged to perform actions | 70 // DockSideChanged to update UI, and AfterDockSideChanged to perform actions |
| 71 // after frontend is docked/undocked in the browser. | 71 // after frontend is docked/undocked in the browser. |
| 72 WebInspector.DockController.Events = { | 72 WebInspector.DockController.Events = { |
| 73 BeforeDockSideChanged: "BeforeDockSideChanged", | 73 BeforeDockSideChanged: "BeforeDockSideChanged", |
| 74 DockSideChanged: "DockSideChanged", | 74 DockSideChanged: "DockSideChanged", |
| 75 AfterDockSideChanged: "AfterDockSideChanged" | 75 AfterDockSideChanged: "AfterDockSideChanged" |
| 76 } | 76 } |
| 77 | 77 |
| 78 WebInspector.DockController.prototype = { | 78 WebInspector.DockController.prototype = { |
| 79 initialize: function() |
| 80 { |
| 81 if (this._canDock) |
| 82 this._dockToggleButton.toggleInitialState(); |
| 83 }, |
| 84 |
| 79 /** | 85 /** |
| 80 * @return {?Element} | 86 * @return {?Element} |
| 81 */ | 87 */ |
| 82 get element() | 88 get element() |
| 83 { | 89 { |
| 84 return this._canDock ? this._dockToggleButton.element : null; | 90 return this._canDock ? this._dockToggleButton.element : null; |
| 85 }, | 91 }, |
| 86 | 92 |
| 87 /** | 93 /** |
| 88 * @return {string} | 94 * @return {string} |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 165 } |
| 160 }, | 166 }, |
| 161 | 167 |
| 162 __proto__: WebInspector.Object.prototype | 168 __proto__: WebInspector.Object.prototype |
| 163 } | 169 } |
| 164 | 170 |
| 165 /** | 171 /** |
| 166 * @type {!WebInspector.DockController} | 172 * @type {!WebInspector.DockController} |
| 167 */ | 173 */ |
| 168 WebInspector.dockController; | 174 WebInspector.dockController; |
| OLD | NEW |