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

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

Issue 2081583002: Migrating majority of gamepad from content/browser/ to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Next attempt Created 4 years, 5 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 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 <jni.h>
12
13 #include "base/android/jni_android.h"
14 #include "base/macros.h"
15 #include "content/browser/gamepad/gamepad_data_fetcher.h"
16 #include "content/browser/gamepad/gamepad_provider.h"
17 #include "content/browser/gamepad/gamepad_standard_mappings.h"
18 #include "third_party/WebKit/public/platform/WebGamepads.h"
19
20 namespace content {
21
22 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
23 public:
24 GamepadPlatformDataFetcherAndroid();
25 ~GamepadPlatformDataFetcherAndroid() override;
26
27 void PauseHint(bool paused) override;
28
29 void GetGamepadData(blink::WebGamepads* pads,
30 bool devices_changed_hint) override;
31
32 // Registers the JNI methods for GamepadsReader.
33 static bool RegisterGamepadPlatformDataFetcherAndroid(JNIEnv* env);
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698