Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 345533005: Parse extra parameters on x-chrome-manage-accounts header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public views::StyledLabelListener, 44 public views::StyledLabelListener,
45 public views::TextfieldController, 45 public views::TextfieldController,
46 public AvatarMenuObserver, 46 public AvatarMenuObserver,
47 public OAuth2TokenService::Observer { 47 public OAuth2TokenService::Observer {
48 public: 48 public:
49 // Shows the bubble if one is not already showing. This allows us to easily 49 // Shows the bubble if one is not already showing. This allows us to easily
50 // make a button toggle the bubble on and off when clicked: we unconditionally 50 // make a button toggle the bubble on and off when clicked: we unconditionally
51 // call this function when the button is clicked and if the bubble isn't 51 // call this function when the button is clicked and if the bubble isn't
52 // showing it will appear while if it is showing, nothing will happen here and 52 // showing it will appear while if it is showing, nothing will happen here and
53 // the existing bubble will auto-close due to focus loss. 53 // the existing bubble will auto-close due to focus loss.
54 static void ShowBubble(profiles::BubbleViewMode view_mode, 54 static void ShowBubble(
55 signin::GAIAServiceType service_type, 55 profiles::BubbleViewMode view_mode,
56 views::View* anchor_view, 56 const signin::ManageAccountsParams& manage_accounts_params,
57 views::BubbleBorder::Arrow arrow, 57 views::View* anchor_view,
58 views::BubbleBorder::BubbleAlignment border_alignment, 58 views::BubbleBorder::Arrow arrow,
59 Browser* browser); 59 views::BubbleBorder::BubbleAlignment border_alignment,
60 Browser* browser);
60 static bool IsShowing(); 61 static bool IsShowing();
61 static void Hide(); 62 static void Hide();
62 63
63 // We normally close the bubble any time it becomes inactive but this can lead 64 // We normally close the bubble any time it becomes inactive but this can lead
64 // to flaky tests where unexpected UI events are triggering this behavior. 65 // to flaky tests where unexpected UI events are triggering this behavior.
65 // Tests should call this with "false" for more consistent operation. 66 // Tests should call this with "false" for more consistent operation.
66 static void clear_close_on_deactivate_for_testing() { 67 static void clear_close_on_deactivate_for_testing() {
67 close_on_deactivate_for_testing_ = false; 68 close_on_deactivate_for_testing_ = false;
68 } 69 }
69 70
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // The current tutorial mode. 238 // The current tutorial mode.
238 profiles::TutorialMode tutorial_mode_; 239 profiles::TutorialMode tutorial_mode_;
239 240
240 // The GAIA service type provided in the response header. 241 // The GAIA service type provided in the response header.
241 signin::GAIAServiceType gaia_service_type_; 242 signin::GAIAServiceType gaia_service_type_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); 244 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
244 }; 245 };
245 246
246 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 247 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/avatar_label.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698