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

Unified Diff: content/browser/device_sensors/ambient_light_mac.h

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/device_sensors/DEPS ('k') | content/browser/device_sensors/ambient_light_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/ambient_light_mac.h
diff --git a/content/browser/device_sensors/ambient_light_mac.h b/content/browser/device_sensors/ambient_light_mac.h
deleted file mode 100644
index 6d4af75ce80c20c828a86d0708ec7799cb3a09b2..0000000000000000000000000000000000000000
--- a/content/browser/device_sensors/ambient_light_mac.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
-#define CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
-
-#include <IOKit/IOKitLib.h>
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/macros.h"
-
-namespace content {
-
-// Provides an interface to retrieve ambient light data from MacBooks.
-class AmbientLightSensor {
- public:
- // Create AmbientLightSensor object, return NULL if no valid is sensor found.
- static std::unique_ptr<AmbientLightSensor> Create();
-
- ~AmbientLightSensor();
-
- // Retrieve lux values from Ambient Light Sensor.
- bool ReadSensorValue(uint64_t lux_value[2]);
-
- private:
- AmbientLightSensor();
-
- // Probe the local hardware looking for Ambient Light sensor and
- // initialize an I/O connection to it.
- bool Init();
-
- // IOKit connection to the local sensor.
- io_connect_t io_connection_;
-
- DISALLOW_COPY_AND_ASSIGN(AmbientLightSensor);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
« no previous file with comments | « content/browser/device_sensors/DEPS ('k') | content/browser/device_sensors/ambient_light_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698