| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // Makes sure the panel's bounds reflect its expansion state and the | 157 // Makes sure the panel's bounds reflect its expansion state and the |
| 158 // panel is aligned at the bottom of the strip. Does not touch the x | 158 // panel is aligned at the bottom of the strip. Does not touch the x |
| 159 // coordinate. | 159 // coordinate. |
| 160 void AdjustPanelBoundsPerExpansionState(Panel* panel, | 160 void AdjustPanelBoundsPerExpansionState(Panel* panel, |
| 161 gfx::Rect* panel_bounds); | 161 gfx::Rect* panel_bounds); |
| 162 | 162 |
| 163 // Help functions to drag the given panel. | 163 // Help functions to drag the given panel. |
| 164 void DragLeft(Panel* dragging_panel); | 164 void DragLeft(Panel* dragging_panel); |
| 165 void DragRight(Panel* dragging_panel); | 165 void DragRight(Panel* dragging_panel); |
| 166 | 166 |
| 167 // Returns true if the mouse is currently in the |panel|. |
| 168 bool IsMouseInPanel(const Panel* panel) const; |
| 169 |
| 167 // Does the real job of bringing up or down the titlebars. | 170 // Does the real job of bringing up or down the titlebars. |
| 168 void DoBringUpOrDownTitlebars(bool bring_up); | 171 void DoBringUpOrDownTitlebars(bool bring_up); |
| 169 // The callback for a delyed task, checks if it still need to perform | 172 // The callback for a delyed task, checks if it still need to perform |
| 170 // the delayed action. | 173 // the delayed action. |
| 171 void DelayedBringUpOrDownTitlebarsCheck(); | 174 void DelayedBringUpOrDownTitlebarsCheck(); |
| 172 | 175 |
| 173 int GetRightMostAvailablePosition() const; | 176 int GetRightMostAvailablePosition() const; |
| 174 | 177 |
| 175 PanelManager* panel_manager_; // Weak, owns us. | 178 PanelManager* panel_manager_; // Weak, owns us. |
| 176 | 179 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 206 // Absolute minimum width and height for panels, including non-client area. | 209 // Absolute minimum width and height for panels, including non-client area. |
| 207 // Should only be big enough to accomodate a close button on the reasonably | 210 // Should only be big enough to accomodate a close button on the reasonably |
| 208 // recognisable titlebar. | 211 // recognisable titlebar. |
| 209 static const int kPanelMinWidth; | 212 static const int kPanelMinWidth; |
| 210 static const int kPanelMinHeight; | 213 static const int kPanelMinHeight; |
| 211 | 214 |
| 212 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 215 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
| 213 }; | 216 }; |
| 214 | 217 |
| 215 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 218 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| OLD | NEW |