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

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

Issue 225963004: Adds a settings link to account removal UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 23 matching lines...) Expand all
34 } 34 }
35 35
36 class Browser; 36 class Browser;
37 37
38 // This bubble view is displayed when the user clicks on the avatar button. 38 // This bubble view is displayed when the user clicks on the avatar button.
39 // It displays a list of profiles and allows users to switch between profiles. 39 // It displays a list of profiles and allows users to switch between profiles.
40 class ProfileChooserView : public views::BubbleDelegateView, 40 class ProfileChooserView : public views::BubbleDelegateView,
41 public views::ButtonListener, 41 public views::ButtonListener,
42 public views::LinkListener, 42 public views::LinkListener,
43 public views::MenuButtonListener, 43 public views::MenuButtonListener,
44 public views::StyledLabelListener,
44 public views::TextfieldController, 45 public views::TextfieldController,
45 public AvatarMenuObserver, 46 public AvatarMenuObserver,
46 public OAuth2TokenService::Observer { 47 public OAuth2TokenService::Observer {
47 public: 48 public:
48 // Different views that can be displayed in the bubble. 49 // Different views that can be displayed in the bubble.
49 enum BubbleViewMode { 50 enum BubbleViewMode {
50 // Shows a "fast profile switcher" view. 51 // Shows a "fast profile switcher" view.
51 BUBBLE_VIEW_MODE_PROFILE_CHOOSER, 52 BUBBLE_VIEW_MODE_PROFILE_CHOOSER,
52 // Shows a list of accounts for the active user. 53 // Shows a list of accounts for the active user.
53 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT, 54 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // views::ButtonListener: 102 // views::ButtonListener:
102 virtual void ButtonPressed(views::Button* sender, 103 virtual void ButtonPressed(views::Button* sender,
103 const ui::Event& event) OVERRIDE; 104 const ui::Event& event) OVERRIDE;
104 105
105 // views::LinkListener: 106 // views::LinkListener:
106 virtual void LinkClicked(views::Link* sender, int event_flags) OVERRIDE; 107 virtual void LinkClicked(views::Link* sender, int event_flags) OVERRIDE;
107 108
108 // views::MenuButtonListener: 109 // views::MenuButtonListener:
109 virtual void OnMenuButtonClicked(views::View* source, 110 virtual void OnMenuButtonClicked(views::View* source,
110 const gfx::Point& point) OVERRIDE; 111 const gfx::Point& point) OVERRIDE;
112
113 // views::StyledLabelListener implementation.
114 virtual void StyledLabelLinkClicked(
115 const gfx::Range& range, int event_flags) OVERRIDE;
116
111 // views::TextfieldController: 117 // views::TextfieldController:
112 virtual bool HandleKeyEvent(views::Textfield* sender, 118 virtual bool HandleKeyEvent(views::Textfield* sender,
113 const ui::KeyEvent& key_event) OVERRIDE; 119 const ui::KeyEvent& key_event) OVERRIDE;
114 120
115 // AvatarMenuObserver: 121 // AvatarMenuObserver:
116 virtual void OnAvatarMenuChanged(AvatarMenu* avatar_menu) OVERRIDE; 122 virtual void OnAvatarMenuChanged(AvatarMenu* avatar_menu) OVERRIDE;
117 123
118 // OAuth2TokenService::Observer overrides. 124 // OAuth2TokenService::Observer overrides.
119 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; 125 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE;
120 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; 126 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Active view mode. 207 // Active view mode.
202 BubbleViewMode view_mode_; 208 BubbleViewMode view_mode_;
203 209
204 // Whether the tutorial is currently shown. 210 // Whether the tutorial is currently shown.
205 bool tutorial_showing_; 211 bool tutorial_showing_;
206 212
207 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); 213 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
208 }; 214 };
209 215
210 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 216 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698