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

Side by Side Diff: device/vr/vr_device.h

Issue 2499793002: Refactoring how WebVR eye bounds are handled (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 unified diff | Download patch
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 DEVICE_VR_VR_DEVICE_H 5 #ifndef DEVICE_VR_VR_DEVICE_H
6 #define DEVICE_VR_VR_DEVICE_H 6 #define DEVICE_VR_VR_DEVICE_H
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/vr/vr_export.h" 9 #include "device/vr/vr_export.h"
10 #include "device/vr/vr_service.mojom.h" 10 #include "device/vr/vr_service.mojom.h"
(...skipping 20 matching lines...) Expand all
31 31
32 unsigned int id() const { return id_; } 32 unsigned int id() const { return id_; }
33 33
34 virtual mojom::VRDisplayInfoPtr GetVRDevice() = 0; 34 virtual mojom::VRDisplayInfoPtr GetVRDevice() = 0;
35 virtual mojom::VRPosePtr GetPose() = 0; 35 virtual mojom::VRPosePtr GetPose() = 0;
36 virtual void ResetPose() = 0; 36 virtual void ResetPose() = 0;
37 37
38 virtual bool RequestPresent(bool secure_origin) = 0; 38 virtual bool RequestPresent(bool secure_origin) = 0;
39 virtual void ExitPresent() = 0; 39 virtual void ExitPresent() = 0;
40 virtual void SubmitFrame(mojom::VRPosePtr pose) = 0; 40 virtual void SubmitFrame(mojom::VRPosePtr pose) = 0;
41 virtual void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, 41 virtual void UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds,
42 mojom::VRLayerBoundsPtr rightBounds) = 0; 42 mojom::VRLayerBoundsPtr right_bounds) = 0;
43 43
44 virtual void AddService(VRServiceImpl* service); 44 virtual void AddService(VRServiceImpl* service);
45 virtual void RemoveService(VRServiceImpl* service); 45 virtual void RemoveService(VRServiceImpl* service);
46 46
47 // TODO(shaobo.yan@intel.com): Checks should be done against VRDisplayImpl and 47 // TODO(shaobo.yan@intel.com): Checks should be done against VRDisplayImpl and
48 // the name should be considered. 48 // the name should be considered.
49 virtual bool IsAccessAllowed(VRServiceImpl* service); 49 virtual bool IsAccessAllowed(VRServiceImpl* service);
50 virtual bool IsPresentingService(VRServiceImpl* service); 50 virtual bool IsPresentingService(VRServiceImpl* service);
51 51
52 virtual void OnDisplayChanged(); 52 virtual void OnDisplayChanged();
(...skipping 20 matching lines...) Expand all
73 unsigned int id_; 73 unsigned int id_;
74 74
75 static unsigned int next_id_; 75 static unsigned int next_id_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(VRDevice); 77 DISALLOW_COPY_AND_ASSIGN(VRDevice);
78 }; 78 };
79 79
80 } // namespace device 80 } // namespace device
81 81
82 #endif // DEVICE_VR_VR_DEVICE_H 82 #endif // DEVICE_VR_VR_DEVICE_H
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698