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 "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... | |
27 class NativePanel { | 27 class NativePanel { |
28 friend class Panel; | 28 friend class Panel; |
29 | 29 |
30 protected: | 30 protected: |
31 virtual ~NativePanel() {} | 31 virtual ~NativePanel() {} |
32 | 32 |
33 virtual void ShowPanel() = 0; | 33 virtual void ShowPanel() = 0; |
34 virtual gfx::Rect GetPanelBounds() const = 0; | 34 virtual gfx::Rect GetPanelBounds() const = 0; |
35 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; | 35 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; |
36 virtual void MinimizePanel() = 0; | 36 virtual void MinimizePanel() = 0; |
37 virtual void RestorePanel() = 0; | 37 virtual void RestorePanel(bool titlebar_only) = 0; |
Dmitry Titov
2011/06/24 02:05:45
Hmm.
So we had 2 states (minimized and restored)
jianli
2011/06/29 01:28:12
As discussed, I changed to using one method SetPan
| |
38 virtual void ClosePanel() = 0; | 38 virtual void ClosePanel() = 0; |
39 virtual void ActivatePanel() = 0; | 39 virtual void ActivatePanel() = 0; |
40 virtual void DeactivatePanel() = 0; | 40 virtual void DeactivatePanel() = 0; |
41 virtual bool IsPanelActive() const = 0; | 41 virtual bool IsPanelActive() const = 0; |
42 virtual gfx::NativeWindow GetNativePanelHandle() = 0; | 42 virtual gfx::NativeWindow GetNativePanelHandle() = 0; |
43 virtual void UpdatePanelTitleBar() = 0; | 43 virtual void UpdatePanelTitleBar() = 0; |
44 virtual void ShowTaskManagerForPanel() = 0; | 44 virtual void ShowTaskManagerForPanel() = 0; |
45 virtual void NotifyPanelOnUserChangedTheme() = 0; | 45 virtual void NotifyPanelOnUserChangedTheme() = 0; |
46 virtual void FlashPanelFrame() = 0; | 46 virtual void FlashPanelFrame() = 0; |
47 virtual void DestroyPanelBrowser() = 0; | 47 virtual void DestroyPanelBrowser() = 0; |
48 }; | 48 }; |
49 | 49 |
50 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 50 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |