OLD | NEW |
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 Loading... |
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 |
OLD | NEW |