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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.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
Index: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index 43ddceaf2cbd1d7215897904ad4a77c64292b540..28b31111a23535d0e250c01d008afadfdd8995f3 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -35,6 +35,7 @@ class WebScreenOrientationListener;
}
namespace content {
+class DeviceLightEventPump;
class DeviceMotionEventPump;
class DeviceOrientationEventPump;
class QuotaMessageFilter;
@@ -133,6 +134,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
virtual blink::WebCompositorSupport* compositorSupport();
virtual blink::WebString convertIDNToUnicode(
const blink::WebString& host, const blink::WebString& languages);
+ virtual void setDeviceLightListener(
+ blink::WebDeviceLightListener* listener) OVERRIDE;
virtual void setDeviceMotionListener(
blink::WebDeviceMotionListener* listener) OVERRIDE;
virtual void setDeviceOrientationListener(
@@ -168,6 +171,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
// a listener has been set via setGamepadListener.
static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
+ // Set WebDeviceLightData to return when setDeviceLightListener is invoked.
+ static void SetMockDeviceLightDataForTesting(
+ const double& data);
// Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
static void SetMockDeviceMotionDataForTesting(
const blink::WebDeviceMotionData& data);
@@ -213,6 +219,7 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
WebPublicSuffixListImpl public_suffix_list_;
+ scoped_ptr<DeviceLightEventPump> device_light_event_pump_;
scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_;
« no previous file with comments | « content/renderer/device_light/device_light_event_pump.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698