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_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/new_avatar_button.h" | 8 #include "chrome/browser/ui/views/new_avatar_button.h" |
9 #include "ui/views/window/non_client_view.h" | 9 #include "ui/views/window/non_client_view.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // Updates the title and icon of the avatar button. | 66 // Updates the title and icon of the avatar button. |
67 void UpdateAvatarInfo(); | 67 void UpdateAvatarInfo(); |
68 | 68 |
69 // Updates the title of the avatar button displayed in the caption area. | 69 // Updates the title of the avatar button displayed in the caption area. |
70 // The button uses |style| to match the browser window style and notifies | 70 // The button uses |style| to match the browser window style and notifies |
71 // |listener| when it is clicked. | 71 // |listener| when it is clicked. |
72 void UpdateNewStyleAvatarInfo(views::ButtonListener* listener, | 72 void UpdateNewStyleAvatarInfo(views::ButtonListener* listener, |
73 const NewAvatarButton::AvatarButtonStyle style); | 73 const NewAvatarButton::AvatarButtonStyle style); |
74 | 74 |
75 // Anchor and show the ProfileChooser bubble under the avatar button in | |
76 // the caption area. | |
77 void ShowProfileChooserViewBubble(); | |
78 | |
79 private: | 75 private: |
80 // The frame that hosts this view. | 76 // The frame that hosts this view. |
81 BrowserFrame* frame_; | 77 BrowserFrame* frame_; |
82 | 78 |
83 // The BrowserView hosted within this View. | 79 // The BrowserView hosted within this View. |
84 BrowserView* browser_view_; | 80 BrowserView* browser_view_; |
85 | 81 |
86 // Menu button that displays that either the incognito icon or the profile | 82 // Menu button that displays that either the incognito icon or the profile |
87 // icon. May be NULL for some frame styles. | 83 // icon. May be NULL for some frame styles. |
88 AvatarMenuButton* avatar_button_; | 84 AvatarMenuButton* avatar_button_; |
89 | 85 |
90 // Avatar label that is used for a managed user. | 86 // Avatar label that is used for a managed user. |
91 AvatarLabel* avatar_label_; | 87 AvatarLabel* avatar_label_; |
92 | 88 |
93 // Menu button that displays the name of the active or guest profile. | 89 // Menu button that displays the name of the active or guest profile. |
94 // May be NULL and will not be displayed for off the record profiles. | 90 // May be NULL and will not be displayed for off the record profiles. |
95 NewAvatarButton* new_avatar_button_; | 91 NewAvatarButton* new_avatar_button_; |
96 }; | 92 }; |
97 | 93 |
98 namespace chrome { | 94 namespace chrome { |
99 | 95 |
100 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 96 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
101 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 97 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
102 BrowserFrame* frame, BrowserView* browser_view); | 98 BrowserFrame* frame, BrowserView* browser_view); |
103 | 99 |
104 } // namespace chrome | 100 } // namespace chrome |
105 | 101 |
106 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |