| 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 CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "device/vr/android/gvr/gvr_delegate.h" | 12 #include "device/vr/android/gvr/gvr_delegate.h" |
| 13 #include "device/vr/vr_service.mojom.h" | 13 #include "device/vr/vr_service.mojom.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
| 15 | 15 |
| 16 namespace base { |
| 17 class SingleThreadTaskRunner; |
| 18 } |
| 19 |
| 16 namespace vr_shell { | 20 namespace vr_shell { |
| 17 | 21 |
| 18 // A non presenting delegate for magic window mode. | 22 // A non presenting delegate for magic window mode. |
| 19 class NonPresentingGvrDelegate : public device::GvrDelegate, | 23 class NonPresentingGvrDelegate : public device::GvrDelegate, |
| 20 public device::mojom::VRVSyncProvider { | 24 public device::mojom::VRVSyncProvider { |
| 21 public: | 25 public: |
| 22 explicit NonPresentingGvrDelegate(long context); | 26 explicit NonPresentingGvrDelegate(long context); |
| 23 | 27 |
| 24 ~NonPresentingGvrDelegate() override; | 28 ~NonPresentingGvrDelegate() override; |
| 25 | 29 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 GetVSyncCallback callback_; | 67 GetVSyncCallback callback_; |
| 64 mojo::Binding<device::mojom::VRVSyncProvider> binding_; | 68 mojo::Binding<device::mojom::VRVSyncProvider> binding_; |
| 65 base::WeakPtrFactory<NonPresentingGvrDelegate> weak_ptr_factory_; | 69 base::WeakPtrFactory<NonPresentingGvrDelegate> weak_ptr_factory_; |
| 66 | 70 |
| 67 DISALLOW_COPY_AND_ASSIGN(NonPresentingGvrDelegate); | 71 DISALLOW_COPY_AND_ASSIGN(NonPresentingGvrDelegate); |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 } // namespace vr_shell | 74 } // namespace vr_shell |
| 71 | 75 |
| 72 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| OLD | NEW |