Chromium Code Reviews| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 virtual void PanelTabContentsFocused(TabContents* tab_contents) = 0; | 51 virtual void PanelTabContentsFocused(TabContents* tab_contents) = 0; |
| 52 virtual void PanelCut() = 0; | 52 virtual void PanelCut() = 0; |
| 53 virtual void PanelCopy() = 0; | 53 virtual void PanelCopy() = 0; |
| 54 virtual void PanelPaste() = 0; | 54 virtual void PanelPaste() = 0; |
| 55 virtual void DrawAttention() = 0; | 55 virtual void DrawAttention() = 0; |
| 56 virtual bool IsDrawingAttention() const = 0; | 56 virtual bool IsDrawingAttention() const = 0; |
| 57 virtual bool PreHandlePanelKeyboardEvent( | 57 virtual bool PreHandlePanelKeyboardEvent( |
| 58 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0; | 58 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0; |
| 59 virtual void HandlePanelKeyboardEvent( | 59 virtual void HandlePanelKeyboardEvent( |
| 60 const NativeWebKeyboardEvent& event) = 0; | 60 const NativeWebKeyboardEvent& event) = 0; |
| 61 virtual void FullScreenModeChanged(bool is_full_screen_mode_on) = 0; | |
|
jianli
2011/12/02 00:04:45
nit: is_full_screen_mode_on seems to be long. Can
prasadt
2011/12/02 00:29:39
Done.
| |
| 61 | 62 |
| 62 virtual Browser* GetPanelBrowser() const = 0; | 63 virtual Browser* GetPanelBrowser() const = 0; |
| 63 virtual void DestroyPanelBrowser() = 0; | 64 virtual void DestroyPanelBrowser() = 0; |
| 64 | 65 |
| 65 // Returns the exterior size of the panel window given the client content | 66 // Returns the exterior size of the panel window given the client content |
| 66 // size and vice versa. | 67 // size and vice versa. |
| 67 virtual gfx::Size WindowSizeFromContentSize( | 68 virtual gfx::Size WindowSizeFromContentSize( |
| 68 const gfx::Size& content_size) const = 0; | 69 const gfx::Size& content_size) const = 0; |
| 69 virtual gfx::Size ContentSizeFromWindowSize( | 70 virtual gfx::Size ContentSizeFromWindowSize( |
| 70 const gfx::Size& window_size) const = 0; | 71 const gfx::Size& window_size) const = 0; |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 91 // Verifies, on a deepest possible level, if the native panel is really | 92 // Verifies, on a deepest possible level, if the native panel is really |
| 92 // active, i.e. the titlebar is painted per its active state. | 93 // active, i.e. the titlebar is painted per its active state. |
| 93 virtual bool VerifyActiveState(bool is_active) = 0; | 94 virtual bool VerifyActiveState(bool is_active) = 0; |
| 94 virtual void WaitForWindowCreationToComplete() const { } | 95 virtual void WaitForWindowCreationToComplete() const { } |
| 95 | 96 |
| 96 virtual bool IsWindowSizeKnown() const = 0; | 97 virtual bool IsWindowSizeKnown() const = 0; |
| 97 virtual bool IsAnimatingBounds() const = 0; | 98 virtual bool IsAnimatingBounds() const = 0; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 101 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
| OLD | NEW |