| 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_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const NativeWebKeyboardEvent& event, | 54 const NativeWebKeyboardEvent& event, |
| 55 bool* is_keyboard_shortcut) OVERRIDE; | 55 bool* is_keyboard_shortcut) OVERRIDE; |
| 56 virtual void HandlePanelKeyboardEvent( | 56 virtual void HandlePanelKeyboardEvent( |
| 57 const NativeWebKeyboardEvent& event) OVERRIDE; | 57 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 58 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 58 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
| 59 virtual Browser* GetPanelBrowser() const OVERRIDE; | 59 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 60 virtual void DestroyPanelBrowser() OVERRIDE; | 60 virtual void DestroyPanelBrowser() OVERRIDE; |
| 61 virtual gfx::Size IconOnlySize() const OVERRIDE; | 61 virtual gfx::Size IconOnlySize() const OVERRIDE; |
| 62 virtual void EnsurePanelFullyVisible() OVERRIDE; | 62 virtual void EnsurePanelFullyVisible() OVERRIDE; |
| 63 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; | 63 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |
| 64 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 64 | 65 |
| 65 // These sizes are in screen coordinates. | 66 // These sizes are in screen coordinates. |
| 66 virtual gfx::Size WindowSizeFromContentSize( | 67 virtual gfx::Size WindowSizeFromContentSize( |
| 67 const gfx::Size& content_size) const OVERRIDE; | 68 const gfx::Size& content_size) const OVERRIDE; |
| 68 virtual gfx::Size ContentSizeFromWindowSize( | 69 virtual gfx::Size ContentSizeFromWindowSize( |
| 69 const gfx::Size& window_size) const OVERRIDE; | 70 const gfx::Size& window_size) const OVERRIDE; |
| 70 virtual int TitleOnlyHeight() const OVERRIDE; | 71 virtual int TitleOnlyHeight() const OVERRIDE; |
| 71 | 72 |
| 72 // Overridden from TabStripModelObserver. | 73 // Overridden from TabStripModelObserver. |
| 73 virtual void TabInsertedAt(TabContentsWrapper* contents, | 74 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 gfx::Rect bounds_; | 111 gfx::Rect bounds_; |
| 111 | 112 |
| 112 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 113 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
| 113 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 114 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 114 bool has_find_bar_; // Find bar should only be created once per panel. | 115 bool has_find_bar_; // Find bar should only be created once per panel. |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 117 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 120 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |