| Index: Source/modules/device_light/DeviceLightController.h
|
| diff --git a/Source/modules/device_light/DeviceLightController.h b/Source/modules/device_light/DeviceLightController.h
|
| index 5ddfeec6fe567e6320bb74901a8fbcc6b2c6431e..ed537288994ebe6900ae7d34ad77a02794b5bfdb 100644
|
| --- a/Source/modules/device_light/DeviceLightController.h
|
| +++ b/Source/modules/device_light/DeviceLightController.h
|
| @@ -6,14 +6,15 @@
|
| #define DeviceLightController_h
|
|
|
| #include "core/dom/DocumentSupplementable.h"
|
| -#include "core/frame/DeviceSingleWindowEventController.h"
|
| +#include "core/frame/DOMWindowLifecycleObserver.h"
|
| +#include "core/frame/DeviceSensorEventController.h"
|
| +#include "modules/EventModules.h"
|
|
|
| namespace WebCore {
|
|
|
| class DOMWindow;
|
| -class Event;
|
|
|
| -class DeviceLightController FINAL : public NoBaseWillBeGarbageCollectedFinalized<DeviceLightController>, public DeviceSingleWindowEventController, public DocumentSupplement {
|
| +class DeviceLightController FINAL : public NoBaseWillBeGarbageCollectedFinalized<DeviceLightController>, public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController);
|
| public:
|
| virtual ~DeviceLightController();
|
| @@ -21,18 +22,24 @@
|
| static const char* supplementName();
|
| static DeviceLightController& from(Document&);
|
|
|
| + void didChangeDeviceLight(double);
|
| +
|
| private:
|
| explicit DeviceLightController(Document&);
|
| -
|
| - // Inherited from DeviceEventControllerBase.
|
| virtual void registerWithDispatcher() OVERRIDE;
|
| virtual void unregisterWithDispatcher() OVERRIDE;
|
| +
|
| + // Inherited from DOMWindowLifecycleObserver.
|
| + virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
|
| + virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
|
| + virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
|
| +
|
| virtual bool hasLastData() OVERRIDE;
|
| + virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE;
|
| + virtual bool isNullEvent(Event*) OVERRIDE;
|
| + virtual Document* document() OVERRIDE;
|
|
|
| - // Inherited from DeviceSingleWindowEventController.
|
| - virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE;
|
| - virtual const AtomicString& eventTypeName() const OVERRIDE;
|
| - virtual bool isNullEvent(Event*) const OVERRIDE;
|
| + Document& m_document;
|
| };
|
|
|
| } // namespace WebCore
|
|
|