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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplayEvent.h

Issue 2265053004: Adding WebVR temporary presentation handling on mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698