OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 static void ShowBubble( | 56 static void ShowBubble( |
57 profiles::BubbleViewMode view_mode, | 57 profiles::BubbleViewMode view_mode, |
58 profiles::TutorialMode tutorial_mode, | 58 profiles::TutorialMode tutorial_mode, |
59 const signin::ManageAccountsParams& manage_accounts_params, | 59 const signin::ManageAccountsParams& manage_accounts_params, |
60 signin_metrics::AccessPoint access_point, | 60 signin_metrics::AccessPoint access_point, |
61 views::View* anchor_view, | 61 views::View* anchor_view, |
62 Browser* browser); | 62 Browser* browser); |
63 static bool IsShowing(); | 63 static bool IsShowing(); |
64 static void Hide(); | 64 static void Hide(); |
65 | 65 |
| 66 const Browser* browser() const { return browser_; } |
| 67 |
66 private: | 68 private: |
67 friend class ProfileChooserViewExtensionsTest; | 69 friend class ProfileChooserViewExtensionsTest; |
68 | 70 |
69 typedef std::vector<size_t> Indexes; | 71 typedef std::vector<size_t> Indexes; |
70 typedef std::map<views::Button*, int> ButtonIndexes; | 72 typedef std::map<views::Button*, int> ButtonIndexes; |
71 typedef std::map<views::Button*, std::string> AccountButtonIndexes; | 73 typedef std::map<views::Button*, std::string> AccountButtonIndexes; |
72 | 74 |
73 ProfileChooserView(views::View* anchor_view, | 75 ProfileChooserView(views::View* anchor_view, |
74 Browser* browser, | 76 Browser* browser, |
75 profiles::BubbleViewMode view_mode, | 77 profiles::BubbleViewMode view_mode, |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // The GAIA service type provided in the response header. | 292 // The GAIA service type provided in the response header. |
291 signin::GAIAServiceType gaia_service_type_; | 293 signin::GAIAServiceType gaia_service_type_; |
292 | 294 |
293 // The current access point of sign in. | 295 // The current access point of sign in. |
294 const signin_metrics::AccessPoint access_point_; | 296 const signin_metrics::AccessPoint access_point_; |
295 | 297 |
296 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 298 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
297 }; | 299 }; |
298 | 300 |
299 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 301 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |