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_NATIVE_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/panels/panel.h" | 9 #include "chrome/browser/ui/panels/panel.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 20 matching lines...) Expand all Loading... | |
31 friend class Panel; | 31 friend class Panel; |
32 friend class PanelBrowserTest; | 32 friend class PanelBrowserTest; |
33 | 33 |
34 protected: | 34 protected: |
35 virtual ~NativePanel() {} | 35 virtual ~NativePanel() {} |
36 | 36 |
37 virtual void ShowPanel() = 0; | 37 virtual void ShowPanel() = 0; |
38 virtual void ShowPanelInactive() = 0; | 38 virtual void ShowPanelInactive() = 0; |
39 virtual gfx::Rect GetPanelBounds() const = 0; | 39 virtual gfx::Rect GetPanelBounds() const = 0; |
40 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; | 40 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; |
41 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0; | |
prasadt
2011/12/01 22:21:45
Why a separate method? Why not a single method tha
| |
41 virtual void ClosePanel() = 0; | 42 virtual void ClosePanel() = 0; |
42 virtual void ActivatePanel() = 0; | 43 virtual void ActivatePanel() = 0; |
43 virtual void DeactivatePanel() = 0; | 44 virtual void DeactivatePanel() = 0; |
44 virtual bool IsPanelActive() const = 0; | 45 virtual bool IsPanelActive() const = 0; |
45 virtual gfx::NativeWindow GetNativePanelHandle() = 0; | 46 virtual gfx::NativeWindow GetNativePanelHandle() = 0; |
46 virtual void UpdatePanelTitleBar() = 0; | 47 virtual void UpdatePanelTitleBar() = 0; |
47 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; | 48 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; |
48 virtual void ShowTaskManagerForPanel() = 0; | 49 virtual void ShowTaskManagerForPanel() = 0; |
49 virtual FindBar* CreatePanelFindBar() = 0; | 50 virtual FindBar* CreatePanelFindBar() = 0; |
50 virtual void NotifyPanelOnUserChangedTheme() = 0; | 51 virtual void NotifyPanelOnUserChangedTheme() = 0; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 // Verifies, on a deepest possible level, if the native panel is really | 100 // Verifies, on a deepest possible level, if the native panel is really |
100 // active, i.e. the titlebar is painted per its active state. | 101 // active, i.e. the titlebar is painted per its active state. |
101 virtual bool VerifyActiveState(bool is_active) = 0; | 102 virtual bool VerifyActiveState(bool is_active) = 0; |
102 virtual void WaitForWindowCreationToComplete() const { } | 103 virtual void WaitForWindowCreationToComplete() const { } |
103 | 104 |
104 virtual bool IsWindowSizeKnown() const = 0; | 105 virtual bool IsWindowSizeKnown() const = 0; |
105 virtual bool IsAnimatingBounds() const = 0; | 106 virtual bool IsAnimatingBounds() const = 0; |
106 }; | 107 }; |
107 | 108 |
108 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 109 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |