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

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

Issue 2777903008: Removed deprecated WebVR functionality (Closed)
Patch Set: Another test re-baseline Created 3 years, 8 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 | « device/vr/vr_device.h ('k') | device/vr/vr_display_impl.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_VR_DISPLAY_IMPL_H 5 #ifndef DEVICE_VR_VR_DISPLAY_IMPL_H
6 #define DEVICE_VR_VR_DISPLAY_IMPL_H 6 #define DEVICE_VR_VR_DISPLAY_IMPL_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 virtual void OnExitPresent(); 35 virtual void OnExitPresent();
36 virtual void OnBlur(); 36 virtual void OnBlur();
37 virtual void OnFocus(); 37 virtual void OnFocus();
38 virtual void OnActivate(mojom::VRDisplayEventReason reason); 38 virtual void OnActivate(mojom::VRDisplayEventReason reason);
39 virtual void OnDeactivate(mojom::VRDisplayEventReason reason); 39 virtual void OnDeactivate(mojom::VRDisplayEventReason reason);
40 40
41 private: 41 private:
42 friend class VRDisplayImplTest; 42 friend class VRDisplayImplTest;
43 friend class VRServiceImpl; 43 friend class VRServiceImpl;
44 44
45 void ResetPose() override;
46
47 void RequestPresent(bool secure_origin, 45 void RequestPresent(bool secure_origin,
48 mojom::VRSubmitFrameClientPtr submit_client, 46 mojom::VRSubmitFrameClientPtr submit_client,
49 const RequestPresentCallback& callback) override; 47 const RequestPresentCallback& callback) override;
50 void ExitPresent() override; 48 void ExitPresent() override;
51 void SubmitFrame(int16_t frame_index, 49 void SubmitFrame(int16_t frame_index,
52 const gpu::MailboxHolder& mailbox) override; 50 const gpu::MailboxHolder& mailbox) override;
53 51
54 void UpdateLayerBounds(int16_t frame_index, 52 void UpdateLayerBounds(int16_t frame_index,
55 mojom::VRLayerBoundsPtr left_bounds, 53 mojom::VRLayerBoundsPtr left_bounds,
56 mojom::VRLayerBoundsPtr right_bounds, 54 mojom::VRLayerBoundsPtr right_bounds,
57 int16_t source_width, 55 int16_t source_width,
58 int16_t source_height) override; 56 int16_t source_height) override;
59 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 57 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
60 58
61 void RequestPresentResult(const RequestPresentCallback& callback, 59 void RequestPresentResult(const RequestPresentCallback& callback,
62 bool secure_origin, 60 bool secure_origin,
63 bool success); 61 bool success);
64 62
65 mojo::Binding<mojom::VRDisplay> binding_; 63 mojo::Binding<mojom::VRDisplay> binding_;
66 mojom::VRDisplayClientPtr client_; 64 mojom::VRDisplayClientPtr client_;
67 device::VRDevice* device_; 65 device::VRDevice* device_;
68 VRServiceImpl* service_; 66 VRServiceImpl* service_;
69 67
70 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_; 68 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_;
71 }; 69 };
72 70
73 } // namespace device 71 } // namespace device
74 72
75 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H 73 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H
OLDNEW
« no previous file with comments | « device/vr/vr_device.h ('k') | device/vr/vr_display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698