OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef DeviceLightController_h | |
6 #define DeviceLightController_h | |
7 | |
8 #include "core/dom/Document.h" | |
9 #include "core/frame/DeviceSingleWindowEventController.h" | |
10 #include "modules/ModulesExport.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class Event; | |
15 | |
16 class MODULES_EXPORT DeviceLightController final | |
17 : public DeviceSingleWindowEventController, | |
18 public Supplement<Document> { | |
19 USING_GARBAGE_COLLECTED_MIXIN(DeviceLightController); | |
20 | |
21 public: | |
22 ~DeviceLightController() override; | |
23 | |
24 static const char* SupplementName(); | |
25 static DeviceLightController& From(Document&); | |
26 | |
27 DECLARE_VIRTUAL_TRACE(); | |
28 | |
29 private: | |
30 explicit DeviceLightController(Document&); | |
31 | |
32 // Inherited from DeviceEventControllerBase. | |
33 void RegisterWithDispatcher() override; | |
34 void UnregisterWithDispatcher() override; | |
35 bool HasLastData() override; | |
36 | |
37 // Inherited from DeviceSingleWindowEventController. | |
38 Event* LastEvent() const override; | |
39 const AtomicString& EventTypeName() const override; | |
40 bool IsNullEvent(Event*) const override; | |
41 }; | |
42 | |
43 } // namespace blink | |
44 | |
45 #endif // DeviceLightController_h | |
OLD | NEW |