| OLD | NEW |
| 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_DELEGATE_H | 5 #ifndef DEVICE_VR_ANDROID_GVR_DELEGATE_H |
| 6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H | 6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "device/vr/android/gvr/gvr_device_provider.h" | 9 #include "device/vr/android/gvr/gvr_device_provider.h" |
| 10 #include "device/vr/vr_export.h" | 10 #include "device/vr/vr_export.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 static void SetInstance(GvrDelegateProvider* delegate_provider); | 37 static void SetInstance(GvrDelegateProvider* delegate_provider); |
| 38 static GvrDelegateProvider* GetInstance(); | 38 static GvrDelegateProvider* GetInstance(); |
| 39 | 39 |
| 40 virtual void RequestWebVRPresent( | 40 virtual void RequestWebVRPresent( |
| 41 base::WeakPtr<GvrDeviceProvider> device_provider, | 41 base::WeakPtr<GvrDeviceProvider> device_provider, |
| 42 const base::Callback<void(bool)>& callback) = 0; | 42 const base::Callback<void(bool)>& callback) = 0; |
| 43 virtual void ExitWebVRPresent() = 0; | 43 virtual void ExitWebVRPresent() = 0; |
| 44 virtual base::WeakPtr<GvrDelegate> GetNonPresentingDelegate() = 0; | 44 virtual base::WeakPtr<GvrDelegate> GetNonPresentingDelegate() = 0; |
| 45 virtual void DestroyNonPresentingDelegate() = 0; | 45 virtual void DestroyNonPresentingDelegate() = 0; |
| 46 virtual void SetListeningForActivate(bool listening) = 0; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 static GvrDelegateProvider* delegate_provider_; | 49 static GvrDelegateProvider* delegate_provider_; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace device | 52 } // namespace device |
| 52 | 53 |
| 53 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H | 54 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H |
| OLD | NEW |