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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VRDisplay_h 5 #ifndef VRDisplay_h
6 #define VRDisplay_h 6 #define VRDisplay_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/FrameRequestCallback.h" 9 #include "core/dom/FrameRequestCallback.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 21 matching lines...) Expand all
32 class VREyeParameters; 32 class VREyeParameters;
33 class VRFrameData; 33 class VRFrameData;
34 class VRStageParameters; 34 class VRStageParameters;
35 class VRPose; 35 class VRPose;
36 36
37 class WebGLRenderingContextBase; 37 class WebGLRenderingContextBase;
38 38
39 enum VREye { VREyeNone, VREyeLeft, VREyeRight }; 39 enum VREye { VREyeNone, VREyeLeft, VREyeRight };
40 40
41 class VRDisplay final : public EventTargetWithInlineData, 41 class VRDisplay final : public EventTargetWithInlineData,
42 public ActiveScriptWrappable, 42 public ActiveScriptWrappable<VRDisplay>,
43 public ContextLifecycleObserver, 43 public ContextLifecycleObserver,
44 public device::mojom::blink::VRDisplayClient { 44 public device::mojom::blink::VRDisplayClient {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 USING_GARBAGE_COLLECTED_MIXIN(VRDisplay); 46 USING_GARBAGE_COLLECTED_MIXIN(VRDisplay);
47 USING_PRE_FINALIZER(VRDisplay, dispose); 47 USING_PRE_FINALIZER(VRDisplay, dispose);
48 48
49 public: 49 public:
50 ~VRDisplay(); 50 ~VRDisplay();
51 51
52 unsigned displayId() const { return m_displayId; } 52 unsigned displayId() const { return m_displayId; }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ServiceInactive = 11, 187 ServiceInactive = 11,
188 RequestDenied = 12, 188 RequestDenied = 12,
189 PresentationResultMax, // Must be last member of enum. 189 PresentationResultMax, // Must be last member of enum.
190 }; 190 };
191 191
192 void ReportPresentationResult(PresentationResult); 192 void ReportPresentationResult(PresentationResult);
193 193
194 } // namespace blink 194 } // namespace blink
195 195
196 #endif // VRDisplay_h 196 #endif // VRDisplay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698