| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 bool IsDrawingAttention() const; | 63 bool IsDrawingAttention() const; |
| 64 | 64 |
| 65 // This function will only get called by PanelManager when full screen mode | 65 // This function will only get called by PanelManager when full screen mode |
| 66 // changes i.e it gets called when an app goes into full screen mode or when | 66 // changes i.e it gets called when an app goes into full screen mode or when |
| 67 // an app exits full screen mode. Panel should respond by making sure | 67 // an app exits full screen mode. Panel should respond by making sure |
| 68 // a) it does not go on top when some app enters full screen mode. | 68 // a) it does not go on top when some app enters full screen mode. |
| 69 // b) it remains on top when an app exits full screen mode. | 69 // b) it remains on top when an app exits full screen mode. |
| 70 void FullScreenModeChanged(bool is_full_screen); | 70 void FullScreenModeChanged(bool is_full_screen); |
| 71 | 71 |
| 72 void MoveOutOfOverflow(); |
| 73 |
| 74 // Ensures that the panel is fully visible, that is, not obscured by other |
| 75 // top-most windows. |
| 76 void EnsureFullyVisible(); |
| 77 |
| 78 int TitleOnlyHeight() const; |
| 79 |
| 80 // Returns the size of the panel when it is iconified, as shown on the |
| 81 // overflow area. |
| 82 gfx::Size IconOnlySize() const; |
| 83 |
| 72 // BrowserWindow overrides. | 84 // BrowserWindow overrides. |
| 73 virtual void Show() OVERRIDE; | 85 virtual void Show() OVERRIDE; |
| 74 virtual void ShowInactive() OVERRIDE; | 86 virtual void ShowInactive() OVERRIDE; |
| 75 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 87 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 76 virtual void Close() OVERRIDE; | 88 virtual void Close() OVERRIDE; |
| 77 virtual void Activate() OVERRIDE; | 89 virtual void Activate() OVERRIDE; |
| 78 virtual void Deactivate() OVERRIDE; | 90 virtual void Deactivate() OVERRIDE; |
| 79 virtual bool IsActive() const OVERRIDE; | 91 virtual bool IsActive() const OVERRIDE; |
| 80 virtual void FlashFrame() OVERRIDE; | 92 virtual void FlashFrame() OVERRIDE; |
| 81 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; | 93 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 NativePanel* native_panel_; // Weak, owns us. | 291 NativePanel* native_panel_; // Weak, owns us. |
| 280 | 292 |
| 281 ExpansionState expansion_state_; | 293 ExpansionState expansion_state_; |
| 282 | 294 |
| 283 content::NotificationRegistrar registrar_; | 295 content::NotificationRegistrar registrar_; |
| 284 | 296 |
| 285 DISALLOW_COPY_AND_ASSIGN(Panel); | 297 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 286 }; | 298 }; |
| 287 | 299 |
| 288 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 300 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |