OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 virtual void ShowPanel() = 0; | 40 virtual void ShowPanel() = 0; |
41 virtual void ShowPanelInactive() = 0; | 41 virtual void ShowPanelInactive() = 0; |
42 virtual gfx::Rect GetPanelBounds() const = 0; | 42 virtual gfx::Rect GetPanelBounds() const = 0; |
43 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; | 43 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; |
44 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0; | 44 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0; |
45 virtual void ClosePanel() = 0; | 45 virtual void ClosePanel() = 0; |
46 virtual void ActivatePanel() = 0; | 46 virtual void ActivatePanel() = 0; |
47 virtual void DeactivatePanel() = 0; | 47 virtual void DeactivatePanel() = 0; |
48 virtual bool IsPanelActive() const = 0; | 48 virtual bool IsPanelActive() const = 0; |
49 virtual void PreventActivationByOS(bool prevent_activation) = 0; | |
50 virtual gfx::NativeWindow GetNativePanelHandle() = 0; | 49 virtual gfx::NativeWindow GetNativePanelHandle() = 0; |
51 virtual void UpdatePanelTitleBar() = 0; | 50 virtual void UpdatePanelTitleBar() = 0; |
52 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; | 51 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; |
53 virtual void ShowTaskManagerForPanel() = 0; | 52 virtual void ShowTaskManagerForPanel() = 0; |
54 virtual FindBar* CreatePanelFindBar() = 0; | 53 virtual FindBar* CreatePanelFindBar() = 0; |
55 virtual void NotifyPanelOnUserChangedTheme() = 0; | 54 virtual void NotifyPanelOnUserChangedTheme() = 0; |
56 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0; | 55 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0; |
57 virtual void PanelCut() = 0; | 56 virtual void PanelCut() = 0; |
58 virtual void PanelCopy() = 0; | 57 virtual void PanelCopy() = 0; |
59 virtual void PanelPaste() = 0; | 58 virtual void PanelPaste() = 0; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Verifies, on a deepest possible level, if the native panel is really | 108 // Verifies, on a deepest possible level, if the native panel is really |
110 // active, i.e. the titlebar is painted per its active state. | 109 // active, i.e. the titlebar is painted per its active state. |
111 virtual bool VerifyActiveState(bool is_active) = 0; | 110 virtual bool VerifyActiveState(bool is_active) = 0; |
112 virtual void WaitForWindowCreationToComplete() const { } | 111 virtual void WaitForWindowCreationToComplete() const { } |
113 | 112 |
114 virtual bool IsWindowSizeKnown() const = 0; | 113 virtual bool IsWindowSizeKnown() const = 0; |
115 virtual bool IsAnimatingBounds() const = 0; | 114 virtual bool IsAnimatingBounds() const = 0; |
116 }; | 115 }; |
117 | 116 |
118 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 117 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |