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 blink { | 11 namespace blink { |
12 | 12 |
13 class Event; | 13 class Event; |
14 | 14 |
15 class DeviceLightController FINAL : public DeviceSingleWindowEventController, pu
blic DocumentSupplement { | 15 class DeviceLightController final : public DeviceSingleWindowEventController, pu
blic DocumentSupplement { |
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 virtual void trace(Visitor*) OVERRIDE; | 23 virtual void trace(Visitor*) override; |
24 | 24 |
25 private: | 25 private: |
26 explicit DeviceLightController(Document&); | 26 explicit DeviceLightController(Document&); |
27 | 27 |
28 // Inherited from DeviceEventControllerBase. | 28 // Inherited from DeviceEventControllerBase. |
29 virtual void registerWithDispatcher() OVERRIDE; | 29 virtual void registerWithDispatcher() override; |
30 virtual void unregisterWithDispatcher() OVERRIDE; | 30 virtual void unregisterWithDispatcher() override; |
31 virtual bool hasLastData() OVERRIDE; | 31 virtual bool hasLastData() override; |
32 | 32 |
33 // Inherited from DeviceSingleWindowEventController. | 33 // Inherited from DeviceSingleWindowEventController. |
34 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; | 34 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const override; |
35 virtual const AtomicString& eventTypeName() const OVERRIDE; | 35 virtual const AtomicString& eventTypeName() const override; |
36 virtual bool isNullEvent(Event*) const OVERRIDE; | 36 virtual bool isNullEvent(Event*) const override; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace blink | 39 } // namespace blink |
40 | 40 |
41 #endif // DeviceLightController_h | 41 #endif // DeviceLightController_h |
OLD | NEW |