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

Side by Side Diff: ui/base/ime/chromeos/input_method_manager.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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 STATE_LOCK_SCREEN, 42 STATE_LOCK_SCREEN,
43 STATE_TERMINATING, 43 STATE_TERMINATING,
44 }; 44 };
45 45
46 class Observer { 46 class Observer {
47 public: 47 public:
48 virtual ~Observer() {} 48 virtual ~Observer() {}
49 // Called when the current input method is changed. |show_message| 49 // Called when the current input method is changed. |show_message|
50 // indicates whether the user should be notified of this change. 50 // indicates whether the user should be notified of this change.
51 virtual void InputMethodChanged(InputMethodManager* manager, 51 virtual void InputMethodChanged(InputMethodManager* manager,
52 Profile* profile,
52 bool show_message) = 0; 53 bool show_message) = 0;
53 }; 54 };
54 55
55 // CandidateWindowObserver is notified of events related to the candidate 56 // CandidateWindowObserver is notified of events related to the candidate
56 // window. The "suggestion window" used by IMEs such as ibus-mozc does not 57 // window. The "suggestion window" used by IMEs such as ibus-mozc does not
57 // count as the candidate window (this may change if we later want suggestion 58 // count as the candidate window (this may change if we later want suggestion
58 // window events as well). These events also won't occur when the virtual 59 // window events as well). These events also won't occur when the virtual
59 // keyboard is used, since it controls its own candidate window. 60 // keyboard is used, since it controls its own candidate window.
60 class CandidateWindowObserver { 61 class CandidateWindowObserver {
61 public: 62 public:
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() = 0; 242 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() = 0;
242 243
243 // Replaces active state. 244 // Replaces active state.
244 virtual void SetState(scoped_refptr<State> state) = 0; 245 virtual void SetState(scoped_refptr<State> state) = 0;
245 }; 246 };
246 247
247 } // namespace input_method 248 } // namespace input_method
248 } // namespace chromeos 249 } // namespace chromeos
249 250
250 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 251 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698