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

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

Issue 2859533003: WebVR: lock focus while presenting to presenting window (Closed)
Patch Set: Add comment Created 3 years, 7 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
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 #include <utility> 5 #include <utility>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "device/vr/vr_device.h" 8 #include "device/vr/vr_device.h"
9 #include "device/vr/vr_device_manager.h" 9 #include "device/vr/vr_device_manager.h"
10 #include "device/vr/vr_service_impl.h" 10 #include "device/vr/vr_service_impl.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 std::move(right_bounds), source_width, 105 std::move(right_bounds), source_width,
106 source_height); 106 source_height);
107 } 107 }
108 108
109 void VRDisplayImpl::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) { 109 void VRDisplayImpl::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {
110 if (!device_->IsAccessAllowed(this)) { 110 if (!device_->IsAccessAllowed(this)) {
111 return; 111 return;
112 } 112 }
113 device_->GetVRVSyncProvider(std::move(request)); 113 device_->GetVRVSyncProvider(std::move(request));
114 } 114 }
115 } 115
116 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698