OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_LANGUAGE_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_LANGUAGE_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_LANGUAGE_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_LANGUAGE_LIBRARY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
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 "third_party/cros/chromeos_language.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: LanguageLibrary::Get() | 21 // library class like this: LanguageLibrary::Get() |
22 class LanguageLibrary { | 22 class LanguageLibrary { |
23 public: | 23 public: |
24 class Observer { | 24 class Observer { |
25 public: | 25 public: |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // A timer for retrying to send |pendning_config_commands_| to the input | 221 // A timer for retrying to send |pendning_config_commands_| to the input |
222 // method config daemon. | 222 // method config daemon. |
223 base::OneShotTimer<LanguageLibraryImpl> timer_; | 223 base::OneShotTimer<LanguageLibraryImpl> timer_; |
224 | 224 |
225 DISALLOW_COPY_AND_ASSIGN(LanguageLibraryImpl); | 225 DISALLOW_COPY_AND_ASSIGN(LanguageLibraryImpl); |
226 }; | 226 }; |
227 | 227 |
228 } // namespace chromeos | 228 } // namespace chromeos |
229 | 229 |
230 #endif // CHROME_BROWSER_CHROMEOS_CROS_LANGUAGE_LIBRARY_H_ | 230 #endif // CHROME_BROWSER_CHROMEOS_CROS_LANGUAGE_LIBRARY_H_ |
OLD | NEW |