| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual void StopInputMethodDaemon() = 0; | 114 virtual void StopInputMethodDaemon() = 0; |
| 115 | 115 |
| 116 // Controls whether the IME process is started when preload engines are | 116 // Controls whether the IME process is started when preload engines are |
| 117 // specificed, or defered until a non-default method is activated. | 117 // specificed, or defered until a non-default method is activated. |
| 118 virtual void SetDeferImeStartup(bool defer) = 0; | 118 virtual void SetDeferImeStartup(bool defer) = 0; |
| 119 | 119 |
| 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 |
| 125 // for details. |
| 126 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) = 0; |
| 127 |
| 128 // Clears last N handwriting strokes in libcros. See |
| 129 // chromeos::CancelHandwriting for details. |
| 130 virtual void CancelHandwriting(int n_strokes) = 0; |
| 124 | 131 |
| 125 virtual const InputMethodDescriptor& previous_input_method() const = 0; | 132 virtual const InputMethodDescriptor& previous_input_method() const = 0; |
| 126 virtual const InputMethodDescriptor& current_input_method() const = 0; | 133 virtual const InputMethodDescriptor& current_input_method() const = 0; |
| 127 | 134 |
| 128 virtual const ImePropertyList& current_ime_properties() const = 0; | 135 virtual const ImePropertyList& current_ime_properties() const = 0; |
| 129 | 136 |
| 130 // Factory function, creates a new instance and returns ownership. | 137 // Factory function, creates a new instance and returns ownership. |
| 131 // For normal usage, access the singleton via CrosLibrary::Get(). | 138 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 132 static InputMethodLibrary* GetImpl(bool stub); | 139 static InputMethodLibrary* GetImpl(bool stub); |
| 133 }; | 140 }; |
| 134 | 141 |
| 135 } // namespace chromeos | 142 } // namespace chromeos |
| 136 | 143 |
| 137 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ |
| OLD | NEW |