| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool* is_keyboard_shortcut) OVERRIDE; | 58 bool* is_keyboard_shortcut) OVERRIDE; |
| 59 virtual void HandlePanelKeyboardEvent( | 59 virtual void HandlePanelKeyboardEvent( |
| 60 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 60 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 61 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 61 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
| 62 virtual Browser* GetPanelBrowser() const OVERRIDE; | 62 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 63 virtual void DestroyPanelBrowser() OVERRIDE; | 63 virtual void DestroyPanelBrowser() OVERRIDE; |
| 64 virtual void EnsurePanelFullyVisible() OVERRIDE; | 64 virtual void EnsurePanelFullyVisible() OVERRIDE; |
| 65 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 65 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 66 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 66 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
| 67 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 67 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
| 68 virtual void PanelExpansionStateChanging( |
| 69 Panel::ExpansionState old_state, |
| 70 Panel::ExpansionState new_state) OVERRIDE; |
| 68 | 71 |
| 69 // These sizes are in screen coordinates. | 72 // These sizes are in screen coordinates. |
| 70 virtual gfx::Size WindowSizeFromContentSize( | 73 virtual gfx::Size WindowSizeFromContentSize( |
| 71 const gfx::Size& content_size) const OVERRIDE; | 74 const gfx::Size& content_size) const OVERRIDE; |
| 72 virtual gfx::Size ContentSizeFromWindowSize( | 75 virtual gfx::Size ContentSizeFromWindowSize( |
| 73 const gfx::Size& window_size) const OVERRIDE; | 76 const gfx::Size& window_size) const OVERRIDE; |
| 74 virtual int TitleOnlyHeight() const OVERRIDE; | 77 virtual int TitleOnlyHeight() const OVERRIDE; |
| 75 | 78 |
| 76 // Overridden from TabStripModelObserver. | 79 // Overridden from TabStripModelObserver. |
| 77 virtual void TabInsertedAt(TabContentsWrapper* contents, | 80 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // window over other application windows due to panels having a higher | 137 // window over other application windows due to panels having a higher |
| 135 // priority NSWindowLevel, so we distinguish between the two scenarios. | 138 // priority NSWindowLevel, so we distinguish between the two scenarios. |
| 136 bool activation_requested_by_browser_; | 139 bool activation_requested_by_browser_; |
| 137 | 140 |
| 138 content::NotificationRegistrar registrar_; | 141 content::NotificationRegistrar registrar_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |