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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void PanelCut() OVERRIDE; | 46 virtual void PanelCut() OVERRIDE; |
47 virtual void PanelCopy() OVERRIDE; | 47 virtual void PanelCopy() OVERRIDE; |
48 virtual void PanelPaste() OVERRIDE; | 48 virtual void PanelPaste() OVERRIDE; |
49 virtual void DrawAttention() OVERRIDE; | 49 virtual void DrawAttention() OVERRIDE; |
50 virtual bool IsDrawingAttention() const OVERRIDE; | 50 virtual bool IsDrawingAttention() const OVERRIDE; |
51 virtual bool PreHandlePanelKeyboardEvent( | 51 virtual bool PreHandlePanelKeyboardEvent( |
52 const NativeWebKeyboardEvent& event, | 52 const NativeWebKeyboardEvent& event, |
53 bool* is_keyboard_shortcut) OVERRIDE; | 53 bool* is_keyboard_shortcut) OVERRIDE; |
54 virtual void HandlePanelKeyboardEvent( | 54 virtual void HandlePanelKeyboardEvent( |
55 const NativeWebKeyboardEvent& event) OVERRIDE; | 55 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 56 virtual void FullScreenModeChanged(bool is_full_screen_mode_on) OVERRIDE; |
56 virtual Browser* GetPanelBrowser() const OVERRIDE; | 57 virtual Browser* GetPanelBrowser() const OVERRIDE; |
57 virtual void DestroyPanelBrowser() OVERRIDE; | 58 virtual void DestroyPanelBrowser() OVERRIDE; |
58 | 59 |
59 // These sizes are in screen coordinates. | 60 // These sizes are in screen coordinates. |
60 virtual gfx::Size WindowSizeFromContentSize( | 61 virtual gfx::Size WindowSizeFromContentSize( |
61 const gfx::Size& content_size) const OVERRIDE; | 62 const gfx::Size& content_size) const OVERRIDE; |
62 virtual gfx::Size ContentSizeFromWindowSize( | 63 virtual gfx::Size ContentSizeFromWindowSize( |
63 const gfx::Size& window_size) const OVERRIDE; | 64 const gfx::Size& window_size) const OVERRIDE; |
64 virtual int TitleOnlyHeight() const OVERRIDE; | 65 virtual int TitleOnlyHeight() const OVERRIDE; |
65 | 66 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 gfx::Rect bounds_; | 103 gfx::Rect bounds_; |
103 | 104 |
104 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 105 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
105 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
106 bool has_find_bar_; // Find bar should only be created once per panel. | 107 bool has_find_bar_; // Find bar should only be created once per panel. |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 109 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
109 }; | 110 }; |
110 | 111 |
111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |