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

Side by Side Diff: chrome/browser/chromeos/login/ui/webui_login_display.h

Issue 1470633002: ChromeOS: Fix removeUser button on signin screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Fix-GetKnownUserAccountId
Patch Set: Rebased. Created 5 years 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
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_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/chromeos/login/signin_specifics.h" 12 #include "chrome/browser/chromeos/login/signin_specifics.h"
13 #include "chrome/browser/chromeos/login/ui/login_display.h" 13 #include "chrome/browser/chromeos/login/ui/login_display.h"
14 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" 14 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h"
15 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 15 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
16 #include "components/user_manager/user.h" 16 #include "components/user_manager/user.h"
17 #include "ui/base/user_activity/user_activity_observer.h" 17 #include "ui/base/user_activity/user_activity_observer.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 19
20 class AccountId;
21
20 namespace chromeos { 22 namespace chromeos {
21 23
22 // WebUI-based login UI implementation. 24 // WebUI-based login UI implementation.
23 class WebUILoginDisplay : public LoginDisplay, 25 class WebUILoginDisplay : public LoginDisplay,
24 public NativeWindowDelegate, 26 public NativeWindowDelegate,
25 public SigninScreenHandlerDelegate, 27 public SigninScreenHandlerDelegate,
26 public ui::UserActivityObserver { 28 public ui::UserActivityObserver {
27 public: 29 public:
28 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate); 30 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate);
29 ~WebUILoginDisplay() override; 31 ~WebUILoginDisplay() override;
30 32
31 // LoginDisplay implementation: 33 // LoginDisplay implementation:
32 void ClearAndEnablePassword() override; 34 void ClearAndEnablePassword() override;
33 void Init(const user_manager::UserList& users, 35 void Init(const user_manager::UserList& users,
34 bool show_guest, 36 bool show_guest,
35 bool show_users, 37 bool show_users,
36 bool show_new_user) override; 38 bool show_new_user) override;
37 void OnPreferencesChanged() override; 39 void OnPreferencesChanged() override;
38 void RemoveUser(const std::string& user_id) override; 40 void RemoveUser(const AccountId& account_id) override;
39 void SetUIEnabled(bool is_enabled) override; 41 void SetUIEnabled(bool is_enabled) override;
40 void ShowError(int error_msg_id, 42 void ShowError(int error_msg_id,
41 int login_attempts, 43 int login_attempts,
42 HelpAppLauncher::HelpTopic help_topic_id) override; 44 HelpAppLauncher::HelpTopic help_topic_id) override;
43 void ShowErrorScreen(LoginDisplay::SigninError error_id) override; 45 void ShowErrorScreen(LoginDisplay::SigninError error_id) override;
44 void ShowPasswordChangedDialog(bool show_password_error, 46 void ShowPasswordChangedDialog(bool show_password_error,
45 const std::string& email) override; 47 const std::string& email) override;
46 void ShowSigninUI(const std::string& email) override; 48 void ShowSigninUI(const std::string& email) override;
47 void ShowWhitelistCheckFailedError() override; 49 void ShowWhitelistCheckFailedError() override;
48 50
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 // Reference to the WebUI handling layer for the login screen 101 // Reference to the WebUI handling layer for the login screen
100 LoginDisplayWebUIHandler* webui_handler_; 102 LoginDisplayWebUIHandler* webui_handler_;
101 103
102 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); 104 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay);
103 }; 105 };
104 106
105 } // namespace chromeos 107 } // namespace chromeos
106 108
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/mock_login_display.h ('k') | chrome/browser/chromeos/login/ui/webui_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698