Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/WebKit/Source/modules/device_light/DeviceLightController.h

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698