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

Side by Side Diff: device/gamepad/gamepad_platform_data_fetcher_android.h

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Define the data fetcher that GamepadProvider will use for android port. 5 // Define the data fetcher that GamepadProvider will use for android port.
6 // (GamepadPlatformDataFetcher). 6 // (GamepadPlatformDataFetcher).
7 7
8 #ifndef DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 8 #ifndef DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
9 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 9 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
10 10
11 #include <jni.h> 11 #include <jni.h>
12 12
13 #include "base/android/jni_android.h" 13 #include "base/android/jni_android.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "device/gamepad/gamepad_data_fetcher.h" 15 #include "device/gamepad/gamepad_data_fetcher.h"
16 #include "device/gamepad/gamepad_provider.h" 16 #include "device/gamepad/gamepad_provider.h"
17 #include "device/gamepad/gamepad_standard_mappings.h" 17 #include "device/gamepad/gamepad_standard_mappings.h"
18 #include "third_party/WebKit/public/platform/WebGamepads.h" 18 #include "device/gamepad/public/cpp/gamepads.h"
19 19
20 namespace device { 20 namespace device {
21 21
22 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher { 22 class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
23 public: 23 public:
24 typedef GamepadDataFetcherFactoryImpl<GamepadPlatformDataFetcherAndroid, 24 typedef GamepadDataFetcherFactoryImpl<GamepadPlatformDataFetcherAndroid,
25 GAMEPAD_SOURCE_ANDROID> 25 GAMEPAD_SOURCE_ANDROID>
26 Factory; 26 Factory;
27 27
28 GamepadPlatformDataFetcherAndroid(); 28 GamepadPlatformDataFetcherAndroid();
(...skipping 10 matching lines...) Expand all
39 39
40 private: 40 private:
41 void OnAddedToProvider() override; 41 void OnAddedToProvider() override;
42 42
43 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid); 43 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
44 }; 44 };
45 45
46 } // namespace device 46 } // namespace device
47 47
48 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_ 48 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « device/gamepad/gamepad_pad_state_provider.cc ('k') | device/gamepad/gamepad_platform_data_fetcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698