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

Unified Diff: device/vr/vr_service_impl.h

Issue 2510993002: Notify VRDeviceProviders when there are pages listening for vrdisplayactivate (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/vr_service.mojom ('k') | device/vr/vr_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_service_impl.h
diff --git a/device/vr/vr_service_impl.h b/device/vr/vr_service_impl.h
index 778dc518ae6a2842f8fa48b789c40ac87fdeae3d..091c81d6b01e4d9686bd2b67dff379fc256c5ca3 100644
--- a/device/vr/vr_service_impl.h
+++ b/device/vr/vr_service_impl.h
@@ -28,6 +28,8 @@ class VRServiceImpl : public mojom::VRService {
VRDisplayImpl* GetVRDisplayImpl(VRDevice* device);
+ bool listening_for_activate() { return listening_for_activate_; }
+
private:
friend class VRServiceTestBinding;
friend class VRDeviceManagerTest;
@@ -43,12 +45,15 @@ class VRServiceImpl : public mojom::VRService {
// mojom::VRService implementation
void SetClient(mojom::VRServiceClientPtr service_client,
const SetClientCallback& callback) override;
+ void SetListeningForActivate(bool listening) override;
using DisplayImplMap = std::map<VRDevice*, std::unique_ptr<VRDisplayImpl>>;
DisplayImplMap displays_;
mojom::VRServiceClientPtr client_;
+ bool listening_for_activate_;
+
std::unique_ptr<mojo::Binding<mojom::VRService>> binding_;
DISALLOW_COPY_AND_ASSIGN(VRServiceImpl);
« no previous file with comments | « device/vr/vr_service.mojom ('k') | device/vr/vr_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698