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/DocumentSupplementable.h" |
9 #include "core/frame/DeviceSingleWindowEventController.h" | 9 #include "core/frame/DeviceSingleWindowEventController.h" |
10 | 10 |
11 namespace WebCore { | 11 namespace blink { |
12 | 12 |
13 class Event; | 13 class Event; |
14 | 14 |
15 class DeviceLightController FINAL : public NoBaseWillBeGarbageCollectedFinalized
<DeviceLightController>, public DeviceSingleWindowEventController, public Docume
ntSupplement { | 15 class DeviceLightController FINAL : public NoBaseWillBeGarbageCollectedFinalized
<DeviceLightController>, public DeviceSingleWindowEventController, public Docume
ntSupplement { |
16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController); | 16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController); |
17 public: | 17 public: |
18 virtual ~DeviceLightController(); | 18 virtual ~DeviceLightController(); |
19 | 19 |
20 static const char* supplementName(); | 20 static const char* supplementName(); |
21 static DeviceLightController& from(Document&); | 21 static DeviceLightController& from(Document&); |
22 | 22 |
23 private: | 23 private: |
24 explicit DeviceLightController(Document&); | 24 explicit DeviceLightController(Document&); |
25 | 25 |
26 // Inherited from DeviceEventControllerBase. | 26 // Inherited from DeviceEventControllerBase. |
27 virtual void registerWithDispatcher() OVERRIDE; | 27 virtual void registerWithDispatcher() OVERRIDE; |
28 virtual void unregisterWithDispatcher() OVERRIDE; | 28 virtual void unregisterWithDispatcher() OVERRIDE; |
29 virtual bool hasLastData() OVERRIDE; | 29 virtual bool hasLastData() OVERRIDE; |
30 | 30 |
31 // Inherited from DeviceSingleWindowEventController. | 31 // Inherited from DeviceSingleWindowEventController. |
32 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; | 32 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; |
33 virtual const AtomicString& eventTypeName() const OVERRIDE; | 33 virtual const AtomicString& eventTypeName() const OVERRIDE; |
34 virtual bool isNullEvent(Event*) const OVERRIDE; | 34 virtual bool isNullEvent(Event*) const OVERRIDE; |
35 }; | 35 }; |
36 | 36 |
37 } // namespace WebCore | 37 } // namespace blink |
38 | 38 |
39 #endif // DeviceLightController_h | 39 #endif // DeviceLightController_h |
OLD | NEW |