Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / content / browser / gamepad / gamepad_platform_data_fetcher_android.h
blob4acdfb3b0adab84ac4eb80fb372cc029fa138404
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.
5 // Define the data fetcher that GamepadProvider will use for android port.
6 // (GamepadPlatformDataFetcher).
8 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
9 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
11 #include <jni.h>
13 #include "base/android/jni_android.h"
14 #include "content/browser/gamepad/gamepad_data_fetcher.h"
15 #include "content/browser/gamepad/gamepad_provider.h"
16 #include "content/browser/gamepad/gamepad_standard_mappings.h"
17 #include "third_party/WebKit/public/platform/WebGamepads.h"
19 namespace content {
21 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
22 public:
23 GamepadPlatformDataFetcherAndroid();
24 ~GamepadPlatformDataFetcherAndroid() override;
26 void PauseHint(bool paused) override;
28 void GetGamepadData(blink::WebGamepads* pads,
29 bool devices_changed_hint) override;
31 // Registers the JNI methods for GamepadsReader.
32 static bool RegisterGamepadPlatformDataFetcherAndroid(JNIEnv* env);
34 private:
35 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
38 } // namespace content
40 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_