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_VIEWS_FRAME_BROWSER_FRAME_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/views/frame/native_browser_frame_delegate.h" | 12 #include "chrome/browser/ui/views/frame/native_browser_frame_delegate.h" |
13 #include "views/widget/widget.h" | 13 #include "views/widget/widget.h" |
14 | 14 |
15 class AeroGlassNonClientView; | 15 class AeroGlassNonClientView; |
| 16 class AvatarMenuButton; |
16 class BrowserNonClientFrameView; | 17 class BrowserNonClientFrameView; |
17 class BrowserRootView; | 18 class BrowserRootView; |
18 class BrowserView; | 19 class BrowserView; |
19 class NativeBrowserFrame; | 20 class NativeBrowserFrame; |
20 class NonClientFrameView; | 21 class NonClientFrameView; |
21 class Profile; | 22 class Profile; |
22 | 23 |
23 namespace gfx { | 24 namespace gfx { |
24 class Font; | 25 class Font; |
25 class Rect; | 26 class Rect; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 70 |
70 // Overridden from views::Widget: | 71 // Overridden from views::Widget: |
71 virtual bool IsMaximized() const OVERRIDE; | 72 virtual bool IsMaximized() const OVERRIDE; |
72 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 73 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
73 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 74 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
74 virtual bool GetAccelerator(int command_id, | 75 virtual bool GetAccelerator(int command_id, |
75 ui::Accelerator* accelerator) OVERRIDE; | 76 ui::Accelerator* accelerator) OVERRIDE; |
76 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 77 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
77 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 78 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
78 | 79 |
| 80 AvatarMenuButton* GetAvatarMenuButton(); |
| 81 |
79 private: | 82 private: |
80 NativeBrowserFrame* native_browser_frame_; | 83 NativeBrowserFrame* native_browser_frame_; |
81 | 84 |
82 // A weak reference to the root view associated with the window. We save a | 85 // A weak reference to the root view associated with the window. We save a |
83 // copy as a BrowserRootView to avoid evil casting later, when we need to call | 86 // copy as a BrowserRootView to avoid evil casting later, when we need to call |
84 // functions that only exist on BrowserRootView (versus RootView). | 87 // functions that only exist on BrowserRootView (versus RootView). |
85 BrowserRootView* root_view_; | 88 BrowserRootView* root_view_; |
86 | 89 |
87 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 90 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
88 BrowserNonClientFrameView* browser_frame_view_; | 91 BrowserNonClientFrameView* browser_frame_view_; |
89 | 92 |
90 // The BrowserView is our ClientView. This is a pointer to it. | 93 // The BrowserView is our ClientView. This is a pointer to it. |
91 BrowserView* browser_view_; | 94 BrowserView* browser_view_; |
92 | 95 |
93 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 96 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
94 }; | 97 }; |
95 | 98 |
96 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 99 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |