| OLD | NEW |
| 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_IBUS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static IBusController* Create(); | 32 static IBusController* Create(); |
| 33 | 33 |
| 34 virtual ~IBusController(); | 34 virtual ~IBusController(); |
| 35 | 35 |
| 36 virtual void AddObserver(Observer* observer) = 0; | 36 virtual void AddObserver(Observer* observer) = 0; |
| 37 virtual void RemoveObserver(Observer* observer) = 0; | 37 virtual void RemoveObserver(Observer* observer) = 0; |
| 38 | 38 |
| 39 // Starts the system input method framework. No-op if it's already started. | 39 // Starts the system input method framework. No-op if it's already started. |
| 40 virtual bool Start() = 0; | 40 virtual bool Start() = 0; |
| 41 | 41 |
| 42 // Resets the system input method framework. A composition text is discarded, |
| 43 // and a candidate window is closed. |
| 44 virtual void Reset() = 0; |
| 45 |
| 42 // Stops the system input method framework. | 46 // Stops the system input method framework. |
| 43 virtual bool Stop() = 0; | 47 virtual bool Stop() = 0; |
| 44 | 48 |
| 45 // Sets a configuration of an input method engine. Returns true if the | 49 // Sets a configuration of an input method engine. Returns true if the |
| 46 // configuration is successfully set. For example, when you set | 50 // configuration is successfully set. For example, when you set |
| 47 // "engine/Mozc/history_learning_level", |section| should be "engine/Mozc", | 51 // "engine/Mozc/history_learning_level", |section| should be "engine/Mozc", |
| 48 // and |config_name| should be "history_learning_level". | 52 // and |config_name| should be "history_learning_level". |
| 49 virtual bool SetInputMethodConfig(const std::string& section, | 53 virtual bool SetInputMethodConfig(const std::string& section, |
| 50 const std::string& config_name, | 54 const std::string& config_name, |
| 51 const InputMethodConfigValue& value) = 0; | 55 const InputMethodConfigValue& value) = 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 79 #endif | 83 #endif |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 } // namespace input_method | 86 } // namespace input_method |
| 83 } // namespace chromeos | 87 } // namespace chromeos |
| 84 | 88 |
| 85 // TODO(yusukes,nona): This interface does not depend on IBus actually. | 89 // TODO(yusukes,nona): This interface does not depend on IBus actually. |
| 86 // Rename the file if needed. | 90 // Rename the file if needed. |
| 87 | 91 |
| 88 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_CONTROLLER_H_ |
| OLD | NEW |