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 30 matching lines...) Expand all Loading... |
41 virtual bool IsPanelActive() const OVERRIDE; | 41 virtual bool IsPanelActive() const OVERRIDE; |
42 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 42 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
43 virtual void UpdatePanelTitleBar() OVERRIDE; | 43 virtual void UpdatePanelTitleBar() OVERRIDE; |
44 virtual void ShowTaskManagerForPanel() OVERRIDE; | 44 virtual void ShowTaskManagerForPanel() OVERRIDE; |
45 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 45 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
46 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 46 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
47 virtual void DrawAttention() OVERRIDE; | 47 virtual void DrawAttention() OVERRIDE; |
48 virtual bool IsDrawingAttention() const OVERRIDE; | 48 virtual bool IsDrawingAttention() const OVERRIDE; |
49 virtual Browser* GetPanelBrowser() const OVERRIDE; | 49 virtual Browser* GetPanelBrowser() const OVERRIDE; |
50 virtual void DestroyPanelBrowser() OVERRIDE; | 50 virtual void DestroyPanelBrowser() OVERRIDE; |
| 51 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE; |
| 52 virtual int GetRestoredHeight() const OVERRIDE; |
| 53 virtual void SetRestoredHeight(int height) OVERRIDE; |
51 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; | 54 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; |
52 | 55 |
53 Panel* panel() { return panel_.get(); } | 56 Panel* panel() { return panel_.get(); } |
54 Browser* browser() const { return browser_.get(); } | 57 Browser* browser() const { return browser_.get(); } |
55 | 58 |
56 private: | 59 private: |
57 friend class PanelBrowserWindowCocoaTest; | 60 friend class PanelBrowserWindowCocoaTest; |
58 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, CreateClose); | 61 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, CreateClose); |
59 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, NativeBounds); | 62 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, NativeBounds); |
60 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewCreate); | 63 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewCreate); |
61 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewSizing); | 64 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewSizing); |
62 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewClose); | 65 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, TitlebarViewClose); |
63 | 66 |
64 bool isClosed(); | 67 bool isClosed(); |
65 | 68 |
66 scoped_ptr<Browser> browser_; | 69 scoped_ptr<Browser> browser_; |
67 scoped_ptr<Panel> panel_; | 70 scoped_ptr<Panel> panel_; |
68 gfx::Rect bounds_; | 71 gfx::Rect bounds_; |
69 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 72 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
70 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 73 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
71 bool has_find_bar_; // Find bar should only be created once per panel. | 74 bool has_find_bar_; // Find bar should only be created once per panel. |
72 | 75 |
73 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 76 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
74 }; | 77 }; |
75 | 78 |
76 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 79 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |