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 CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ | 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ | 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/browser/gamepad/gamepad_data_fetcher.h" | 13 #include "content/browser/gamepad/gamepad_data_fetcher.h" |
14 #include "content/browser/gamepad/gamepad_standard_mappings.h" | 14 #include "content/browser/gamepad/gamepad_standard_mappings.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" | 15 #include "third_party/WebKit/public/platform/WebGamepads.h" |
16 | 16 |
17 extern "C" { | 17 extern "C" { |
18 struct udev_device; | 18 struct udev_device; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 class UdevLinux; | 23 class UdevLinux; |
24 | 24 |
25 class GamepadPlatformDataFetcherLinux : public GamepadDataFetcher { | 25 class GamepadPlatformDataFetcherLinux : public GamepadDataFetcher { |
(...skipping 21 matching lines...) Expand all Loading... |
47 WebKit::WebGamepads data_; | 47 WebKit::WebGamepads data_; |
48 | 48 |
49 scoped_ptr<UdevLinux> udev_; | 49 scoped_ptr<UdevLinux> udev_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux); | 51 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace content | 54 } // namespace content |
55 | 55 |
56 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ | 56 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |
OLD | NEW |