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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2926953002: Fix WebVR so we don't animation when stopped at a JS breakpoint (Closed)
Patch Set: cr feedback Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/vr/VRDisplay.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.h b/third_party/WebKit/Source/modules/vr/VRDisplay.h
index 308ed3ff81c698d2a7ecad77b360dcd8777719d1..87ceae0cf641bed610ba94f0c4f8bb44af1230e9 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -7,6 +7,7 @@
#include "core/dom/Document.h"
#include "core/dom/FrameRequestCallback.h"
+#include "core/dom/SuspendableObject.h"
#include "core/events/EventTarget.h"
#include "device/vr/vr_service.mojom-blink.h"
#include "modules/vr/VRDisplayCapabilities.h"
@@ -39,7 +40,7 @@ enum VREye { kVREyeNone, kVREyeLeft, kVREyeRight };
class VRDisplay final : public EventTargetWithInlineData,
public ActiveScriptWrappable<VRDisplay>,
- public ContextLifecycleObserver,
+ public SuspendableObject,
public device::mojom::blink::VRDisplayClient,
public device::mojom::blink::VRSubmitFrameClient {
DEFINE_WRAPPERTYPEINFO();
@@ -89,6 +90,10 @@ class VRDisplay final : public EventTargetWithInlineData,
// ScriptWrappable implementation.
bool HasPendingActivity() const final;
+ // SuspendableObject:
+ void Suspend() override;
+ void Resume() override;
+
void FocusChanged();
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698