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

Side by Side Diff: device/vr/android/gvr/gvr_device_provider.h

Issue 2502363004: Implement vrdisplayactivate for GVR DON. (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 unified diff | Download patch
« no previous file with comments | « device/vr/android/gvr/gvr_delegate.h ('k') | device/vr/android/gvr/gvr_device_provider.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 DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 void SetListeningForActivate(bool listening) override; 32 void SetListeningForActivate(bool listening) override;
33 33
34 // Called from GvrDevice. 34 // Called from GvrDevice.
35 void RequestPresent(const base::Callback<void(bool)>& callback); 35 void RequestPresent(const base::Callback<void(bool)>& callback);
36 void ExitPresent(); 36 void ExitPresent();
37 37
38 void OnGvrDelegateReady(const base::WeakPtr<GvrDelegate>& delegate); 38 void OnGvrDelegateReady(const base::WeakPtr<GvrDelegate>& delegate);
39 void OnGvrDelegateRemoved(); 39 void OnGvrDelegateRemoved();
40 void OnDisplayBlur(); 40 void OnDisplayBlur();
41 void OnDisplayFocus(); 41 void OnDisplayFocus();
42 void OnDisplayActivate();
42 43
43 private: 44 private:
44 void SwitchToNonPresentingDelegate(); 45 void SwitchToNonPresentingDelegate();
45 46
46 std::unique_ptr<GvrDevice> vr_device_; 47 std::unique_ptr<GvrDevice> vr_device_;
47 48
48 base::WeakPtrFactory<GvrDeviceProvider> weak_ptr_factory_; 49 base::WeakPtrFactory<GvrDeviceProvider> weak_ptr_factory_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider); 51 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider);
51 }; 52 };
52 53
53 } // namespace device 54 } // namespace device
54 55
55 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 56 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_delegate.h ('k') | device/vr/android/gvr/gvr_device_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698