| 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();
|
|
|