Chromium Code Reviews

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

Issue 304153004: Center lock screen user pod when virtual keyboard is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...)
77 virtual void OnUserImageChanged(const User& user) = 0; 77 virtual void OnUserImageChanged(const User& user) = 0;
78 virtual void OnPreferencesChanged() = 0; 78 virtual void OnPreferencesChanged() = 0;
79 virtual void ResetSigninScreenHandlerDelegate() = 0; 79 virtual void ResetSigninScreenHandlerDelegate() = 0;
80 virtual void ShowError(int login_attempts, 80 virtual void ShowError(int login_attempts,
81 const std::string& error_text, 81 const std::string& error_text,
82 const std::string& help_link_text, 82 const std::string& help_link_text,
83 HelpAppLauncher::HelpTopic help_topic_id) = 0; 83 HelpAppLauncher::HelpTopic help_topic_id) = 0;
84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; 84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0;
85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; 85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0;
86 virtual void ShowSigninUI(const std::string& email) = 0; 86 virtual void ShowSigninUI(const std::string& email) = 0;
87 virtual void ShowControlBar(bool show) = 0;
88 virtual void SetKeyboardState(bool shown) = 0;
89 virtual void SetClientAreaSize(int width, int height) = 0;
90 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; 87 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0;
91 // Show sign-in screen for the given credentials. 88 // Show sign-in screen for the given credentials.
92 virtual void ShowSigninScreenForCreds(const std::string& username, 89 virtual void ShowSigninScreenForCreds(const std::string& username,
93 const std::string& password) = 0; 90 const std::string& password) = 0;
94 protected: 91 protected:
95 virtual ~LoginDisplayWebUIHandler() {} 92 virtual ~LoginDisplayWebUIHandler() {}
96 }; 93 };
97 94
98 // An interface for SigninScreenHandler to call WebUILoginDisplay. 95 // An interface for SigninScreenHandler to call WebUILoginDisplay.
99 class SigninScreenHandlerDelegate { 96 class SigninScreenHandlerDelegate {
(...skipping 174 matching lines...)
274 virtual void OnUserRemoved(const std::string& username) OVERRIDE; 271 virtual void OnUserRemoved(const std::string& username) OVERRIDE;
275 virtual void OnUserImageChanged(const User& user) OVERRIDE; 272 virtual void OnUserImageChanged(const User& user) OVERRIDE;
276 virtual void OnPreferencesChanged() OVERRIDE; 273 virtual void OnPreferencesChanged() OVERRIDE;
277 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; 274 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE;
278 virtual void ShowError(int login_attempts, 275 virtual void ShowError(int login_attempts,
279 const std::string& error_text, 276 const std::string& error_text,
280 const std::string& help_link_text, 277 const std::string& help_link_text,
281 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 278 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
282 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 279 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE;
283 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 280 virtual void ShowSigninUI(const std::string& email) OVERRIDE;
284 virtual void ShowControlBar(bool show) OVERRIDE;
285 virtual void SetKeyboardState(bool shown) OVERRIDE;
286 virtual void SetClientAreaSize(int width, int height) OVERRIDE;
287 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 281 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE;
288 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 282 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE;
289 virtual void ShowSigninScreenForCreds(const std::string& username, 283 virtual void ShowSigninScreenForCreds(const std::string& username,
290 const std::string& password) OVERRIDE; 284 const std::string& password) OVERRIDE;
291 285
292 // ui::EventHandler implementation: 286 // ui::EventHandler implementation:
293 virtual void OnKeyEvent(ui::KeyEvent* key) OVERRIDE; 287 virtual void OnKeyEvent(ui::KeyEvent* key) OVERRIDE;
294 288
295 // content::NotificationObserver implementation: 289 // content::NotificationObserver implementation:
296 virtual void Observe(int type, 290 virtual void Observe(int type,
(...skipping 251 matching lines...)
548 542
549 // Helper that retrieves the authenticated user's e-mail address. 543 // Helper that retrieves the authenticated user's e-mail address.
550 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; 544 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_;
551 545
552 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 546 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
553 }; 547 };
554 548
555 } // namespace chromeos 549 } // namespace chromeos
556 550
557 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 551 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine