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

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

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
index 60809afb6dec68e2601206f47b521ce667dcb359..63978affbc934bdba0ae1848cac142398b4e7886 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
@@ -376,6 +376,7 @@ class SigninScreenHandler
void HandleShowLoadingTimeoutError();
void HandleShowSupervisedUserCreationScreen();
void HandleFocusPod(const AccountId& account_id);
+ void HandleNoPodFocused();
void HandleHardlockPod(const std::string& user_id);
void HandleLaunchKioskApp(const AccountId& app_account_id,
bool diagnostic_mode);
@@ -431,6 +432,9 @@ class SigninScreenHandler
// Callback invoked after the feedback is finished.
void OnFeedbackFinished();
+ // Called when the cros property controlling allowed input methods changes.
+ void OnAllowedInputMethodsChanged();
+
// Current UI state of the signin screen.
UIState ui_state_ = UI_STATE_UNKNOWN;
@@ -467,6 +471,9 @@ class SigninScreenHandler
content::NotificationRegistrar registrar_;
+ std::unique_ptr<CrosSettings::ObserverSubscription>
+ allowed_input_methods_subscription_;
+
// Whether there is an auth UI pending. This flag is set on receiving
// NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or
// NOTIFICATION_AUTH_CANCELLED.
@@ -511,6 +518,8 @@ class SigninScreenHandler
std::unique_ptr<LoginFeedback> login_feedback_;
+ std::unique_ptr<AccountId> focused_pod_account_id_;
+
base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);

Powered by Google App Engine
This is Rietveld 408576698