OLD | NEW |
1 // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium OS 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 CHROMEOS_CROS_API_VERSION_H_ | 5 #ifndef CHROMEOS_CROS_API_VERSION_H_ |
6 #define CHROMEOS_CROS_API_VERSION_H_ | 6 #define CHROMEOS_CROS_API_VERSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 | 10 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // 122: Removed GetCurrentInputMethod. | 207 // 122: Removed GetCurrentInputMethod. |
208 // 123: Change Store/RetrievePolicy to use byte arrays underneath the hood. | 208 // 123: Change Store/RetrievePolicy to use byte arrays underneath the hood. |
209 // 124: Deprecated SetCurrentKeyboardLayoutByName, RemapModifierKeys, | 209 // 124: Deprecated SetCurrentKeyboardLayoutByName, RemapModifierKeys, |
210 // SetAutoRepeatEnabled, SetAutoRepeatRate | 210 // SetAutoRepeatEnabled, SetAutoRepeatRate |
211 // (all functions in chromeos_keyboard.h) | 211 // (all functions in chromeos_keyboard.h) |
212 | 212 |
213 namespace chromeos { // NOLINT | 213 namespace chromeos { // NOLINT |
214 | 214 |
215 enum CrosAPIVersion { | 215 enum CrosAPIVersion { |
216 kCrosAPIMinVersion = 110, | 216 kCrosAPIMinVersion = 110, |
217 kCrosAPIVersion = 123 | 217 kCrosAPIVersion = 124 |
218 }; | 218 }; |
219 | 219 |
220 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 220 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
221 extern char const * const kCrosDefaultPath; | 221 extern char const * const kCrosDefaultPath; |
222 | 222 |
223 // |path_to_libcros| is the path to the libcros.so file. | 223 // |path_to_libcros| is the path to the libcros.so file. |
224 // Returns true to indicate success. | 224 // Returns true to indicate success. |
225 // If returns false, |load_error| will contain a string describing the | 225 // If returns false, |load_error| will contain a string describing the |
226 // problem. | 226 // problem. |
227 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 227 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
228 | 228 |
229 // Use to provide a function for passing histogram timing values to Chrome. | 229 // Use to provide a function for passing histogram timing values to Chrome. |
230 typedef void (*LibcrosTimeHistogramFunc)( | 230 typedef void (*LibcrosTimeHistogramFunc)( |
231 const char* name, const base::TimeDelta& delta); | 231 const char* name, const base::TimeDelta& delta); |
232 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); | 232 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); |
233 | 233 |
234 } // namespace chromeos | 234 } // namespace chromeos |
235 | 235 |
236 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 236 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |