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

Unified Diff: content/public/browser/sensor_manager_delegate_chromeos.cc

Issue 680383007: DeviceOrientation API on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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/public/browser/sensor_manager_delegate_chromeos.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/sensor_manager_delegate_chromeos.cc
diff --git a/content/public/browser/sensor_manager_delegate_chromeos.cc b/content/public/browser/sensor_manager_delegate_chromeos.cc
new file mode 100644
index 0000000000000000000000000000000000000000..343223fa146d32e2ee94ffaa29dca76bc86881b0
--- /dev/null
+++ b/content/public/browser/sensor_manager_delegate_chromeos.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 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.
+
+#include "content/public/browser/sensor_manager_delegate_chromeos.h"
+
+#include "content/browser/device_sensors/sensor_manager_chromeos.h"
+
+namespace content {
+
+SensorManagerDelegateChromeOS::SensorManagerDelegateChromeOS() {
+}
+
+SensorManagerDelegateChromeOS::~SensorManagerDelegateChromeOS() {
+}
+
+// static
+void SensorManagerDelegateChromeOS::SetDelegate(
+ SensorManagerDelegateChromeOS* delegate) {
+ // TODO(jonross): Once accelerometer reading has been moved to
+ // content/browser/device_sensors/ remove this delegate. Instead have
+ // content/public/browser expose an observer for ChromeOS. crbug.com/431865
+ SensorManagerChromeOS::GetInstance()->SetDelegate(delegate);
+}
+
+} // namespace content
« no previous file with comments | « content/public/browser/sensor_manager_delegate_chromeos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698