OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/raw_input_data_fetcher_win.h" | 5 #include "content/browser/gamepad/raw_input_data_fetcher_win.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
8 #include "content/common/gamepad_hardware_buffer.h" | 8 #include "content/common/gamepad_hardware_buffer.h" |
9 #include "content/common/gamepad_messages.h" | 9 #include "content/common/gamepad_messages.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 using namespace blink; | 13 using namespace blink; |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 float NormalizeAxis(long value, long min, long max) { | 17 float NormalizeAxis(long value, long min, long max) { |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 return false; | 496 return false; |
497 hidd_get_product_string_ = reinterpret_cast<HidDGetStringFunc>( | 497 hidd_get_product_string_ = reinterpret_cast<HidDGetStringFunc>( |
498 hid_dll_.GetFunctionPointer("HidD_GetProductString")); | 498 hid_dll_.GetFunctionPointer("HidD_GetProductString")); |
499 if (!hidd_get_product_string_) | 499 if (!hidd_get_product_string_) |
500 return false; | 500 return false; |
501 | 501 |
502 return true; | 502 return true; |
503 } | 503 } |
504 | 504 |
505 } // namespace content | 505 } // namespace content |
OLD | NEW |