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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void ShowTaskManagerForPanel() = 0; | 53 virtual void ShowTaskManagerForPanel() = 0; |
54 virtual FindBar* CreatePanelFindBar() = 0; | 54 virtual FindBar* CreatePanelFindBar() = 0; |
55 virtual void NotifyPanelOnUserChangedTheme() = 0; | 55 virtual void NotifyPanelOnUserChangedTheme() = 0; |
56 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0; | 56 virtual void PanelWebContentsFocused(content::WebContents* contents) = 0; |
57 virtual void PanelCut() = 0; | 57 virtual void PanelCut() = 0; |
58 virtual void PanelCopy() = 0; | 58 virtual void PanelCopy() = 0; |
59 virtual void PanelPaste() = 0; | 59 virtual void PanelPaste() = 0; |
60 virtual void DrawAttention(bool draw_attention) = 0; | 60 virtual void DrawAttention(bool draw_attention) = 0; |
61 virtual bool IsDrawingAttention() const = 0; | 61 virtual bool IsDrawingAttention() const = 0; |
62 virtual bool PreHandlePanelKeyboardEvent( | 62 virtual bool PreHandlePanelKeyboardEvent( |
63 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0; | 63 const content::NativeWebKeyboardEvent& event, |
| 64 bool* is_keyboard_shortcut) = 0; |
64 virtual void HandlePanelKeyboardEvent( | 65 virtual void HandlePanelKeyboardEvent( |
65 const NativeWebKeyboardEvent& event) = 0; | 66 const content::NativeWebKeyboardEvent& event) = 0; |
66 virtual void FullScreenModeChanged(bool is_full_screen) = 0; | 67 virtual void FullScreenModeChanged(bool is_full_screen) = 0; |
67 | 68 |
68 virtual Browser* GetPanelBrowser() const = 0; | 69 virtual Browser* GetPanelBrowser() const = 0; |
69 virtual void DestroyPanelBrowser() = 0; | 70 virtual void DestroyPanelBrowser() = 0; |
70 | 71 |
71 // Returns the exterior size of the panel window given the client content | 72 // Returns the exterior size of the panel window given the client content |
72 // size and vice versa. | 73 // size and vice versa. |
73 virtual gfx::Size WindowSizeFromContentSize( | 74 virtual gfx::Size WindowSizeFromContentSize( |
74 const gfx::Size& content_size) const = 0; | 75 const gfx::Size& content_size) const = 0; |
75 virtual gfx::Size ContentSizeFromWindowSize( | 76 virtual gfx::Size ContentSizeFromWindowSize( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // active, i.e. the titlebar is painted per its active state. | 128 // active, i.e. the titlebar is painted per its active state. |
128 virtual bool VerifyActiveState(bool is_active) = 0; | 129 virtual bool VerifyActiveState(bool is_active) = 0; |
129 virtual void WaitForWindowCreationToComplete() const { } | 130 virtual void WaitForWindowCreationToComplete() const { } |
130 | 131 |
131 virtual bool IsWindowSizeKnown() const = 0; | 132 virtual bool IsWindowSizeKnown() const = 0; |
132 virtual bool IsAnimatingBounds() const = 0; | 133 virtual bool IsAnimatingBounds() const = 0; |
133 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; | 134 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; |
134 }; | 135 }; |
135 | 136 |
136 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 137 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |