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_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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
13 #include "ui/views/context_menu_controller.h" | 13 #include "ui/views/context_menu_controller.h" |
14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
15 | 15 |
16 class AvatarMenuButton; | 16 class AvatarMenuButton; |
17 class BrowserRootView; | 17 class BrowserRootView; |
18 class BrowserView; | 18 class BrowserView; |
19 class NativeBrowserFrame; | 19 class NativeBrowserFrame; |
20 class NewAvatarButton; | |
21 class NonClientFrameView; | 20 class NonClientFrameView; |
22 class SystemMenuModelBuilder; | 21 class SystemMenuModelBuilder; |
23 | 22 |
24 namespace gfx { | 23 namespace gfx { |
25 class FontList; | 24 class FontList; |
26 class Rect; | 25 class Rect; |
27 } | 26 } |
28 | 27 |
29 namespace ui { | 28 namespace ui { |
30 class EventHandler; | 29 class EventHandler; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void OnNativeWidgetActivationChanged(bool active) override; | 109 void OnNativeWidgetActivationChanged(bool active) override; |
111 | 110 |
112 // Overridden from views::ContextMenuController: | 111 // Overridden from views::ContextMenuController: |
113 void ShowContextMenuForView(views::View* source, | 112 void ShowContextMenuForView(views::View* source, |
114 const gfx::Point& p, | 113 const gfx::Point& p, |
115 ui::MenuSourceType source_type) override; | 114 ui::MenuSourceType source_type) override; |
116 | 115 |
117 AvatarMenuButton* GetAvatarMenuButton(); | 116 AvatarMenuButton* GetAvatarMenuButton(); |
118 | 117 |
119 #if defined(FRAME_AVATAR_BUTTON) | 118 #if defined(FRAME_AVATAR_BUTTON) |
120 NewAvatarButton* GetNewAvatarMenuButton(); | 119 views::View* GetNewAvatarMenuButton(); |
121 #endif | 120 #endif |
122 | 121 |
123 // Returns the menu model. BrowserFrame owns the returned model. | 122 // Returns the menu model. BrowserFrame owns the returned model. |
124 // Note that in multi user mode this will upon each call create a new model. | 123 // Note that in multi user mode this will upon each call create a new model. |
125 ui::MenuModel* GetSystemMenuModel(); | 124 ui::MenuModel* GetSystemMenuModel(); |
126 | 125 |
127 private: | 126 private: |
128 NativeBrowserFrame* native_browser_frame_; | 127 NativeBrowserFrame* native_browser_frame_; |
129 | 128 |
130 // A weak reference to the root view associated with the window. We save a | 129 // A weak reference to the root view associated with the window. We save a |
(...skipping 19 matching lines...) Expand all Loading... |
150 // externally). | 149 // externally). |
151 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; | 150 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; |
152 const ui::ThemeProvider* theme_provider_; | 151 const ui::ThemeProvider* theme_provider_; |
153 | 152 |
154 scoped_ptr<ui::EventHandler> browser_command_handler_; | 153 scoped_ptr<ui::EventHandler> browser_command_handler_; |
155 | 154 |
156 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 155 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
157 }; | 156 }; |
158 | 157 |
159 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 158 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |