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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_persistence.h

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove empty line. Created 5 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 // OnSessionStateChange whenever the InputMethodManager::UISessionState 26 // OnSessionStateChange whenever the InputMethodManager::UISessionState
27 // changes. 27 // changes.
28 explicit InputMethodPersistence(InputMethodManager* input_method_manager); 28 explicit InputMethodPersistence(InputMethodManager* input_method_manager);
29 ~InputMethodPersistence() override; 29 ~InputMethodPersistence() override;
30 30
31 // Receives notification of session state changes. 31 // Receives notification of session state changes.
32 void OnSessionStateChange(InputMethodManager::UISessionState new_session); 32 void OnSessionStateChange(InputMethodManager::UISessionState new_session);
33 33
34 // InputMethodManager::Observer overrides. 34 // InputMethodManager::Observer overrides.
35 void InputMethodChanged(InputMethodManager* manager, 35 void InputMethodChanged(InputMethodManager* manager,
36 Profile* profile,
36 bool show_message) override; 37 bool show_message) override;
37 38
38 private: 39 private:
39 InputMethodManager* input_method_manager_; 40 InputMethodManager* input_method_manager_;
40 InputMethodManager::UISessionState ui_session_; 41 InputMethodManager::UISessionState ui_session_;
41 DISALLOW_COPY_AND_ASSIGN(InputMethodPersistence); 42 DISALLOW_COPY_AND_ASSIGN(InputMethodPersistence);
42 }; 43 };
43 44
44 void SetUserLRUInputMethodPreferenceForTesting(const std::string& username, 45 void SetUserLRUInputMethodPreferenceForTesting(const std::string& username,
45 const std::string& input_method, 46 const std::string& input_method,
46 PrefService* local_state); 47 PrefService* local_state);
47 48
48 } // namespace input_method 49 } // namespace input_method
49 } // namespace chromeos 50 } // namespace chromeos
50 51
51 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_PERSISTENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698