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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 ~ProfileChooserView() override; | 89 ~ProfileChooserView() override; |
90 | 90 |
91 // views::BubbleDelegateView: | 91 // views::BubbleDelegateView: |
92 void Init() override; | 92 void Init() override; |
93 void WindowClosing() override; | 93 void WindowClosing() override; |
94 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 94 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
95 | 95 |
96 // content::WebContentsDelegate: | 96 // content::WebContentsDelegate: |
97 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 97 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
98 | 98 |
99 // views::WidgetDelegate: | |
100 views::View* GetInitiallyFocusedView() override; | |
msw
2015/07/13 21:37:30
nit: merge this with the BubbleDelegateView overri
wjmaclean
2015/07/14 12:26:18
Done.
| |
101 | |
99 // views::ButtonListener: | 102 // views::ButtonListener: |
100 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 103 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
101 | 104 |
102 // views::LinkListener: | 105 // views::LinkListener: |
103 void LinkClicked(views::Link* sender, int event_flags) override; | 106 void LinkClicked(views::Link* sender, int event_flags) override; |
104 | 107 |
105 // views::StyledLabelListener: | 108 // views::StyledLabelListener: |
106 void StyledLabelLinkClicked(const gfx::Range& range, | 109 void StyledLabelLinkClicked(const gfx::Range& range, |
107 int event_flags) override; | 110 int event_flags) override; |
108 | 111 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 // the same person as the currently signed in user. | 216 // the same person as the currently signed in user. |
214 views::View* CreateSwitchUserView(); | 217 views::View* CreateSwitchUserView(); |
215 | 218 |
216 bool ShouldShowGoIncognito() const; | 219 bool ShouldShowGoIncognito() const; |
217 | 220 |
218 // Clean-up done after an action was performed in the ProfileChooser. | 221 // Clean-up done after an action was performed in the ProfileChooser. |
219 void PostActionPerformed(ProfileMetrics::ProfileDesktopMenu action_performed); | 222 void PostActionPerformed(ProfileMetrics::ProfileDesktopMenu action_performed); |
220 | 223 |
221 scoped_ptr<AvatarMenu> avatar_menu_; | 224 scoped_ptr<AvatarMenu> avatar_menu_; |
222 Browser* browser_; | 225 Browser* browser_; |
226 views::View* initially_focused_view_; | |
223 | 227 |
224 // Other profiles used in the "fast profile switcher" view. | 228 // Other profiles used in the "fast profile switcher" view. |
225 ButtonIndexes open_other_profile_indexes_map_; | 229 ButtonIndexes open_other_profile_indexes_map_; |
226 | 230 |
227 // Buttons associated with the current profile. | 231 // Buttons associated with the current profile. |
228 AccountButtonIndexes delete_account_button_map_; | 232 AccountButtonIndexes delete_account_button_map_; |
229 AccountButtonIndexes reauth_account_button_map_; | 233 AccountButtonIndexes reauth_account_button_map_; |
230 | 234 |
231 // Links and buttons displayed in the tutorial card. | 235 // Links and buttons displayed in the tutorial card. |
232 views::LabelButton* tutorial_sync_settings_ok_button_; | 236 views::LabelButton* tutorial_sync_settings_ok_button_; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 // The current tutorial mode. | 277 // The current tutorial mode. |
274 profiles::TutorialMode tutorial_mode_; | 278 profiles::TutorialMode tutorial_mode_; |
275 | 279 |
276 // The GAIA service type provided in the response header. | 280 // The GAIA service type provided in the response header. |
277 signin::GAIAServiceType gaia_service_type_; | 281 signin::GAIAServiceType gaia_service_type_; |
278 | 282 |
279 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 283 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
280 }; | 284 }; |
281 | 285 |
282 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 286 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |