Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: chromeos_cros_api.h

Issue 5640003: libcros: Watch for display brightness changes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cros.git@master
Patch Set: update comment Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos_brightness.cc ('k') | load.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // 79: Added RequestRestart to power library. 153 // 79: Added RequestRestart to power library.
154 // 80: Added a context parameter to GetSystemLogs 154 // 80: Added a context parameter to GetSystemLogs
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 164
164 namespace chromeos { // NOLINT 165 namespace chromeos { // NOLINT
165 166
166 enum CrosAPIVersion { 167 enum CrosAPIVersion {
167 kCrosAPIMinVersion = 83, 168 kCrosAPIMinVersion = 83,
168 kCrosAPIVersion = 87 169 kCrosAPIVersion = 88
169 }; 170 };
170 171
171 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" 172 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so"
172 extern char const * const kCrosDefaultPath; 173 extern char const * const kCrosDefaultPath;
173 174
174 // |path_to_libcros| is the path to the libcros.so file. 175 // |path_to_libcros| is the path to the libcros.so file.
175 // Returns true to indicate success. 176 // Returns true to indicate success.
176 // If returns false, |load_error| will contain a string describing the 177 // If returns false, |load_error| will contain a string describing the
177 // problem. 178 // problem.
178 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); 179 bool LoadLibcros(const char* path_to_libcros, std::string& load_error);
179 180
180 } // namespace chromeos 181 } // namespace chromeos
181 182
182 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ 183 #endif /* CHROMEOS_CROS_API_VERSION_H_ */
OLDNEW
« no previous file with comments | « chromeos_brightness.cc ('k') | load.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698