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

Unified Diff: content/renderer/device_light/device_light_event_pump.h

Issue 152893002: [DeviceLight API] Content Side Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in Java file, stop() Created 6 years, 9 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/test/layouttest_support.h ('k') | content/renderer/device_light/device_light_event_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/device_light/device_light_event_pump.h
diff --git a/content/renderer/device_orientation/device_motion_event_pump.h b/content/renderer/device_light/device_light_event_pump.h
similarity index 51%
copy from content/renderer/device_orientation/device_motion_event_pump.h
copy to content/renderer/device_light/device_light_event_pump.h
index f262ad42685f4cb290296ab3e0f4f20118387676..8dd25845ee087128c9f6590d4c46dc5d4cf78c36 100644
--- a/content/renderer/device_orientation/device_motion_event_pump.h
+++ b/content/renderer/device_light/device_light_event_pump.h
@@ -1,33 +1,32 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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.
-#ifndef CONTENT_RENDERER_DEVICE_MOTION_EVENT_PUMP_H_
-#define CONTENT_RENDERER_DEVICE_MOTION_EVENT_PUMP_H_
+#ifndef CONTENT_RENDERER_DEVICE_LIGHT_DEVICE_LIGHT_EVENT_PUMP_H_
+#define CONTENT_RENDERER_DEVICE_LIGHT_DEVICE_LIGHT_EVENT_PUMP_H_
#include "base/memory/scoped_ptr.h"
#include "content/renderer/device_orientation/device_sensor_event_pump.h"
#include "content/renderer/shared_memory_seqlock_reader.h"
-#include "third_party/WebKit/public/platform/WebDeviceMotionData.h"
namespace blink {
-class WebDeviceMotionListener;
+class WebDeviceLightListener;
}
namespace content {
-typedef SharedMemorySeqLockReader<blink::WebDeviceMotionData>
- DeviceMotionSharedMemoryReader;
+typedef SharedMemorySeqLockReader<double>
+ DeviceLightSharedMemoryReader;
-class CONTENT_EXPORT DeviceMotionEventPump : public DeviceSensorEventPump {
+class CONTENT_EXPORT DeviceLightEventPump : public DeviceSensorEventPump {
public:
- DeviceMotionEventPump();
- explicit DeviceMotionEventPump(int pump_delay_millis);
- virtual ~DeviceMotionEventPump();
+ DeviceLightEventPump();
+ explicit DeviceLightEventPump(int pump_delay_millis);
+ virtual ~DeviceLightEventPump();
// Sets the listener to receive updates for device motion data at
// regular intervals. Returns true if the registration was successful.
- bool SetListener(blink::WebDeviceMotionListener* listener);
+ bool SetListener(blink::WebDeviceLightListener* listener);
// RenderProcessObserver implementation.
virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -38,10 +37,10 @@ class CONTENT_EXPORT DeviceMotionEventPump : public DeviceSensorEventPump {
virtual bool SendStartMessage() OVERRIDE;
virtual bool SendStopMessage() OVERRIDE;
- blink::WebDeviceMotionListener* listener_;
- scoped_ptr<DeviceMotionSharedMemoryReader> reader_;
+ blink::WebDeviceLightListener* listener_;
+ scoped_ptr<DeviceLightSharedMemoryReader> reader_;
};
} // namespace content
-#endif // CONTENT_RENDERER_DEVICE_MOTION_EVENT_PUMP_H_
+#endif // CONTENT_RENDERER_DEVICE_LIGHT_DEVICE_LIGHT_EVENT_PUMP_H_
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/device_light/device_light_event_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698