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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void PanelTabContentsFocused(TabContents* tab_contents) = 0; | 52 virtual void PanelTabContentsFocused(TabContents* tab_contents) = 0; |
53 virtual void PanelCut() = 0; | 53 virtual void PanelCut() = 0; |
54 virtual void PanelCopy() = 0; | 54 virtual void PanelCopy() = 0; |
55 virtual void PanelPaste() = 0; | 55 virtual void PanelPaste() = 0; |
56 virtual void DrawAttention() = 0; | 56 virtual void DrawAttention() = 0; |
57 virtual bool IsDrawingAttention() const = 0; | 57 virtual bool IsDrawingAttention() const = 0; |
58 virtual bool PreHandlePanelKeyboardEvent( | 58 virtual bool PreHandlePanelKeyboardEvent( |
59 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0; | 59 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0; |
60 virtual void HandlePanelKeyboardEvent( | 60 virtual void HandlePanelKeyboardEvent( |
61 const NativeWebKeyboardEvent& event) = 0; | 61 const NativeWebKeyboardEvent& event) = 0; |
| 62 virtual void FullScreenModeChanged(bool is_full_screen) = 0; |
62 | 63 |
63 virtual Browser* GetPanelBrowser() const = 0; | 64 virtual Browser* GetPanelBrowser() const = 0; |
64 virtual void DestroyPanelBrowser() = 0; | 65 virtual void DestroyPanelBrowser() = 0; |
65 | 66 |
66 // Returns the exterior size of the panel window given the client content | 67 // Returns the exterior size of the panel window given the client content |
67 // size and vice versa. | 68 // size and vice versa. |
68 virtual gfx::Size WindowSizeFromContentSize( | 69 virtual gfx::Size WindowSizeFromContentSize( |
69 const gfx::Size& content_size) const = 0; | 70 const gfx::Size& content_size) const = 0; |
70 virtual gfx::Size ContentSizeFromWindowSize( | 71 virtual gfx::Size ContentSizeFromWindowSize( |
71 const gfx::Size& window_size) const = 0; | 72 const gfx::Size& window_size) const = 0; |
(...skipping 28 matching lines...) Expand all Loading... |
100 // Verifies, on a deepest possible level, if the native panel is really | 101 // Verifies, on a deepest possible level, if the native panel is really |
101 // active, i.e. the titlebar is painted per its active state. | 102 // active, i.e. the titlebar is painted per its active state. |
102 virtual bool VerifyActiveState(bool is_active) = 0; | 103 virtual bool VerifyActiveState(bool is_active) = 0; |
103 virtual void WaitForWindowCreationToComplete() const { } | 104 virtual void WaitForWindowCreationToComplete() const { } |
104 | 105 |
105 virtual bool IsWindowSizeKnown() const = 0; | 106 virtual bool IsWindowSizeKnown() const = 0; |
106 virtual bool IsAnimatingBounds() const = 0; | 107 virtual bool IsAnimatingBounds() const = 0; |
107 }; | 108 }; |
108 | 109 |
109 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 110 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |