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

Unified Diff: Source/modules/devicelight/DeviceLightController.h

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: DeviceLight API working fine (make the flag back to status=experimental) Created 6 years, 10 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: Source/modules/devicelight/DeviceLightController.h
diff --git a/Source/modules/device_orientation/DeviceMotionController.h b/Source/modules/devicelight/DeviceLightController.h
similarity index 79%
copy from Source/modules/device_orientation/DeviceMotionController.h
copy to Source/modules/devicelight/DeviceLightController.h
index 10915c22bbb0b221dde9f4586147a8d031807927..eafde096f617c5dce1eaef83d82426137ea25a7f 100644
--- a/Source/modules/device_orientation/DeviceMotionController.h
+++ b/Source/modules/devicelight/DeviceLightController.h
@@ -1,6 +1,5 @@
/*
- * Copyright 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2012 Samsung Electronics. All rights reserved.
+ * Copyright (C) 2014 Intel Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -24,31 +23,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceMotionController_h
-#define DeviceMotionController_h
+#ifndef DeviceLightController_h
+#define DeviceLightController_h
#include "core/dom/DocumentSupplementable.h"
#include "core/events/Event.h"
#include "core/frame/DOMWindowLifecycleObserver.h"
#include "modules/device_orientation/DeviceSensorEventController.h"
+#include "modules/devicelight/DeviceLightEvent.h"
namespace WebCore {
-class DeviceMotionData;
class DOMWindow;
-class DeviceMotionController FINAL : public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
+class DeviceLightController FINAL : public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
public:
- virtual ~DeviceMotionController();
+ virtual ~DeviceLightController();
static const char* supplementName();
- static DeviceMotionController& from(Document&);
+ static DeviceLightController& from(Document&);
- void didChangeDeviceMotion(DeviceMotionData*);
+ void didChangeDeviceLight(double);
private:
- explicit DeviceMotionController(Document&);
+ explicit DeviceLightController(Document&);
virtual void registerWithDispatcher() OVERRIDE;
virtual void unregisterWithDispatcher() OVERRIDE;
@@ -64,4 +63,4 @@ private:
} // namespace WebCore
-#endif // DeviceMotionController_h
+#endif // DeviceLightController_h

Powered by Google App Engine
This is Rietveld 408576698