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

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, 9 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 namespace content {
18 using blink::WebGamepad;
19 using blink::WebGamepads;
20
21 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
22 public:
23 GamepadPlatformDataFetcherAndroid();
24 ~GamepadPlatformDataFetcherAndroid();
25
26 // Method for sending pause hints to the JNI interface. Runs on
27 // polling_thread_.
28 virtual void PauseHint(bool ispaused) OVERRIDE;
29
30 virtual void GetGamepadData(blink::WebGamepads* pads,
31 bool devices_changed_hint) OVERRIDE;
32
33 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
34 };
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698