| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ | 5 #ifndef DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ |
| 6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ | 6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| 12 #ifndef WIN32_LEAN_AND_MEAN | 12 #ifndef WIN32_LEAN_AND_MEAN |
| 13 #define WIN32_LEAN_AND_MEAN | 13 #define WIN32_LEAN_AND_MEAN |
| 14 #endif | 14 #endif |
| 15 #include <Unknwn.h> | 15 #include <Unknwn.h> |
| 16 #include <WinDef.h> | 16 #include <WinDef.h> |
| 17 #include <XInput.h> | 17 #include <XInput.h> |
| 18 #include <stdlib.h> | 18 #include <stdlib.h> |
| 19 #include <windows.h> | 19 #include <windows.h> |
| 20 | 20 |
| 21 #include "base/compiler_specific.h" | 21 #include "base/compiler_specific.h" |
| 22 #include "base/macros.h" | 22 #include "base/macros.h" |
| 23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
| 24 #include "base/message_loop/message_loop.h" | 24 #include "base/message_loop/message_loop.h" |
| 25 #include "base/scoped_native_library.h" | 25 #include "base/scoped_native_library.h" |
| 26 #include "device/gamepad/gamepad_data_fetcher.h" | 26 #include "device/gamepad/gamepad_data_fetcher.h" |
| 27 #include "device/gamepad/gamepad_standard_mappings.h" | 27 #include "device/gamepad/gamepad_standard_mappings.h" |
| 28 #include "third_party/WebKit/public/platform/WebGamepads.h" | 28 #include "device/gamepad/public/cpp/gamepads.h" |
| 29 | 29 |
| 30 namespace device { | 30 namespace device { |
| 31 | 31 |
| 32 class GamepadPlatformDataFetcherWin : public GamepadDataFetcher { | 32 class GamepadPlatformDataFetcherWin : public GamepadDataFetcher { |
| 33 public: | 33 public: |
| 34 typedef GamepadDataFetcherFactoryImpl<GamepadPlatformDataFetcherWin, | 34 typedef GamepadDataFetcherFactoryImpl<GamepadPlatformDataFetcherWin, |
| 35 GAMEPAD_SOURCE_WIN_XINPUT> | 35 GAMEPAD_SOURCE_WIN_XINPUT> |
| 36 Factory; | 36 Factory; |
| 37 | 37 |
| 38 GamepadPlatformDataFetcherWin(); | 38 GamepadPlatformDataFetcherWin(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 XInputGetStateFunc xinput_get_state_; | 71 XInputGetStateFunc xinput_get_state_; |
| 72 | 72 |
| 73 bool xinuput_connected_[XUSER_MAX_COUNT]; | 73 bool xinuput_connected_[XUSER_MAX_COUNT]; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherWin); | 75 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherWin); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace device | 78 } // namespace device |
| 79 | 79 |
| 80 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ | 80 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ |
| OLD | NEW |