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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Gets the extension that a panel is created from. | 56 // Gets the extension that a panel is created from. |
57 // Returns NULL if it cannot be found. | 57 // Returns NULL if it cannot be found. |
58 const Extension* GetExtension() const; | 58 const Extension* GetExtension() const; |
59 | 59 |
60 void SetExpansionState(ExpansionState new_expansion_state); | 60 void SetExpansionState(ExpansionState new_expansion_state); |
61 | 61 |
62 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; | 62 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; |
63 | 63 |
64 bool IsDrawingAttention() const; | 64 bool IsDrawingAttention() const; |
65 | 65 |
| 66 // This function will only get called by PanelManager when full screen mode |
| 67 // changes i.e it gets called when an app goes into full screen mode or when |
| 68 // an app exits full screen mode. Panel should respond by making sure |
| 69 // a) it does not go on top when some app enters full screen mode. |
| 70 // b) it remains on top when an app exits full screen mode. |
| 71 void FullScreenModeChanged(bool is_full_screen); |
| 72 |
66 // BrowserWindow overrides. | 73 // BrowserWindow overrides. |
67 virtual void Show() OVERRIDE; | 74 virtual void Show() OVERRIDE; |
68 virtual void ShowInactive() OVERRIDE; | 75 virtual void ShowInactive() OVERRIDE; |
69 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 76 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
70 virtual void Close() OVERRIDE; | 77 virtual void Close() OVERRIDE; |
71 virtual void Activate() OVERRIDE; | 78 virtual void Activate() OVERRIDE; |
72 virtual void Deactivate() OVERRIDE; | 79 virtual void Deactivate() OVERRIDE; |
73 virtual bool IsActive() const OVERRIDE; | 80 virtual bool IsActive() const OVERRIDE; |
74 virtual void FlashFrame() OVERRIDE; | 81 virtual void FlashFrame() OVERRIDE; |
75 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; | 82 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 NativePanel* native_panel_; // Weak, owns us. | 288 NativePanel* native_panel_; // Weak, owns us. |
282 | 289 |
283 ExpansionState expansion_state_; | 290 ExpansionState expansion_state_; |
284 | 291 |
285 content::NotificationRegistrar registrar_; | 292 content::NotificationRegistrar registrar_; |
286 | 293 |
287 DISALLOW_COPY_AND_ASSIGN(Panel); | 294 DISALLOW_COPY_AND_ASSIGN(Panel); |
288 }; | 295 }; |
289 | 296 |
290 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 297 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |