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