| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PANEL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // Drags the given panel. | 45 // Drags the given panel. |
| 46 void StartDragging(Panel* panel); | 46 void StartDragging(Panel* panel); |
| 47 void Drag(int delta_x); | 47 void Drag(int delta_x); |
| 48 void EndDragging(bool cancelled); | 48 void EndDragging(bool cancelled); |
| 49 | 49 |
| 50 // Invoked when a panel's expansion state changes. | 50 // Invoked when a panel's expansion state changes. |
| 51 void OnPanelExpansionStateChanged(Panel* panel, | 51 void OnPanelExpansionStateChanged(Panel* panel, |
| 52 Panel::ExpansionState old_state); | 52 Panel::ExpansionState old_state); |
| 53 | 53 |
| 54 // Invoked when a panel is starting/stopping drawing an attention. | |
| 55 void OnPanelAttentionStateChanged(Panel* panel); | |
| 56 | |
| 57 // Invoked when the preferred window size of the given panel might need to | 54 // Invoked when the preferred window size of the given panel might need to |
| 58 // get changed. | 55 // get changed. |
| 59 void OnPreferredWindowSizeChanged( | 56 void OnPreferredWindowSizeChanged( |
| 60 Panel* panel, const gfx::Size& preferred_window_size); | 57 Panel* panel, const gfx::Size& preferred_window_size); |
| 61 | 58 |
| 62 // Returns true if we should bring up the titlebars, given the current mouse | 59 // Returns true if we should bring up the titlebars, given the current mouse |
| 63 // point. | 60 // point. |
| 64 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; | 61 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; |
| 65 | 62 |
| 66 // Brings up or down the titlebars for all minimized panels. | 63 // Brings up or down the titlebars for all minimized panels. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Timer used to track if the current active app is in full screen mode. | 184 // Timer used to track if the current active app is in full screen mode. |
| 188 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; | 185 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; |
| 189 | 186 |
| 190 // True if current active app is in full screen mode. | 187 // True if current active app is in full screen mode. |
| 191 bool is_full_screen_; | 188 bool is_full_screen_; |
| 192 | 189 |
| 193 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 190 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
| 194 }; | 191 }; |
| 195 | 192 |
| 196 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 193 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| OLD | NEW |