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

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

Issue 2879973002: Expose Gamepad API instance for Cardboard button (Closed)
Patch Set: fix crash in tests Created 3 years, 7 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 | « device/vr/android/gvr/gvr_gamepad_data_fetcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_GAMEPAD_DATA_PROVIDER_H 5 #ifndef DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_PROVIDER_H
6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_PROVIDER_H 6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_PROVIDER_H
7 7
8 #include "device/vr/vr_types.h" 8 #include "device/vr/vr_types.h"
9 9
10 namespace device { 10 namespace device {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public: 53 public:
54 // Refresh current GVR controller data for use by gamepad API. The 54 // Refresh current GVR controller data for use by gamepad API. The
55 // implementation also lazily creates and registers the GVR 55 // implementation also lazily creates and registers the GVR
56 // GamepadDataFetcherFactory with the GamepadDataFetcherManager as 56 // GamepadDataFetcherFactory with the GamepadDataFetcherManager as
57 // needed. 57 // needed.
58 virtual void UpdateGamepadData(GvrGamepadData data) = 0; 58 virtual void UpdateGamepadData(GvrGamepadData data) = 0;
59 59
60 // Called by the gamepad data fetcher constructor to register itself 60 // Called by the gamepad data fetcher constructor to register itself
61 // for receiving data via SetGamepadData. The fetcher must remain 61 // for receiving data via SetGamepadData. The fetcher must remain
62 // alive while the provider is calling SetGamepadData on it. 62 // alive while the provider is calling SetGamepadData on it.
63 virtual void RegisterGamepadDataFetcher(GvrGamepadDataFetcher*) = 0; 63 virtual void RegisterGvrGamepadDataFetcher(GvrGamepadDataFetcher*) = 0;
64 }; 64 };
65 65
66 } // namespace device 66 } // namespace device
67 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_PROVIDER_H 67 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_PROVIDER_H
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_gamepad_data_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698