| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 content::NativeWebKeyboardEvent& event, | 63 const content::NativeWebKeyboardEvent& event, |
| 64 bool* is_keyboard_shortcut) = 0; | 64 bool* is_keyboard_shortcut) = 0; |
| 65 virtual void HandlePanelKeyboardEvent( | 65 virtual void HandlePanelKeyboardEvent( |
| 66 const content::NativeWebKeyboardEvent& event) = 0; | 66 const content::NativeWebKeyboardEvent& event) = 0; |
| 67 virtual void FullScreenModeChanged(bool is_full_screen) = 0; | 67 virtual void FullScreenModeChanged(bool is_full_screen) = 0; |
| 68 virtual void PanelExpansionStateChanging(Panel::ExpansionState old_state, |
| 69 Panel::ExpansionState new_state) = 0; |
| 68 | 70 |
| 69 virtual Browser* GetPanelBrowser() const = 0; | 71 virtual Browser* GetPanelBrowser() const = 0; |
| 70 virtual void DestroyPanelBrowser() = 0; | 72 virtual void DestroyPanelBrowser() = 0; |
| 71 | 73 |
| 72 // Returns the exterior size of the panel window given the client content | 74 // Returns the exterior size of the panel window given the client content |
| 73 // size and vice versa. | 75 // size and vice versa. |
| 74 virtual gfx::Size WindowSizeFromContentSize( | 76 virtual gfx::Size WindowSizeFromContentSize( |
| 75 const gfx::Size& content_size) const = 0; | 77 const gfx::Size& content_size) const = 0; |
| 76 virtual gfx::Size ContentSizeFromWindowSize( | 78 virtual gfx::Size ContentSizeFromWindowSize( |
| 77 const gfx::Size& window_size) const = 0; | 79 const gfx::Size& window_size) const = 0; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // active, i.e. the titlebar is painted per its active state. | 130 // active, i.e. the titlebar is painted per its active state. |
| 129 virtual bool VerifyActiveState(bool is_active) = 0; | 131 virtual bool VerifyActiveState(bool is_active) = 0; |
| 130 virtual void WaitForWindowCreationToComplete() const { } | 132 virtual void WaitForWindowCreationToComplete() const { } |
| 131 | 133 |
| 132 virtual bool IsWindowSizeKnown() const = 0; | 134 virtual bool IsWindowSizeKnown() const = 0; |
| 133 virtual bool IsAnimatingBounds() const = 0; | 135 virtual bool IsAnimatingBounds() const = 0; |
| 134 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; | 136 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 139 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
| OLD | NEW |