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

Side by Side Diff: chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h

Issue 2608163003: Change single-interface mojo bindings to use SequencedTaskRunner. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | chrome/browser/android/vr_shell/non_presenting_gvr_delegate.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698