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 29 matching lines...) Expand all Loading... |
40 // Returns the PanelManager associated with this panel. | 40 // Returns the PanelManager associated with this panel. |
41 PanelManager* manager() const; | 41 PanelManager* manager() const; |
42 | 42 |
43 void SetExpansionState(ExpansionState new_expansion_state); | 43 void SetExpansionState(ExpansionState new_expansion_state); |
44 | 44 |
45 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; | 45 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; |
46 | 46 |
47 bool IsDrawingAttention() const; | 47 bool IsDrawingAttention() const; |
48 | 48 |
49 // BrowserWindow overrides. | 49 // BrowserWindow overrides. |
50 virtual void Show() OVERRIDE; | 50 virtual void Show(BrowserWindow::ShowContext show_context) OVERRIDE; |
51 virtual void ShowInactive() OVERRIDE; | 51 virtual void ShowInactive() OVERRIDE; |
52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
53 virtual void Close() OVERRIDE; | 53 virtual void Close() OVERRIDE; |
54 virtual void Activate() OVERRIDE; | 54 virtual void Activate() OVERRIDE; |
55 virtual void Deactivate() OVERRIDE; | 55 virtual void Deactivate() OVERRIDE; |
56 virtual bool IsActive() const OVERRIDE; | 56 virtual bool IsActive() const OVERRIDE; |
57 virtual void FlashFrame() OVERRIDE; | 57 virtual void FlashFrame() OVERRIDE; |
58 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; | 58 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; |
59 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; | 59 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; |
60 virtual StatusBubble* GetStatusBubble() OVERRIDE; | 60 virtual StatusBubble* GetStatusBubble() OVERRIDE; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Platform specifc implementation for panels. It'd be one of | 182 // Platform specifc implementation for panels. It'd be one of |
183 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. | 183 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. |
184 NativePanel* native_panel_; // Weak, owns us. | 184 NativePanel* native_panel_; // Weak, owns us. |
185 | 185 |
186 ExpansionState expansion_state_; | 186 ExpansionState expansion_state_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(Panel); | 188 DISALLOW_COPY_AND_ASSIGN(Panel); |
189 }; | 189 }; |
190 | 190 |
191 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 191 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |