| 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 // Define the default data fetcher that GamepadProvider will use if none is | 5 // Define the default data fetcher that GamepadProvider will use if none is |
| 6 // supplied. (GamepadPlatformDataFetcher). | 6 // supplied. (GamepadPlatformDataFetcher). |
| 7 | 7 |
| 8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ | 8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ |
| 9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ | 9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "content/browser/gamepad/gamepad_data_fetcher.h" | 13 #include "content/browser/gamepad/gamepad_data_fetcher.h" |
| 14 | 14 |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_ANDROID) |
| 16 #include "content/browser/gamepad/gamepad_platform_data_fetcher_android.h" |
| 17 #elif defined(OS_WIN) |
| 16 #include "content/browser/gamepad/gamepad_platform_data_fetcher_win.h" | 18 #include "content/browser/gamepad/gamepad_platform_data_fetcher_win.h" |
| 17 #elif defined(OS_MACOSX) | 19 #elif defined(OS_MACOSX) |
| 18 #include "content/browser/gamepad/gamepad_platform_data_fetcher_mac.h" | 20 #include "content/browser/gamepad/gamepad_platform_data_fetcher_mac.h" |
| 19 #elif defined(OS_LINUX) | 21 #elif defined(OS_LINUX) |
| 20 #include "content/browser/gamepad/gamepad_platform_data_fetcher_linux.h" | 22 #include "content/browser/gamepad/gamepad_platform_data_fetcher_linux.h" |
| 21 #endif | 23 #endif |
| 22 | 24 |
| 23 namespace content { | 25 namespace content { |
| 24 | 26 |
| 25 #if defined(OS_WIN) | 27 #if defined(OS_ANDROID) |
| 28 |
| 29 typedef GamepadPlatformDataFetcherAndroid GamepadPlatformDataFetcher; |
| 30 |
| 31 #elif defined(OS_WIN) |
| 26 | 32 |
| 27 typedef GamepadPlatformDataFetcherWin GamepadPlatformDataFetcher; | 33 typedef GamepadPlatformDataFetcherWin GamepadPlatformDataFetcher; |
| 28 | 34 |
| 29 #elif defined(OS_MACOSX) | 35 #elif defined(OS_MACOSX) |
| 30 | 36 |
| 31 typedef GamepadPlatformDataFetcherMac GamepadPlatformDataFetcher; | 37 typedef GamepadPlatformDataFetcherMac GamepadPlatformDataFetcher; |
| 32 | 38 |
| 33 #elif defined(OS_LINUX) && defined(USE_UDEV) | 39 #elif defined(OS_LINUX) && defined(USE_UDEV) |
| 34 | 40 |
| 35 typedef GamepadPlatformDataFetcherLinux GamepadPlatformDataFetcher; | 41 typedef GamepadPlatformDataFetcherLinux GamepadPlatformDataFetcher; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 46 private: | 52 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(GamepadDataFetcherEmpty); | 53 DISALLOW_COPY_AND_ASSIGN(GamepadDataFetcherEmpty); |
| 48 }; | 54 }; |
| 49 typedef GamepadDataFetcherEmpty GamepadPlatformDataFetcher; | 55 typedef GamepadDataFetcherEmpty GamepadPlatformDataFetcher; |
| 50 | 56 |
| 51 #endif | 57 #endif |
| 52 | 58 |
| 53 } // namespace content | 59 } // namespace content |
| 54 | 60 |
| 55 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ | 61 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_H_ |
| OLD | NEW |