| 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 19 matching lines...) Expand all Loading... |
| 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) OVERRIDE; |
| 35 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; | 35 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; |
| 36 virtual void ClosePanel() OVERRIDE; | 36 virtual void ClosePanel() OVERRIDE; |
| 37 virtual void ActivatePanel() OVERRIDE; | 37 virtual void ActivatePanel() OVERRIDE; |
| 38 virtual void DeactivatePanel() OVERRIDE; | 38 virtual void DeactivatePanel() OVERRIDE; |
| 39 virtual bool IsPanelActive() const OVERRIDE; | 39 virtual bool IsPanelActive() const OVERRIDE; |
| 40 virtual void PreventActivationByOS(bool prevent_activation) OVERRIDE; |
| 40 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 41 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
| 41 virtual void UpdatePanelTitleBar() OVERRIDE; | 42 virtual void UpdatePanelTitleBar() OVERRIDE; |
| 42 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; | 43 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; |
| 43 virtual void ShowTaskManagerForPanel() OVERRIDE; | 44 virtual void ShowTaskManagerForPanel() OVERRIDE; |
| 44 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 45 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
| 45 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 46 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
| 46 virtual void PanelWebContentsFocused(content::WebContents* contents) OVERRIDE; | 47 virtual void PanelWebContentsFocused(content::WebContents* contents) OVERRIDE; |
| 47 virtual void PanelCut() OVERRIDE; | 48 virtual void PanelCut() OVERRIDE; |
| 48 virtual void PanelCopy() OVERRIDE; | 49 virtual void PanelCopy() OVERRIDE; |
| 49 virtual void PanelPaste() OVERRIDE; | 50 virtual void PanelPaste() OVERRIDE; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 gfx::Rect bounds_; | 110 gfx::Rect bounds_; |
| 110 | 111 |
| 111 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 112 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
| 112 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 113 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 113 bool has_find_bar_; // Find bar should only be created once per panel. | 114 bool has_find_bar_; // Find bar should only be created once per panel. |
| 114 | 115 |
| 115 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 116 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 119 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |