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

Side by Side Diff: device/gamepad/gamepad_platform_data_fetcher_win.h

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « device/gamepad/gamepad_platform_data_fetcher_mac.mm ('k') | device/gamepad/gamepad_platform_data_fetcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698