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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // DiskInfoAdvanced | 215 // DiskInfoAdvanced |
216 // 128: Removed SetCurrentKeyboardLayoutByName, RemapModifierKeys, | 216 // 128: Removed SetCurrentKeyboardLayoutByName, RemapModifierKeys, |
217 // SetAutoRepeatEnabled, SetAutoRepeatRate. | 217 // SetAutoRepeatEnabled, SetAutoRepeatRate. |
218 // 129: Added CryptohomePkcs11IsTpmTokenReady, CryptohomePkcs11GetTpmTokenInfo. | 218 // 129: Added CryptohomePkcs11IsTpmTokenReady, CryptohomePkcs11GetTpmTokenInfo. |
219 // 130: Added InstallAttributes* to the cryptohome DBus bindings. | 219 // 130: Added InstallAttributes* to the cryptohome DBus bindings. |
220 // 131: Added ProposeScan and RequestCellularRegister. | 220 // 131: Added ProposeScan and RequestCellularRegister. |
221 // 132: Added NotifyCursorUp, NotifyCursorDown, NotifyPageUp, NotifyPageDown | 221 // 132: Added NotifyCursorUp, NotifyCursorDown, NotifyPageUp, NotifyPageDown |
222 // 133: Stop loading deprecated chromeos_login.cc functions. | 222 // 133: Stop loading deprecated chromeos_login.cc functions. |
223 // 134: Added CryptohomeAsyncSetOwnerUser. | 223 // 134: Added CryptohomeAsyncSetOwnerUser. |
224 // 135: Remove deprecated chromeos_login.cc functions. | 224 // 135: Remove deprecated chromeos_login.cc functions. |
| 225 // 136: Added SetNetworkDeviceProperty and ClearNetworkDeviceProperty. |
225 | 226 |
226 namespace chromeos { // NOLINT | 227 namespace chromeos { // NOLINT |
227 | 228 |
228 enum CrosAPIVersion { | 229 enum CrosAPIVersion { |
229 kCrosAPIMinVersion = 133, | 230 kCrosAPIMinVersion = 133, |
230 kCrosAPIVersion = 135 | 231 kCrosAPIVersion = 136 |
231 }; | 232 }; |
232 | 233 |
233 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 234 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
234 extern char const * const kCrosDefaultPath; | 235 extern char const * const kCrosDefaultPath; |
235 | 236 |
236 // |path_to_libcros| is the path to the libcros.so file. | 237 // |path_to_libcros| is the path to the libcros.so file. |
237 // Returns true to indicate success. | 238 // Returns true to indicate success. |
238 // If returns false, |load_error| will contain a string describing the | 239 // If returns false, |load_error| will contain a string describing the |
239 // problem. | 240 // problem. |
240 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 241 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
241 | 242 |
242 // Use to provide a function for passing histogram timing values to Chrome. | 243 // Use to provide a function for passing histogram timing values to Chrome. |
243 typedef void (*LibcrosTimeHistogramFunc)( | 244 typedef void (*LibcrosTimeHistogramFunc)( |
244 const char* name, const base::TimeDelta& delta); | 245 const char* name, const base::TimeDelta& delta); |
245 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); | 246 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); |
246 | 247 |
247 } // namespace chromeos | 248 } // namespace chromeos |
248 | 249 |
249 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 250 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |