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

Unified Diff: device/vr/vr_device.h

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « device/vr/test/fake_vr_device.cc ('k') | device/vr/vr_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.h
diff --git a/device/vr/vr_device.h b/device/vr/vr_device.h
index 81bbf5e564a8ae7731e9abcfed6fec49f79c64fd..e5c56182f67de34dea11811f25d6224586cbdf92 100644
--- a/device/vr/vr_device.h
+++ b/device/vr/vr_device.h
@@ -19,7 +19,6 @@ class BaseWindow;
namespace device {
-class VRDeviceProvider;
class VRDisplayImpl;
class VRServiceImpl;
@@ -27,10 +26,9 @@ const unsigned int VR_DEVICE_LAST_ID = 0xFFFFFFFF;
class DEVICE_VR_EXPORT VRDevice {
public:
- explicit VRDevice(VRDeviceProvider* provider);
+ VRDevice();
virtual ~VRDevice();
- VRDeviceProvider* provider() const { return provider_; }
unsigned int id() const { return id_; }
virtual mojom::VRDisplayInfoPtr GetVRDevice() = 0;
@@ -54,6 +52,8 @@ class DEVICE_VR_EXPORT VRDevice {
virtual void OnDisplayChanged();
virtual void OnExitPresent(VRServiceImpl* service);
+ virtual void OnDisplayBlur();
+ virtual void OnDisplayFocus();
protected:
// Each Service have one VRDisplay with one VRDevice.
@@ -67,7 +67,6 @@ class DEVICE_VR_EXPORT VRDevice {
VRServiceImpl* presenting_service_;
private:
- VRDeviceProvider* provider_;
unsigned int id_;
static unsigned int next_id_;
« no previous file with comments | « device/vr/test/fake_vr_device.cc ('k') | device/vr/vr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698