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

Side by Side Diff: third_party/WebKit/Source/modules/device_light/DeviceLightEvent.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 DeviceLightEvent_h
6 #define DeviceLightEvent_h
7
8 #include "modules/EventModules.h"
9 #include "modules/device_light/DeviceLightEventInit.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class DeviceLightEvent final : public Event {
15 DEFINE_WRAPPERTYPEINFO();
16
17 public:
18 ~DeviceLightEvent() override;
19
20 static DeviceLightEvent* Create(const AtomicString& event_type,
21 double value) {
22 return new DeviceLightEvent(event_type, value);
23 }
24 static DeviceLightEvent* Create(const AtomicString& event_type,
25 const DeviceLightEventInit& initializer) {
26 return new DeviceLightEvent(event_type, initializer);
27 }
28
29 double value() const { return value_; }
30
31 const AtomicString& InterfaceName() const override;
32
33 private:
34 DeviceLightEvent(const AtomicString& event_type, double value);
35 DeviceLightEvent(const AtomicString& event_type,
36 const DeviceLightEventInit& initializer);
37
38 double value_;
39 };
40
41 DEFINE_TYPE_CASTS(DeviceLightEvent,
42 Event,
43 event,
44 event->InterfaceName() == EventNames::DeviceLightEvent,
45 event.InterfaceName() == EventNames::DeviceLightEvent);
46
47 } // namespace blink
48
49 #endif // DeviceLightEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698