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

Side by Side Diff: content/browser/gamepad/gamepad_platform_data_fetcher_win.h

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #ifndef WIN32_LEAN_AND_MEAN 10 #ifndef WIN32_LEAN_AND_MEAN
11 #define WIN32_LEAN_AND_MEAN 11 #define WIN32_LEAN_AND_MEAN
12 #endif 12 #endif
13 #define DIRECTINPUT_VERSION 0x0800 13 #define DIRECTINPUT_VERSION 0x0800
14 #include <dinput.h> 14 #include <dinput.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 #include <Unknwn.h> 16 #include <Unknwn.h>
17 #include <WinDef.h> 17 #include <WinDef.h>
18 #include <windows.h> 18 #include <windows.h>
19 #include <XInput.h> 19 #include <XInput.h>
20 20
21 #include "base/basictypes.h" 21 #include "base/basictypes.h"
22 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
23 #include "base/scoped_native_library.h" 23 #include "base/scoped_native_library.h"
24 #include "content/browser/gamepad/gamepad_data_fetcher.h" 24 #include "content/browser/gamepad/gamepad_data_fetcher.h"
25 #include "content/browser/gamepad/gamepad_standard_mappings.h" 25 #include "content/browser/gamepad/gamepad_standard_mappings.h"
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" 26 #include "third_party/WebKit/public/platform/WebGamepads.h"
27 27
28 namespace content { 28 namespace content {
29 29
30 class GamepadPlatformDataFetcherWin : public GamepadDataFetcher { 30 class GamepadPlatformDataFetcherWin : public GamepadDataFetcher {
31 public: 31 public:
32 GamepadPlatformDataFetcherWin(); 32 GamepadPlatformDataFetcherWin();
33 virtual ~GamepadPlatformDataFetcherWin(); 33 virtual ~GamepadPlatformDataFetcherWin();
34 virtual void GetGamepadData(WebKit::WebGamepads* pads, 34 virtual void GetGamepadData(WebKit::WebGamepads* pads,
35 bool devices_changed_hint) OVERRIDE; 35 bool devices_changed_hint) OVERRIDE;
36 private: 36 private:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 GamepadStandardMappingFunction mapper; 91 GamepadStandardMappingFunction mapper;
92 }; 92 };
93 PadState pad_state_[WebKit::WebGamepads::itemsLengthCap]; 93 PadState pad_state_[WebKit::WebGamepads::itemsLengthCap];
94 94
95 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherWin); 95 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherWin);
96 }; 96 };
97 97
98 } // namespace content 98 } // namespace content
99 99
100 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_ 100 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_platform_data_fetcher_mac.h ('k') | content/browser/gamepad/gamepad_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698