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

Side by Side Diff: chrome/browser/chromeos/cros/input_method_library.h

Issue 5981001: Use libcros to convert input method ID to keyboard overlay ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CROS_INPUT_METHOD_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // the request and returns false. 94 // the request and returns false.
95 // You can specify |section| and |config_name| arguments in the same way 95 // You can specify |section| and |config_name| arguments in the same way
96 // as GetImeConfig() above. 96 // as GetImeConfig() above.
97 // Notice: This function might call the Observer::ActiveInputMethodsChanged() 97 // Notice: This function might call the Observer::ActiveInputMethodsChanged()
98 // callback function immediately, before returning from the SetImeConfig 98 // callback function immediately, before returning from the SetImeConfig
99 // function. See also http://crosbug.com/5217. 99 // function. See also http://crosbug.com/5217.
100 virtual bool SetImeConfig(const char* section, 100 virtual bool SetImeConfig(const char* section,
101 const char* config_name, 101 const char* config_name,
102 const ImeConfigValue& value) = 0; 102 const ImeConfigValue& value) = 0;
103 103
104 // Returns the keyboard overlay ID corresponding to |input_method_id|.
105 // Returns an empty string if there is no corresponding keyboard overlay ID.
106 virtual std::string GetKeyboardOverlayId(
107 const std::string& input_method_id) = 0;
satorux1 2011/01/05 03:42:29 You can make it a const function as this function
mazda 2011/01/05 11:29:44 Since EnsureLoadedAndStarted, which is used for th
satorux1 2011/01/06 04:39:19 Then, it's fine to be non-const. Sorry about the b
108
104 // Sets the IME state to enabled, and launches its processes if needed. 109 // Sets the IME state to enabled, and launches its processes if needed.
105 virtual void StartInputMethodProcesses() = 0; 110 virtual void StartInputMethodProcesses() = 0;
106 111
107 // Disables the IME, and kills the processes if they are running. 112 // Disables the IME, and kills the processes if they are running.
108 virtual void StopInputMethodProcesses() = 0; 113 virtual void StopInputMethodProcesses() = 0;
109 114
110 // Controls whether the IME process is started when preload engines are 115 // Controls whether the IME process is started when preload engines are
111 // specificed, or defered until a non-default method is activated. 116 // specificed, or defered until a non-default method is activated.
112 virtual void SetDeferImeStartup(bool defer) = 0; 117 virtual void SetDeferImeStartup(bool defer) = 0;
113 118
114 // Controls whether the IME process is stopped when all non-default preload 119 // Controls whether the IME process is stopped when all non-default preload
115 // engines are removed. 120 // engines are removed.
116 virtual void SetEnableAutoImeShutdown(bool enable) = 0; 121 virtual void SetEnableAutoImeShutdown(bool enable) = 0;
117 122
118 123
119 virtual const InputMethodDescriptor& previous_input_method() const = 0; 124 virtual const InputMethodDescriptor& previous_input_method() const = 0;
120 virtual const InputMethodDescriptor& current_input_method() const = 0; 125 virtual const InputMethodDescriptor& current_input_method() const = 0;
121 126
122 virtual const ImePropertyList& current_ime_properties() const = 0; 127 virtual const ImePropertyList& current_ime_properties() const = 0;
123 128
124 // Factory function, creates a new instance and returns ownership. 129 // Factory function, creates a new instance and returns ownership.
125 // For normal usage, access the singleton via CrosLibrary::Get(). 130 // For normal usage, access the singleton via CrosLibrary::Get().
126 static InputMethodLibrary* GetImpl(bool stub); 131 static InputMethodLibrary* GetImpl(bool stub);
127 }; 132 };
128 133
129 } // namespace chromeos 134 } // namespace chromeos
130 135
131 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ 136 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698