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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // the obsoleted variable hasn't been used for over a month. | 94 // the obsoleted variable hasn't been used for over a month. |
95 // ScreenLock API is also added in this version. | 95 // ScreenLock API is also added in this version. |
96 // 31: Added NotifyScreenUnlockRequested, and obsoleted NotifyScreenUnlocked. | 96 // 31: Added NotifyScreenUnlockRequested, and obsoleted NotifyScreenUnlocked. |
97 // Added new ScreenLockState argument to ScreenLockMonitor callback. | 97 // Added new ScreenLockState argument to ScreenLockMonitor callback. |
98 // 32: Added orientation information to InputMethodLookupTable. | 98 // 32: Added orientation information to InputMethodLookupTable. |
99 // 33: Added NotifyScreenLockRequested. | 99 // 33: Added NotifyScreenLockRequested. |
100 // Renamed ScreenLockState to ScreenLockEvent | 100 // Renamed ScreenLockState to ScreenLockEvent |
101 // 34: Added GetSystemInfo. Logs returned by GetSystemInfo are consumed by | 101 // 34: Added GetSystemInfo. Logs returned by GetSystemInfo are consumed by |
102 // the bug report dialog when submitting user feedback to Google Feedback | 102 // the bug report dialog when submitting user feedback to Google Feedback |
103 // 35: Removed deprecated methods for input method (see v28). | 103 // 35: Removed deprecated methods for input method (see v28). |
| 104 // 36: Fix crashing but with device_path set to unknown. |
104 | 105 |
105 namespace chromeos { // NOLINT | 106 namespace chromeos { // NOLINT |
106 | 107 |
107 enum CrosAPIVersion { | 108 enum CrosAPIVersion { |
108 kCrosAPIMinVersion = 29, | 109 kCrosAPIMinVersion = 29, |
109 kCrosAPIVersion = 35 | 110 kCrosAPIVersion = 36 |
110 }; | 111 }; |
111 | 112 |
112 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 113 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
113 extern char const * const kCrosDefaultPath; | 114 extern char const * const kCrosDefaultPath; |
114 | 115 |
115 // |path_to_libcros| is the path to the libcros.so file. | 116 // |path_to_libcros| is the path to the libcros.so file. |
116 // Returns true to indicate success. | 117 // Returns true to indicate success. |
117 // If returns false, |load_error| will contain a string describing the | 118 // If returns false, |load_error| will contain a string describing the |
118 // problem. | 119 // problem. |
119 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 120 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
120 | 121 |
121 } // namespace chromeos | 122 } // namespace chromeos |
122 | 123 |
123 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 124 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |