| 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 DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ | 5 #ifndef DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ |
| 6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ | 6 #define DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "device/gamepad/gamepad_data_fetcher.h" | 10 #include "device/gamepad/gamepad_data_fetcher.h" |
| 11 #include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_co
ntroller.h" | 11 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_controller.h" |
| 12 #include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_ty
pes.h" | 12 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" |
| 13 | 13 |
| 14 namespace device { | 14 namespace device { |
| 15 | 15 |
| 16 class GvrDelegate; | 16 class GvrDelegate; |
| 17 | 17 |
| 18 class GvrGamepadDataFetcher : public GamepadDataFetcher { | 18 class GvrGamepadDataFetcher : public GamepadDataFetcher { |
| 19 public: | 19 public: |
| 20 class Factory : public GamepadDataFetcherFactory { | 20 class Factory : public GamepadDataFetcherFactory { |
| 21 public: | 21 public: |
| 22 Factory(GvrDelegate* delegate, unsigned int display_id); | 22 Factory(GvrDelegate* delegate, unsigned int display_id); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 std::unique_ptr<gvr::ControllerApi> controller_api_; | 42 std::unique_ptr<gvr::ControllerApi> controller_api_; |
| 43 gvr::ControllerState controller_state_; | 43 gvr::ControllerState controller_state_; |
| 44 gvr::ControllerHandedness handedness_; | 44 gvr::ControllerHandedness handedness_; |
| 45 unsigned int display_id_; | 45 unsigned int display_id_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(GvrGamepadDataFetcher); | 47 DISALLOW_COPY_AND_ASSIGN(GvrGamepadDataFetcher); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace device | 50 } // namespace device |
| 51 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ | 51 #endif // DEVICE_VR_ANDROID_GVR_GAMEPAD_DATA_FETCHER_H_ |
| OLD | NEW |