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

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

Issue 18856014: We should switch the keyboard layout to the layout the user set according to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang build. Created 7 years, 5 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 unified diff | Download patch
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void SetDelegate(SigninScreenHandlerDelegate* delegate); 186 void SetDelegate(SigninScreenHandlerDelegate* delegate);
187 187
188 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); 188 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate);
189 189
190 // NetworkStateInformer::NetworkStateInformerObserver implementation: 190 // NetworkStateInformer::NetworkStateInformerObserver implementation:
191 virtual void OnNetworkReady() OVERRIDE; 191 virtual void OnNetworkReady() OVERRIDE;
192 192
193 virtual void UpdateState(NetworkStateInformer::State state, 193 virtual void UpdateState(NetworkStateInformer::State state,
194 ErrorScreenActor::ErrorReason reason) OVERRIDE; 194 ErrorScreenActor::ErrorReason reason) OVERRIDE;
195 195
196 // Required Local State preferences
Nikita (slow) 2013/07/15 12:56:38 nit: dot is missing.
Alexander Alekseev 2013/07/22 14:24:21 Done.
197 static void RegisterPrefs(PrefRegistrySimple* registry);
198
196 private: 199 private:
197 enum UIState { 200 enum UIState {
198 UI_STATE_UNKNOWN = 0, 201 UI_STATE_UNKNOWN = 0,
199 UI_STATE_GAIA_SIGNIN, 202 UI_STATE_GAIA_SIGNIN,
200 UI_STATE_ACCOUNT_PICKER, 203 UI_STATE_ACCOUNT_PICKER,
201 }; 204 };
202 205
203 enum FrameState { 206 enum FrameState {
204 FRAME_STATE_UNKNOWN = 0, 207 FRAME_STATE_UNKNOWN = 0,
205 FRAME_STATE_LOADING, 208 FRAME_STATE_LOADING,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 375
373 // Returns true if guest signin is allowed. 376 // Returns true if guest signin is allowed.
374 bool IsGuestSigninAllowed() const; 377 bool IsGuestSigninAllowed() const;
375 378
376 // Returns true if offline login is allowed. 379 // Returns true if offline login is allowed.
377 bool IsOfflineLoginAllowed() const; 380 bool IsOfflineLoginAllowed() const;
378 381
379 // Attempts login for test. 382 // Attempts login for test.
380 void SubmitLoginFormForTest(); 383 void SubmitLoginFormForTest();
381 384
385 // Update current input method (namely keyboard layout) to LRU by this user
Nikita (slow) 2013/07/15 12:56:38 nit: dot is missing.
Alexander Alekseev 2013/07/22 14:24:21 Done.
386 void SetUserInputMethod(const std::string& username);
387
388 // Update current input method to HW default
Nikita (slow) 2013/07/15 12:56:38 nit: dot is missing.
Alexander Alekseev 2013/07/22 14:24:21 Done.
389 void SetUserInputMethodHWDefault();
390
382 // Current UI state of the signin screen. 391 // Current UI state of the signin screen.
383 UIState ui_state_; 392 UIState ui_state_;
384 393
385 // Current state of Gaia frame. 394 // Current state of Gaia frame.
386 FrameState frame_state_; 395 FrameState frame_state_;
387 396
388 // Latest Gaia frame error. 397 // Latest Gaia frame error.
389 net::Error frame_error_; 398 net::Error frame_error_;
390 399
391 // A delegate that glues this handler with backend LoginDisplay. 400 // A delegate that glues this handler with backend LoginDisplay.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // ReloadGaiaExtension() sets this flag to true to ignore potential 473 // ReloadGaiaExtension() sets this flag to true to ignore potential
465 // ERR_ABORTED triggered from its reload request. See http://crbug.com/242527. 474 // ERR_ABORTED triggered from its reload request. See http://crbug.com/242527.
466 bool ignore_next_user_abort_frame_error_; 475 bool ignore_next_user_abort_frame_error_;
467 476
468 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 477 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
469 }; 478 };
470 479
471 } // namespace chromeos 480 } // namespace chromeos
472 481
473 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 482 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698