Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Side by Side Diff: content/browser/gamepad/gamepad_platform_data_fetcher_android.h

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698