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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // 121: Added MonitorSMS and DisconnectSMSMonitor | 206 // 121: Added MonitorSMS and DisconnectSMSMonitor |
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 // 125: Fix Store/RetrievePolicy. No one's using these yet, so change is ok. | 212 // 125: Fix Store/RetrievePolicy. No one's using these yet, so change is ok. |
213 // 126: Added RequestPin, EnterPin, UnblockPin, ChangePin, MonitorNetworkDevice | 213 // 126: Added RequestPin, EnterPin, UnblockPin, ChangePin, MonitorNetworkDevice |
214 // 127: Added some properties to chromeos_mount DiskInfo. New interface is | 214 // 127: Added some properties to chromeos_mount DiskInfo. New interface is |
215 // DiskInfoAdvanced | 215 // DiskInfoAdvanced |
| 216 // 128: Removed SetCurrentKeyboardLayoutByName, RemapModifierKeys, |
| 217 // SetAutoRepeatEnabled, SetAutoRepeatRate. |
216 | 218 |
217 namespace chromeos { // NOLINT | 219 namespace chromeos { // NOLINT |
218 | 220 |
219 enum CrosAPIVersion { | 221 enum CrosAPIVersion { |
220 kCrosAPIMinVersion = 110, | 222 kCrosAPIMinVersion = 124, |
221 kCrosAPIVersion = 127 | 223 kCrosAPIVersion = 128 |
222 }; | 224 }; |
223 | 225 |
224 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 226 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
225 extern char const * const kCrosDefaultPath; | 227 extern char const * const kCrosDefaultPath; |
226 | 228 |
227 // |path_to_libcros| is the path to the libcros.so file. | 229 // |path_to_libcros| is the path to the libcros.so file. |
228 // Returns true to indicate success. | 230 // Returns true to indicate success. |
229 // If returns false, |load_error| will contain a string describing the | 231 // If returns false, |load_error| will contain a string describing the |
230 // problem. | 232 // problem. |
231 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 233 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
232 | 234 |
233 // Use to provide a function for passing histogram timing values to Chrome. | 235 // Use to provide a function for passing histogram timing values to Chrome. |
234 typedef void (*LibcrosTimeHistogramFunc)( | 236 typedef void (*LibcrosTimeHistogramFunc)( |
235 const char* name, const base::TimeDelta& delta); | 237 const char* name, const base::TimeDelta& delta); |
236 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); | 238 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func); |
237 | 239 |
238 } // namespace chromeos | 240 } // namespace chromeos |
239 | 241 |
240 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 242 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |