OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Controls whether the IME process is stopped when all non-default preload | 120 // Controls whether the IME process is stopped when all non-default preload |
121 // engines are removed. | 121 // engines are removed. |
122 virtual void SetEnableAutoImeShutdown(bool enable) = 0; | 122 virtual void SetEnableAutoImeShutdown(bool enable) = 0; |
123 | 123 |
124 // Sends a handwriting stroke to libcros. See chromeos::SendHandwritingStroke | 124 // Sends a handwriting stroke to libcros. See chromeos::SendHandwritingStroke |
125 // for details. | 125 // for details. |
126 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) = 0; | 126 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) = 0; |
127 | 127 |
128 // Clears last N handwriting strokes in libcros. See | 128 // Clears last N handwriting strokes in libcros. See |
129 // chromeos::CancelHandwriting for details. | 129 // chromeos::CancelHandwriting for details. |
130 virtual void CancelHandwriting(int n_strokes) = 0; | 130 virtual void CancelHandwritingStrokes(int stroke_count) = 0; |
131 | 131 |
132 virtual InputMethodDescriptor previous_input_method() const = 0; | 132 virtual InputMethodDescriptor previous_input_method() const = 0; |
133 virtual InputMethodDescriptor current_input_method() const = 0; | 133 virtual InputMethodDescriptor current_input_method() const = 0; |
134 | 134 |
135 virtual const ImePropertyList& current_ime_properties() const = 0; | 135 virtual const ImePropertyList& current_ime_properties() const = 0; |
136 | 136 |
137 // Factory function, creates a new instance and returns ownership. | 137 // Factory function, creates a new instance and returns ownership. |
138 // For normal usage, access the singleton via CrosLibrary::Get(). | 138 // For normal usage, access the singleton via CrosLibrary::Get(). |
139 static InputMethodLibrary* GetImpl(bool stub); | 139 static InputMethodLibrary* GetImpl(bool stub); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace chromeos | 142 } // namespace chromeos |
143 | 143 |
144 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ |
OLD | NEW |