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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // the existing bubble will auto-close due to focus loss. | 50 // the existing bubble will auto-close due to focus loss. |
51 static void ShowBubble( | 51 static void ShowBubble( |
52 profiles::BubbleViewMode view_mode, | 52 profiles::BubbleViewMode view_mode, |
53 profiles::TutorialMode tutorial_mode, | 53 profiles::TutorialMode tutorial_mode, |
54 const signin::ManageAccountsParams& manage_accounts_params, | 54 const signin::ManageAccountsParams& manage_accounts_params, |
55 signin_metrics::AccessPoint access_point, | 55 signin_metrics::AccessPoint access_point, |
56 views::View* anchor_view, | 56 views::View* anchor_view, |
57 Browser* browser, | 57 Browser* browser, |
58 bool is_source_keyboard); | 58 bool is_source_keyboard); |
59 static bool IsShowing(); | 59 static bool IsShowing(); |
| 60 static views::Widget* GetCurrentBubbleWidget(); |
60 static void Hide(); | 61 static void Hide(); |
61 | 62 |
62 const Browser* browser() const { return browser_; } | 63 const Browser* browser() const { return browser_; } |
63 | 64 |
64 private: | 65 private: |
65 friend class ProfileChooserViewExtensionsTest; | 66 friend class ProfileChooserViewExtensionsTest; |
66 | 67 |
67 typedef std::vector<size_t> Indexes; | 68 typedef std::vector<size_t> Indexes; |
68 typedef std::map<views::Button*, int> ButtonIndexes; | 69 typedef std::map<views::Button*, int> ButtonIndexes; |
69 typedef std::map<views::Button*, std::string> AccountButtonIndexes; | 70 typedef std::map<views::Button*, std::string> AccountButtonIndexes; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // The GAIA service type provided in the response header. | 266 // The GAIA service type provided in the response header. |
266 signin::GAIAServiceType gaia_service_type_; | 267 signin::GAIAServiceType gaia_service_type_; |
267 | 268 |
268 // The current access point of sign in. | 269 // The current access point of sign in. |
269 const signin_metrics::AccessPoint access_point_; | 270 const signin_metrics::AccessPoint access_point_; |
270 | 271 |
271 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 272 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
272 }; | 273 }; |
273 | 274 |
274 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 275 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |