| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef DeviceLightController_h | 5 #ifndef DeviceLightController_h | 
| 6 #define DeviceLightController_h | 6 #define DeviceLightController_h | 
| 7 | 7 | 
| 8 #include "core/dom/DocumentSupplementable.h" | 8 #include "core/dom/Document.h" | 
| 9 #include "core/frame/DeviceSingleWindowEventController.h" | 9 #include "core/frame/DeviceSingleWindowEventController.h" | 
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" | 
| 11 | 11 | 
| 12 namespace blink { | 12 namespace blink { | 
| 13 | 13 | 
| 14 class Event; | 14 class Event; | 
| 15 | 15 | 
| 16 class MODULES_EXPORT DeviceLightController final : public DeviceSingleWindowEven
    tController, public DocumentSupplement { | 16 class MODULES_EXPORT DeviceLightController final : public DeviceSingleWindowEven
    tController, public WillBeHeapSupplement<Document> { | 
| 17     WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController); | 17     WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController); | 
| 18 public: | 18 public: | 
| 19     virtual ~DeviceLightController(); | 19     virtual ~DeviceLightController(); | 
| 20 | 20 | 
| 21     static const char* supplementName(); | 21     static const char* supplementName(); | 
| 22     static DeviceLightController& from(Document&); | 22     static DeviceLightController& from(Document&); | 
| 23 | 23 | 
| 24     DECLARE_VIRTUAL_TRACE(); | 24     DECLARE_VIRTUAL_TRACE(); | 
| 25 | 25 | 
| 26 private: | 26 private: | 
| 27     explicit DeviceLightController(Document&); | 27     explicit DeviceLightController(Document&); | 
| 28 | 28 | 
| 29     // Inherited from DeviceEventControllerBase. | 29     // Inherited from DeviceEventControllerBase. | 
| 30     virtual void registerWithDispatcher() override; | 30     virtual void registerWithDispatcher() override; | 
| 31     virtual void unregisterWithDispatcher() override; | 31     virtual void unregisterWithDispatcher() override; | 
| 32     virtual bool hasLastData() override; | 32     virtual bool hasLastData() override; | 
| 33 | 33 | 
| 34     // Inherited from DeviceSingleWindowEventController. | 34     // Inherited from DeviceSingleWindowEventController. | 
| 35     virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const override; | 35     virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const override; | 
| 36     virtual const AtomicString& eventTypeName() const override; | 36     virtual const AtomicString& eventTypeName() const override; | 
| 37     virtual bool isNullEvent(Event*) const override; | 37     virtual bool isNullEvent(Event*) const override; | 
| 38 }; | 38 }; | 
| 39 | 39 | 
| 40 } // namespace blink | 40 } // namespace blink | 
| 41 | 41 | 
| 42 #endif // DeviceLightController_h | 42 #endif // DeviceLightController_h | 
| OLD | NEW | 
|---|