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

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

Issue 602593003: Input methods configuration on User Adding Screen should be consistent with signin screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_USER_ADDING_SCREEN_INPUT_METHODS_CONTRO LLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_USER_ADDING_SCREEN_INPUT_METHODS_CONTRO LLER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h"
10 #include "chromeos/ime/input_method_manager.h"
11
12 namespace user_manager {
13 class User;
14 }
15
16 namespace chromeos {
17
18 // Ensure a set of "Login keyboard layouts" is used at UserAddingScreen.
19 class UserAddingScreenInputMethodsController
20 : public UserAddingScreen::Observer {
21 public:
22 explicit UserAddingScreenInputMethodsController(UserAddingScreen* screen);
23 virtual ~UserAddingScreenInputMethodsController();
24
25 // UserAddingScreen::Observer implementation:
26 virtual void OnUserAddingStarted() OVERRIDE;
27 virtual void OnUserAddingFinished() OVERRIDE;
28
29 private:
30 UserAddingScreen* screen_;
31
32 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_;
33 user_manager::User* active_user_on_show_;
34
35 DISALLOW_COPY_AND_ASSIGN(UserAddingScreenInputMethodsController);
36 };
37
38 } // namespace chromeos
39
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_USER_ADDING_SCREEN_INPUT_METHODS_CON TROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698