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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 ProfileChooserView(views::View* anchor_view, | 80 ProfileChooserView(views::View* anchor_view, |
81 views::BubbleBorder::Arrow arrow, | 81 views::BubbleBorder::Arrow arrow, |
82 Browser* browser, | 82 Browser* browser, |
83 profiles::BubbleViewMode view_mode, | 83 profiles::BubbleViewMode view_mode, |
84 profiles::TutorialMode tutorial_mode, | 84 profiles::TutorialMode tutorial_mode, |
85 signin::GAIAServiceType service_type); | 85 signin::GAIAServiceType service_type); |
86 virtual ~ProfileChooserView(); | 86 virtual ~ProfileChooserView(); |
87 | 87 |
88 // views::BubbleDelegateView: | 88 // views::BubbleDelegateView: |
89 virtual void Init() OVERRIDE; | 89 virtual void Init() override; |
90 virtual void WindowClosing() OVERRIDE; | 90 virtual void WindowClosing() override; |
91 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 91 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
92 | 92 |
93 // views::ButtonListener: | 93 // views::ButtonListener: |
94 virtual void ButtonPressed(views::Button* sender, | 94 virtual void ButtonPressed(views::Button* sender, |
95 const ui::Event& event) OVERRIDE; | 95 const ui::Event& event) override; |
96 | 96 |
97 // views::LinkListener: | 97 // views::LinkListener: |
98 virtual void LinkClicked(views::Link* sender, int event_flags) OVERRIDE; | 98 virtual void LinkClicked(views::Link* sender, int event_flags) override; |
99 | 99 |
100 // views::StyledLabelListener: | 100 // views::StyledLabelListener: |
101 virtual void StyledLabelLinkClicked( | 101 virtual void StyledLabelLinkClicked( |
102 const gfx::Range& range, int event_flags) OVERRIDE; | 102 const gfx::Range& range, int event_flags) override; |
103 | 103 |
104 // views::TextfieldController: | 104 // views::TextfieldController: |
105 virtual bool HandleKeyEvent(views::Textfield* sender, | 105 virtual bool HandleKeyEvent(views::Textfield* sender, |
106 const ui::KeyEvent& key_event) OVERRIDE; | 106 const ui::KeyEvent& key_event) override; |
107 | 107 |
108 // AvatarMenuObserver: | 108 // AvatarMenuObserver: |
109 virtual void OnAvatarMenuChanged(AvatarMenu* avatar_menu) OVERRIDE; | 109 virtual void OnAvatarMenuChanged(AvatarMenu* avatar_menu) override; |
110 | 110 |
111 // OAuth2TokenService::Observer overrides. | 111 // OAuth2TokenService::Observer overrides. |
112 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 112 virtual void OnRefreshTokenAvailable(const std::string& account_id) override; |
113 virtual void OnRefreshTokenRevoked(const std::string& account_id) OVERRIDE; | 113 virtual void OnRefreshTokenRevoked(const std::string& account_id) override; |
114 | 114 |
115 static ProfileChooserView* profile_bubble_; | 115 static ProfileChooserView* profile_bubble_; |
116 static bool close_on_deactivate_for_testing_; | 116 static bool close_on_deactivate_for_testing_; |
117 | 117 |
118 void ResetView(); | 118 void ResetView(); |
119 | 119 |
120 // Shows the bubble with the |view_to_display|. | 120 // Shows the bubble with the |view_to_display|. |
121 void ShowView(profiles::BubbleViewMode view_to_display, | 121 void ShowView(profiles::BubbleViewMode view_to_display, |
122 AvatarMenu* avatar_menu); | 122 AvatarMenu* avatar_menu); |
123 | 123 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // The current tutorial mode. | 251 // The current tutorial mode. |
252 profiles::TutorialMode tutorial_mode_; | 252 profiles::TutorialMode tutorial_mode_; |
253 | 253 |
254 // The GAIA service type provided in the response header. | 254 // The GAIA service type provided in the response header. |
255 signin::GAIAServiceType gaia_service_type_; | 255 signin::GAIAServiceType gaia_service_type_; |
256 | 256 |
257 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 257 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
258 }; | 258 }; |
259 | 259 |
260 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 260 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |