Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Define the data fetcher that GamepadProvider will use for android port. | |
| 6 // (GamepadPlatformDataFetcher). | |
| 7 | |
| 8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ | |
| 9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ | |
| 10 | |
| 11 #include "content/browser/android/gamepad_reader_impl.h" | |
| 12 #include "content/browser/gamepad/gamepad_data_fetcher.h" | |
| 13 #include "content/browser/gamepad/gamepad_provider.h" | |
| 14 | |
| 15 #include "third_party/WebKit/public/platform/WebGamepads.h" | |
| 16 | |
| 17 #if defined(OS_ANDROID) | |
|
scottmg
2014/02/06 21:17:07
Remove this, it shouldn't be included elsewhere.
SaurabhK
2014/02/10 12:50:47
On 2014/02/06 21:17:07, scottmg wrote:
Removed
| |
| 18 | |
| 19 namespace content { | |
| 20 using blink::WebGamepad; | |
| 21 using blink::WebGamepads; | |
| 22 | |
| 23 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher { | |
| 24 public: | |
| 25 GamepadPlatformDataFetcherAndroid(); | |
| 26 ~GamepadPlatformDataFetcherAndroid(); | |
| 27 | |
| 28 // Method for sending pause hints to the JNI interface. Runs on | |
| 29 // polling_thread_. | |
| 30 virtual void PauseHint(bool ispaused) OVERRIDE; | |
| 31 | |
| 32 virtual void GetGamepadData(blink::WebGamepads* pads, | |
| 33 bool devices_changed_hint) OVERRIDE; | |
|
scottmg
2014/02/06 21:17:07
nit; align at (.
SaurabhK
2014/02/10 12:50:47
On 2014/02/06 21:17:07, scottmg wrote:
Done
| |
| 34 }; | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif | |
| 38 | |
| 39 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ | |
| OLD | NEW |