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

Side by Side Diff: content/browser/device_sensors/ambient_light_mac.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium 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 CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
6 #define CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_ 6 #define CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
7 7
8 #include <IOKit/IOKitLib.h> 8 #include <IOKit/IOKitLib.h>
9 #include <stdint.h>
9 10
11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 // Provides an interface to retrieve ambient light data from MacBooks. 16 // Provides an interface to retrieve ambient light data from MacBooks.
15 class AmbientLightSensor { 17 class AmbientLightSensor {
16 public: 18 public:
17 // Create AmbientLightSensor object, return NULL if no valid is sensor found. 19 // Create AmbientLightSensor object, return NULL if no valid is sensor found.
18 static scoped_ptr<AmbientLightSensor> Create(); 20 static scoped_ptr<AmbientLightSensor> Create();
19 21
(...skipping 11 matching lines...) Expand all
31 33
32 // IOKit connection to the local sensor. 34 // IOKit connection to the local sensor.
33 io_connect_t io_connection_; 35 io_connect_t io_connection_;
34 36
35 DISALLOW_COPY_AND_ASSIGN(AmbientLightSensor); 37 DISALLOW_COPY_AND_ASSIGN(AmbientLightSensor);
36 }; 38 };
37 39
38 } // namespace content 40 } // namespace content
39 41
40 #endif // CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_ 42 #endif // CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/device_monitor_udev.cc ('k') | content/browser/device_sensors/data_fetcher_shared_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698