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 #include "content/browser/gamepad/gamepad_platform_data_fetcher_win.h" | 5 #include "content/browser/gamepad/gamepad_platform_data_fetcher_win.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/trace_event/trace_event.h" |
9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
10 #include "content/common/gamepad_hardware_buffer.h" | 10 #include "content/common/gamepad_hardware_buffer.h" |
11 #include "content/common/gamepad_messages.h" | 11 #include "content/common/gamepad_messages.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 using namespace blink; | 15 using namespace blink; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 return false; | 313 return false; |
314 xinput_get_state_ = reinterpret_cast<XInputGetStateFunc>( | 314 xinput_get_state_ = reinterpret_cast<XInputGetStateFunc>( |
315 xinput_dll_.GetFunctionPointer("XInputGetState")); | 315 xinput_dll_.GetFunctionPointer("XInputGetState")); |
316 if (!xinput_get_state_) | 316 if (!xinput_get_state_) |
317 return false; | 317 return false; |
318 xinput_enable_(true); | 318 xinput_enable_(true); |
319 return true; | 319 return true; |
320 } | 320 } |
321 | 321 |
322 } // namespace content | 322 } // namespace content |
OLD | NEW |