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

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

Issue 2823753002: Remove device light API
Patch Set: Restore DeviceLightEvent to LayoutTests/external/wpt/dom/nodes/Document-createEvent.html Created 3 years, 8 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