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

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

Issue 9852008: Update IME preferences outside the IME status button when Uber Tray is in use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry Created 8 years, 8 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 | Annotate | Revision Log
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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 20 matching lines...) Expand all
31 31
32 class HotkeyManager; 32 class HotkeyManager;
33 class VirtualKeyboard; 33 class VirtualKeyboard;
34 class XKeyboard; 34 class XKeyboard;
35 35
36 // This class manages input methodshandles. Classes can add themselves as 36 // This class manages input methodshandles. Classes can add themselves as
37 // observers. Clients can get an instance of this library class by: 37 // observers. Clients can get an instance of this library class by:
38 // InputMethodManager::GetInstance(). 38 // InputMethodManager::GetInstance().
39 class InputMethodManager { 39 class InputMethodManager {
40 public: 40 public:
41 enum State {
42 STATE_LOGIN_SCREEN = 0,
43 // The user entered the correct password (= NOTIFICATION_LOGIN_USER_CHANGED
44 // has been sent), but NOTIFICATION_SESSION_STARTED has not.
45 STATE_LOGGING_IN,
46 // The browser window for user session is ready.
47 STATE_BROWSER_SCREEN,
48 STATE_LOCK_SCREEN,
49 STATE_TERMINATING,
50 };
51
41 class Observer { 52 class Observer {
42 public: 53 public:
43 virtual ~Observer() {} 54 virtual ~Observer() {}
44 55
45 // Called when the current input method is changed. 56 // Called when the current input method is changed.
46 virtual void InputMethodChanged( 57 virtual void InputMethodChanged(
47 InputMethodManager* manager, 58 InputMethodManager* manager,
48 const InputMethodDescriptor& current_input_method, 59 const InputMethodDescriptor& current_input_method,
49 size_t num_active_input_methods) = 0; 60 size_t num_active_input_methods) = 0;
50 61
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual InputMethodDescriptor GetPreviousInputMethod() const = 0; 279 virtual InputMethodDescriptor GetPreviousInputMethod() const = 0;
269 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; 280 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0;
270 281
271 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; 282 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0;
272 }; 283 };
273 284
274 } // namespace input_method 285 } // namespace input_method
275 } // namespace chromeos 286 } // namespace chromeos
276 287
277 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 288 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698