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_PANEL_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void PanelCut() OVERRIDE; | 47 virtual void PanelCut() OVERRIDE; |
48 virtual void PanelCopy() OVERRIDE; | 48 virtual void PanelCopy() OVERRIDE; |
49 virtual void PanelPaste() OVERRIDE; | 49 virtual void PanelPaste() OVERRIDE; |
50 virtual void DrawAttention() OVERRIDE; | 50 virtual void DrawAttention() OVERRIDE; |
51 virtual bool IsDrawingAttention() const OVERRIDE; | 51 virtual bool IsDrawingAttention() const OVERRIDE; |
52 virtual bool PreHandlePanelKeyboardEvent( | 52 virtual bool PreHandlePanelKeyboardEvent( |
53 const NativeWebKeyboardEvent& event, | 53 const NativeWebKeyboardEvent& event, |
54 bool* is_keyboard_shortcut) OVERRIDE; | 54 bool* is_keyboard_shortcut) OVERRIDE; |
55 virtual void HandlePanelKeyboardEvent( | 55 virtual void HandlePanelKeyboardEvent( |
56 const NativeWebKeyboardEvent& event) OVERRIDE; | 56 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 57 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
57 virtual Browser* GetPanelBrowser() const OVERRIDE; | 58 virtual Browser* GetPanelBrowser() const OVERRIDE; |
58 virtual void DestroyPanelBrowser() OVERRIDE; | 59 virtual void DestroyPanelBrowser() OVERRIDE; |
59 virtual gfx::Size IconOnlySize() const OVERRIDE; | 60 virtual gfx::Size IconOnlySize() const OVERRIDE; |
60 virtual void EnsurePanelFullyVisible() OVERRIDE; | 61 virtual void EnsurePanelFullyVisible() OVERRIDE; |
61 | 62 |
62 // These sizes are in screen coordinates. | 63 // These sizes are in screen coordinates. |
63 virtual gfx::Size WindowSizeFromContentSize( | 64 virtual gfx::Size WindowSizeFromContentSize( |
64 const gfx::Size& content_size) const OVERRIDE; | 65 const gfx::Size& content_size) const OVERRIDE; |
65 virtual gfx::Size ContentSizeFromWindowSize( | 66 virtual gfx::Size ContentSizeFromWindowSize( |
66 const gfx::Size& window_size) const OVERRIDE; | 67 const gfx::Size& window_size) const OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 gfx::Rect bounds_; | 108 gfx::Rect bounds_; |
108 | 109 |
109 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 110 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
110 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 111 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
111 bool has_find_bar_; // Find bar should only be created once per panel. | 112 bool has_find_bar_; // Find bar should only be created once per panel. |
112 | 113 |
113 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 114 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
114 }; | 115 }; |
115 | 116 |
116 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 117 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |