Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 VRDisplayEvent_h | |
| 6 #define VRDisplayEvent_h | |
| 7 | |
| 8 #include "device/vr/vr_service.mojom-blink.h" | |
|
haraken
2016/08/23 00:51:29
It's unused.
| |
| 9 #include "modules/EventModules.h" | |
| 10 #include "modules/vr/VRDisplay.h" | |
| 11 #include "modules/vr/VRDisplayEventInit.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class VRDisplayEvent final : public Event { | |
| 16 DEFINE_WRAPPERTYPEINFO(); | |
| 17 public: | |
| 18 static VRDisplayEvent* create() | |
| 19 { | |
| 20 return new VRDisplayEvent; | |
| 21 } | |
| 22 static VRDisplayEvent* create(const AtomicString& type, bool canBubble, bool cancelable, VRDisplay* display, String reason) | |
| 23 { | |
| 24 return new VRDisplayEvent(type, canBubble, cancelable, display, reason); | |
| 25 } | |
| 26 static VRDisplayEvent* create(const AtomicString& type, const VRDisplayEvent Init& initializer) | |
| 27 { | |
| 28 return new VRDisplayEvent(type, initializer); | |
| 29 } | |
| 30 | |
| 31 ~VRDisplayEvent() override; | |
| 32 | |
| 33 VRDisplay* display() const { return m_display.get(); } | |
| 34 const String& reason() const { return m_reason; } | |
| 35 | |
| 36 const AtomicString& interfaceName() const override; | |
| 37 | |
| 38 DECLARE_VIRTUAL_TRACE(); | |
| 39 | |
| 40 private: | |
| 41 VRDisplayEvent(); | |
| 42 VRDisplayEvent(const AtomicString& type, bool canBubble, bool cancelable, VR Display*, String); | |
| 43 VRDisplayEvent(const AtomicString&, const VRDisplayEventInit&); | |
| 44 | |
| 45 Member<VRDisplay> m_display; | |
| 46 String m_reason; | |
| 47 }; | |
| 48 | |
| 49 } // namespace blink | |
| 50 | |
| 51 #endif // VRDisplayEvent_h | |
| OLD | NEW |