| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 9 |
| 10 // This file defines two version numbers for the CrosAPI. | 10 // This file defines two version numbers for the CrosAPI. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // 81: Added SetTrack and GetTrack to update engine library. | 155 // 81: Added SetTrack and GetTrack to update engine library. |
| 156 // 82: Add *Safe calls for the ownership API, which use memory safely. | 156 // 82: Add *Safe calls for the ownership API, which use memory safely. |
| 157 // 83: Changed CellularDataPlan APIs, which use memory safely | 157 // 83: Changed CellularDataPlan APIs, which use memory safely |
| 158 // 84: Added Connectable property to network services. | 158 // 84: Added Connectable property to network services. |
| 159 // 85: Changed DeviceInfo in network library. | 159 // 85: Changed DeviceInfo in network library. |
| 160 // 86: Deprecated restricted_pool and added connectivity_state in ServiceInfo | 160 // 86: Deprecated restricted_pool and added connectivity_state in ServiceInfo |
| 161 // struct in network library | 161 // struct in network library |
| 162 // 87: Added entd restarting ability. | 162 // 87: Added entd restarting ability. |
| 163 // 88: Added MonitorBrightness and DisconnectBrightness. | 163 // 88: Added MonitorBrightness and DisconnectBrightness. |
| 164 // 89: Added GetCurrentInputMethod. | 164 // 89: Added GetCurrentInputMethod. |
| 165 // 90: Added StopInputMethodProcess. |
| 165 | 166 |
| 166 namespace chromeos { // NOLINT | 167 namespace chromeos { // NOLINT |
| 167 | 168 |
| 168 enum CrosAPIVersion { | 169 enum CrosAPIVersion { |
| 169 kCrosAPIMinVersion = 83, | 170 kCrosAPIMinVersion = 83, |
| 170 kCrosAPIVersion = 89 | 171 kCrosAPIVersion = 90 |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 174 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
| 174 extern char const * const kCrosDefaultPath; | 175 extern char const * const kCrosDefaultPath; |
| 175 | 176 |
| 176 // |path_to_libcros| is the path to the libcros.so file. | 177 // |path_to_libcros| is the path to the libcros.so file. |
| 177 // Returns true to indicate success. | 178 // Returns true to indicate success. |
| 178 // If returns false, |load_error| will contain a string describing the | 179 // If returns false, |load_error| will contain a string describing the |
| 179 // problem. | 180 // problem. |
| 180 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 181 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
| 181 | 182 |
| 182 } // namespace chromeos | 183 } // namespace chromeos |
| 183 | 184 |
| 184 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 185 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
| OLD | NEW |