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

Side by Side Diff: device/vr/android/gvr/gvr_device.h

Issue 2746233002: Fixes 2D-to-WebVR site transitions when browsing in VR. (Closed)
Patch Set: Fixed export Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | device/vr/android/gvr/gvr_device.cc » ('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 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 DEVICE_VR_ANDROID_GVR_DEVICE_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_H 6 #define DEVICE_VR_ANDROID_GVR_DEVICE_H
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/vr/vr_device.h" 9 #include "device/vr/vr_device.h"
10 10
11 namespace device { 11 namespace device {
12 12
13 class GvrDeviceProvider; 13 class GvrDeviceProvider;
14 class GvrDelegate; 14 class GvrDelegate;
15 15
16 class DEVICE_VR_EXPORT GvrDevice : public VRDevice { 16 class DEVICE_VR_EXPORT GvrDevice : public VRDevice {
17 public: 17 public:
18 GvrDevice(GvrDeviceProvider* provider); 18 GvrDevice(GvrDeviceProvider* provider);
19 ~GvrDevice() override; 19 ~GvrDevice() override;
20 20
21 // VRDevice 21 // VRDevice
22 void GetVRDevice( 22 void CreateVRDisplayInfo(
23 const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) override; 23 const base::Callback<void(mojom::VRDisplayInfoPtr)>& on_created) override;
24 void ResetPose() override; 24 void ResetPose() override;
25 25
26 void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client, 26 void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client,
27 const base::Callback<void(bool)>& callback) override; 27 const base::Callback<void(bool)>& callback) override;
28 void SetSecureOrigin(bool secure_origin) override; 28 void SetSecureOrigin(bool secure_origin) override;
29 void ExitPresent() override; 29 void ExitPresent() override;
30 30
31 void SubmitFrame(int16_t frame_index, 31 void SubmitFrame(int16_t frame_index,
32 const gpu::MailboxHolder& mailbox) override; 32 const gpu::MailboxHolder& mailbox) override;
33 void UpdateLayerBounds(int16_t frame_index, 33 void UpdateLayerBounds(int16_t frame_index,
34 mojom::VRLayerBoundsPtr left_bounds, 34 mojom::VRLayerBoundsPtr left_bounds,
35 mojom::VRLayerBoundsPtr right_bounds, 35 mojom::VRLayerBoundsPtr right_bounds,
36 int16_t source_width, 36 int16_t source_width,
37 int16_t source_height) override; 37 int16_t source_height) override;
38 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 38 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
39 void OnDelegateChanged(); 39 void OnDelegateChanged();
40 40
41 private: 41 private:
42 GvrDelegate* GetGvrDelegate(); 42 GvrDelegate* GetGvrDelegate();
43 43
44 GvrDeviceProvider* gvr_provider_; 44 GvrDeviceProvider* gvr_provider_;
45 bool secure_origin_ = false; 45 bool secure_origin_ = false;
46 46
47 DISALLOW_COPY_AND_ASSIGN(GvrDevice); 47 DISALLOW_COPY_AND_ASSIGN(GvrDevice);
48 }; 48 };
49 49
50 } // namespace device 50 } // namespace device
51 51
52 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H 52 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H
OLDNEW
« no previous file with comments | « no previous file | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698