| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "cros/chromeos_input_method.h" | 15 #include "third_party/cros/chromeos_input_method.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // This class handles the interaction with the ChromeOS language library APIs. | 19 // This class handles the interaction with the ChromeOS language library APIs. |
| 20 // Classes can add themselves as observers. Users can get an instance of this | 20 // Classes can add themselves as observers. Users can get an instance of this |
| 21 // library class like this: | 21 // library class like this: |
| 22 // chromeos::CrosLibrary::Get()->GetInputMethodLibrary() | 22 // chromeos::CrosLibrary::Get()->GetInputMethodLibrary() |
| 23 class InputMethodLibrary { | 23 class InputMethodLibrary { |
| 24 public: | 24 public: |
| 25 class Observer { | 25 class Observer { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual const ImePropertyList& current_ime_properties() const = 0; | 122 virtual const ImePropertyList& current_ime_properties() const = 0; |
| 123 | 123 |
| 124 // Factory function, creates a new instance and returns ownership. | 124 // Factory function, creates a new instance and returns ownership. |
| 125 // For normal usage, access the singleton via CrosLibrary::Get(). | 125 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 126 static InputMethodLibrary* GetImpl(bool stub); | 126 static InputMethodLibrary* GetImpl(bool stub); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace chromeos | 129 } // namespace chromeos |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ | 131 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ |
| OLD | NEW |