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_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 bool IsDrawingAttention() const; | 99 bool IsDrawingAttention() const; |
100 | 100 |
101 // This function will only get called by PanelManager when full screen mode | 101 // This function will only get called by PanelManager when full screen mode |
102 // changes i.e it gets called when an app goes into full screen mode or when | 102 // changes i.e it gets called when an app goes into full screen mode or when |
103 // an app exits full screen mode. Panel should respond by making sure | 103 // an app exits full screen mode. Panel should respond by making sure |
104 // a) it does not go on top when some app enters full screen mode. | 104 // a) it does not go on top when some app enters full screen mode. |
105 // b) it remains on top when an app exits full screen mode. | 105 // b) it remains on top when an app exits full screen mode. |
106 void FullScreenModeChanged(bool is_full_screen); | 106 void FullScreenModeChanged(bool is_full_screen); |
107 | 107 |
108 // Ensures that the panel is fully visible, that is, not obscured by other | |
109 // top-most windows. | |
110 void EnsureFullyVisible(); | |
111 | |
112 int TitleOnlyHeight() const; | 108 int TitleOnlyHeight() const; |
113 | 109 |
114 // Returns true if the panel can show minimize or restore button in its | 110 // Returns true if the panel can show minimize or restore button in its |
115 // titlebar, depending on its state. | 111 // titlebar, depending on its state. |
116 bool CanShowMinimizeButton() const; | 112 bool CanShowMinimizeButton() const; |
117 bool CanShowRestoreButton() const; | 113 bool CanShowRestoreButton() const; |
118 | 114 |
119 // BaseWindow overrides. | 115 // BaseWindow overrides. |
120 virtual bool IsActive() const OVERRIDE; | 116 virtual bool IsActive() const OVERRIDE; |
121 virtual bool IsMaximized() const OVERRIDE; | 117 virtual bool IsMaximized() const OVERRIDE; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 391 |
396 // Icon showed in the task bar. | 392 // Icon showed in the task bar. |
397 gfx::Image app_icon_; | 393 gfx::Image app_icon_; |
398 | 394 |
399 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; | 395 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; |
400 | 396 |
401 DISALLOW_COPY_AND_ASSIGN(Panel); | 397 DISALLOW_COPY_AND_ASSIGN(Panel); |
402 }; | 398 }; |
403 | 399 |
404 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 400 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |