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

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

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase after r169270 Created 6 years, 9 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/DocumentSupplementable.h"
9 #include "core/events/Event.h"
10 #include "core/frame/DOMWindowLifecycleObserver.h"
11 #include "core/frame/DeviceSensorEventController.h"
12 #include "modules/device_light/DeviceLightEvent.h"
13
14
abarth-chromium 2014/03/18 22:48:53 You've got an extra line here.
riju_ 2014/03/19 12:28:13 Done.
15 namespace WebCore {
16
17 class DOMWindow;
18
19 class DeviceLightController FINAL : public DeviceSensorEventController, public D ocumentSupplement, public DOMWindowLifecycleObserver {
20
21 public:
22 virtual ~DeviceLightController();
23
24 static const char* supplementName();
25 static DeviceLightController& from(Document&);
26
27 void didChangeDeviceLight(double);
28
29 private:
30 explicit DeviceLightController(Document&);
31 virtual void registerWithDispatcher() OVERRIDE;
32 virtual void unregisterWithDispatcher() OVERRIDE;
33
34 // Inherited from DOMWindowLifecycleObserver.
35 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
36 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID E;
37 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
38
39 virtual bool hasLastData() OVERRIDE;
40 virtual PassRefPtr<Event> getLastEvent() OVERRIDE;
41 virtual bool isNullEvent(Event*) OVERRIDE;
42 };
43
44 } // namespace WebCore
45
46 #endif // DeviceLightController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698