| 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 13 matching lines...) Expand all Loading... |
| 24 public TabStripModelObserver { | 24 public TabStripModelObserver { |
| 25 public: | 25 public: |
| 26 PanelBrowserWindowCocoa(Browser* browser, Panel* panel, | 26 PanelBrowserWindowCocoa(Browser* browser, Panel* panel, |
| 27 const gfx::Rect& bounds); | 27 const gfx::Rect& bounds); |
| 28 virtual ~PanelBrowserWindowCocoa(); | 28 virtual ~PanelBrowserWindowCocoa(); |
| 29 | 29 |
| 30 // Overridden from NativePanel | 30 // Overridden from NativePanel |
| 31 virtual void ShowPanel() OVERRIDE; | 31 virtual void ShowPanel() OVERRIDE; |
| 32 virtual void ShowPanelInactive() OVERRIDE; | 32 virtual void ShowPanelInactive() OVERRIDE; |
| 33 virtual gfx::Rect GetPanelBounds() const OVERRIDE; | 33 virtual gfx::Rect GetPanelBounds() const OVERRIDE; |
| 34 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 34 virtual void SetPanelBounds(const gfx::Rect& bounds, bool animate) OVERRIDE; |
| 35 virtual void ClosePanel() OVERRIDE; | 35 virtual void ClosePanel() OVERRIDE; |
| 36 virtual void ActivatePanel() OVERRIDE; | 36 virtual void ActivatePanel() OVERRIDE; |
| 37 virtual void DeactivatePanel() OVERRIDE; | 37 virtual void DeactivatePanel() OVERRIDE; |
| 38 virtual bool IsPanelActive() const OVERRIDE; | 38 virtual bool IsPanelActive() const OVERRIDE; |
| 39 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 39 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
| 40 virtual void UpdatePanelTitleBar() OVERRIDE; | 40 virtual void UpdatePanelTitleBar() OVERRIDE; |
| 41 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; | 41 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; |
| 42 virtual void ShowTaskManagerForPanel() OVERRIDE; | 42 virtual void ShowTaskManagerForPanel() OVERRIDE; |
| 43 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 43 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
| 44 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 44 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 gfx::Rect bounds_; | 102 gfx::Rect bounds_; |
| 103 | 103 |
| 104 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 104 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
| 105 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 105 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. | 106 bool has_find_bar_; // Find bar should only be created once per panel. |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 108 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |