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

Issue 133943002: Gamepad API support for chrome on android (Closed)

Created:
6 years, 11 months ago by SaurabhK
Modified:
6 years, 2 months ago
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Gamepad API support for chrome on android This change adds code to get gamepad data from java objects and provide these updates to the GamepadProvider which then writes to GamepadHardwareBuffer which in turn is read by SharedMemoryReader and later returned by JS to the web page. This also adds new framework classes/methods required for Gamepad API support. Frameworks changes are responsible for : - Identifying gamepad devices and their capabilities. - Managing connected gamepad devices - Map the connected gamepad devices to standard Gamepad format. - Keeping gamepads axes/buttons data up-to-date and returning it to native whenever requested. In android we cannot get gamepad data directly from sources, so framework is modified to capture gamepad key and motion events and extract gamepad data from these events. * Class GamepadPlatformDataFetcherAndroid : Android specific implementation of gamepad data fetcher. - Responsible for communication with java class and accessing gamepad data. - It adds methods for communication with singleton java GamepadList class to get gamepads data. * Class ContentViewCore : Manages gamepad list and notifies of new key/motion event for gamepads. * Class GamepadList : A new class to manage connected gamepad devices * Class GamepadDevice : A new class to manage information related to each gamepad device. * Class GamepadMappings : This class is responsible for mapping of known gamepads to the standard gamepad. This change enables gamepad API by default. Adds support for parsing float array return type in JNI generator. NVIDIA Shield and XBox360 gamepads are mapped to the standard gamepad BUG=330094 TEST=http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad-tester/tester.html R=tsepez@chromium.org R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270620 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274212

Patch Set 1 #

Total comments: 26

Patch Set 2 : Gamepad API support for chrome on android (Work In Progress) #

Patch Set 3 : Gamepad API support for chrome on android (Work In Progress) #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 32

Patch Set 7 : #

Patch Set 8 : #

Total comments: 32

Patch Set 9 : #

Total comments: 12

Patch Set 10 : #

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Total comments: 8

Patch Set 13 : Address review comments #

Patch Set 14 : #

Total comments: 43

Patch Set 15 : #

Total comments: 30

Patch Set 16 : #

Patch Set 17 : #

Total comments: 22

Patch Set 18 : Uploading forgotten things in previous patch #

Total comments: 48

Patch Set 19 : #

Total comments: 47

Patch Set 20 : #

Total comments: 4

Patch Set 21 : Fixed final Nits #

Total comments: 4

Patch Set 22 : #

Patch Set 23 : Rebase #

Patch Set 24 : #

Patch Set 25 : Fix android_clang_dbg issues #

Patch Set 26 : Rebase #

Total comments: 1

Patch Set 27 : #

Patch Set 28 : Rebase #

Total comments: 1

Patch Set 29 : Fix for GamepadList on ICS #

Patch Set 30 : #

Total comments: 6

Patch Set 31 : #

Patch Set 32 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+931 lines, -5 lines) Patch
M android_webview/Android.mk View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +3 lines, -0 lines 0 comments Download
A content/browser/gamepad/canonical_axis_index_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +16 lines, -0 lines 0 comments Download
A content/browser/gamepad/canonical_button_index_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +28 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
A content/browser/gamepad/gamepad_platform_data_fetcher_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/gamepad/gamepad_platform_data_fetcher_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +149 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +5 lines, -2 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +17 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +3 lines, -1 line 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 5 chunks +5 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/CanonicalAxisIndex.template View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/CanonicalButtonIndex.template View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/GamepadDevice.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +166 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +328 lines, -0 lines 1 comment Download
A content/public/android/java/src/org/chromium/content/browser/input/GamepadMappings.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 152 (0 generated)
SaurabhK
6 years, 11 months ago (2014-01-10 14:24:08 UTC) #1
darin (slow to review)
+scottmg, who was the original author of chromium's gamepad support. he should probably take a ...
6 years, 11 months ago (2014-01-10 21:28:23 UTC) #2
Tom Sepez
messages LGTM. https://codereview.chromium.org/133943002/diff/1/content/common/gamepad_messages.h File content/common/gamepad_messages.h (right): https://codereview.chromium.org/133943002/diff/1/content/common/gamepad_messages.h#newcode27 content/common/gamepad_messages.h:27: // Asks the browser process to pause/resume ...
6 years, 11 months ago (2014-01-10 22:57:39 UTC) #3
SaurabhK
https://codereview.chromium.org/133943002/diff/1/content/common/gamepad_messages.h File content/common/gamepad_messages.h (right): https://codereview.chromium.org/133943002/diff/1/content/common/gamepad_messages.h#newcode27 content/common/gamepad_messages.h:27: // Asks the browser process to pause/resume polling .The ...
6 years, 11 months ago (2014-01-13 12:39:26 UTC) #4
scottmg
Thanks for taking this on! A few brief questions below before I look at the ...
6 years, 11 months ago (2014-01-13 19:42:43 UTC) #5
xwang
Thanks for the patch! Too much code style issues in your code, the pylint.py tool ...
6 years, 11 months ago (2014-01-14 03:03:22 UTC) #6
SaurabhK
https://codereview.chromium.org/133943002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/133943002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2 android_webview/java/src/org/chromium/android_webview/AwContents.java:2: // Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. ...
6 years, 11 months ago (2014-01-15 16:57:07 UTC) #7
xwang
https://codereview.chromium.org/133943002/diff/1/content/browser/android/gamepad_reader_impl.cc File content/browser/android/gamepad_reader_impl.cc (right): https://codereview.chromium.org/133943002/diff/1/content/browser/android/gamepad_reader_impl.cc#newcode83 content/browser/android/gamepad_reader_impl.cc:83: return 0; Why not directly call haveDevicesBeenInteractedWith() to do ...
6 years, 11 months ago (2014-01-16 02:36:41 UTC) #8
SaurabhK
Also added dependent patch in blink https://codereview.chromium.org/148353002/ https://codereview.chromium.org/133943002/diff/1/content/browser/android/gamepad_reader_impl.cc File content/browser/android/gamepad_reader_impl.cc (right): https://codereview.chromium.org/133943002/diff/1/content/browser/android/gamepad_reader_impl.cc#newcode83 content/browser/android/gamepad_reader_impl.cc:83: return 0; ...
6 years, 10 months ago (2014-01-28 13:23:07 UTC) #9
SaurabhK
>> A few brief questions below before I look at the rest. In general I ...
6 years, 10 months ago (2014-01-28 14:13:28 UTC) #10
SaurabhK
Uploaded final rebased patch. It needs to evaluated along with https://codereview.chromium.org/148353002/
6 years, 10 months ago (2014-02-03 13:23:17 UTC) #11
scottmg
(I haven't looked at the Java code, lacking much knowledge anyway.) I don't like the ...
6 years, 10 months ago (2014-02-06 21:17:07 UTC) #12
scottmg
(Sorry for the long turnaround by the way, it's a large amount of code to ...
6 years, 10 months ago (2014-02-06 21:19:06 UTC) #13
SaurabhK
https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher.cc File content/browser/gamepad/gamepad_platform_data_fetcher.cc (right): https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher.cc#newcode10 content/browser/gamepad/gamepad_platform_data_fetcher.cc:10: #if !defined(OS_ANDROID) Done https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode11 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:11: ...
6 years, 10 months ago (2014-02-10 12:50:47 UTC) #14
kbalazs
Could you upload again please? Some chunks are missing (this is some retvield issue that ...
6 years, 10 months ago (2014-02-17 20:39:32 UTC) #15
xwang
On 2014/02/10 12:50:47, SaurabhK wrote: > https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher.cc > File content/browser/gamepad/gamepad_platform_data_fetcher.cc (right): > > https://codereview.chromium.org/133943002/diff/510001/content/browser/gamepad/gamepad_platform_data_fetcher.cc#newcode10 > ...
6 years, 10 months ago (2014-02-18 08:15:24 UTC) #16
xwang
On 2014/02/17 20:39:32, kbalazs wrote: > Could you upload again please? Some chunks are missing ...
6 years, 10 months ago (2014-02-18 08:22:55 UTC) #17
SaurabhK
Submitting the final patch without pause/resume implementation. I will take that up after this patch ...
6 years, 10 months ago (2014-02-19 16:26:17 UTC) #18
kbalazs
Left some comments. Take it as informal since I'm not a reviewer :) https://codereview.chromium.org/133943002/diff/1290001/android_webview/java/src/org/chromium/android_webview/AwContents.java File ...
6 years, 10 months ago (2014-02-20 00:48:24 UTC) #19
kbalazs
6 years, 10 months ago (2014-02-20 00:48:56 UTC) #20
xwang
Partial review, I will continue then. https://codereview.chromium.org/133943002/diff/1290001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/133943002/diff/1290001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1177 android_webview/java/src/org/chromium/android_webview/AwContents.java:1177: mContentViewCore.onPause(); I also ...
6 years, 10 months ago (2014-02-25 10:26:57 UTC) #21
SaurabhK
https://codereview.chromium.org/133943002/diff/1290001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/133943002/diff/1290001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1177 android_webview/java/src/org/chromium/android_webview/AwContents.java:1177: mContentViewCore.onPause(); On 2014/02/25 10:26:58, xwang wrote: I agree to ...
6 years, 10 months ago (2014-02-26 14:14:25 UTC) #22
kbalazs
I think you will need to rebase it because of the work done in http://crbug.com/344556
6 years, 9 months ago (2014-02-27 15:24:20 UTC) #23
bajones
Looks promising. I've left some comments, primarily about the way Gamepads are being mapped. https://codereview.chromium.org/133943002/diff/1410001/content/browser/android/gamepad_reader_impl.cc ...
6 years, 9 months ago (2014-02-28 23:56:11 UTC) #24
SaurabhK
On latest synced codebase, I get crash on content shell on enabling gamepad feature for ...
6 years, 9 months ago (2014-03-06 09:38:51 UTC) #25
SaurabhK
This patch also fixes the crash on chromium Top-of-the-Tree which has been caused by commit ...
6 years, 9 months ago (2014-03-11 17:39:27 UTC) #26
SaurabhK
Adding reviewers to review the gamepad implementation.
6 years, 9 months ago (2014-03-13 06:51:04 UTC) #27
bajones
content/browser/gamepad LGTM. Also, thank you for consolidating the mapping logic into a single file. I ...
6 years, 9 months ago (2014-03-17 17:47:20 UTC) #28
jdduke (slow)
On 2014/03/17 17:47:20, bajones wrote: > content/browser/gamepad LGTM. > > Also, thank you for consolidating ...
6 years, 9 months ago (2014-03-17 17:52:07 UTC) #29
jdduke (slow)
On 2014/03/17 17:52:07, jdduke wrote: > On 2014/03/17 17:47:20, bajones wrote: > > content/browser/gamepad LGTM. ...
6 years, 9 months ago (2014-03-17 17:52:38 UTC) #30
jdduke (slow)
> On 2014/03/17 17:52:07, jdduke wrote: > > bajones@: Why are we LGTM'ing two conflicting ...
6 years, 9 months ago (2014-03-17 21:42:48 UTC) #31
kbalazs
On 2014/03/17 21:42:48, jdduke wrote: > > On 2014/03/17 17:52:07, jdduke wrote: > > > ...
6 years, 9 months ago (2014-03-17 22:51:39 UTC) #32
SaurabhK
I must mention that I have never received any comment regarding the locking thing. I ...
6 years, 9 months ago (2014-03-18 07:13:08 UTC) #33
jdduke (slow)
https://codereview.chromium.org/133943002/diff/1470001/content/browser/android/gamepad_reader_impl.cc File content/browser/android/gamepad_reader_impl.cc (right): https://codereview.chromium.org/133943002/diff/1470001/content/browser/android/gamepad_reader_impl.cc#newcode86 content/browser/android/gamepad_reader_impl.cc:86: pad.id[name_to_copy] = 0; Looks like we have an extra ...
6 years, 9 months ago (2014-03-18 09:43:15 UTC) #34
SaurabhK
https://codereview.chromium.org/133943002/diff/1470001/content/browser/android/gamepad_reader_impl.cc File content/browser/android/gamepad_reader_impl.cc (right): https://codereview.chromium.org/133943002/diff/1470001/content/browser/android/gamepad_reader_impl.cc#newcode86 content/browser/android/gamepad_reader_impl.cc:86: pad.id[name_to_copy] = 0; On 2014/03/18 09:43:15, jdduke wrote: Oh ...
6 years, 9 months ago (2014-03-18 12:45:29 UTC) #35
SaurabhK
jdduke@: GamepadMapping changes : Work in progress
6 years, 9 months ago (2014-03-18 16:18:22 UTC) #36
jdduke (slow)
https://codereview.chromium.org/133943002/diff/1490001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1490001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode47 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:47: pads->length = WebGamepads::itemsLengthCap; Hmm, are we guaranteed to always ...
6 years, 9 months ago (2014-03-19 09:44:58 UTC) #37
SaurabhK
https://codereview.chromium.org/133943002/diff/1490001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1490001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode47 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:47: pads->length = WebGamepads::itemsLengthCap; On 2014/03/19 09:44:58, jdduke wrote: Yes, ...
6 years, 9 months ago (2014-03-19 13:15:51 UTC) #38
jdduke (slow)
A few of us were travelling, hence the lag time on review. Thanks for your ...
6 years, 9 months ago (2014-03-24 17:38:10 UTC) #39
SaurabhK
https://codereview.chromium.org/133943002/diff/1530001/content/public/android/java/src/org/chromium/content/browser/GamepadDevice.java File content/public/android/java/src/org/chromium/content/browser/GamepadDevice.java (right): https://codereview.chromium.org/133943002/diff/1530001/content/public/android/java/src/org/chromium/content/browser/GamepadDevice.java#newcode26 content/public/android/java/src/org/chromium/content/browser/GamepadDevice.java:26: protected int mDeviceId; On 2014/03/24 17:38:15, jdduke wrote: Done. ...
6 years, 9 months ago (2014-03-26 16:10:06 UTC) #40
jdduke (slow)
Thanks, this is getting close. tedchoc@, would you mind taking a pass over the Java ...
6 years, 9 months ago (2014-03-26 16:37:57 UTC) #41
jdduke (slow)
b.kelemen@samung.com, could you also take a brief glance at the mapping code and make sure ...
6 years, 9 months ago (2014-03-26 16:39:56 UTC) #42
kbalazs
On 2014/03/26 16:39:56, jdduke wrote: > mailto:b.kelemen@samung.com, could you also take a brief glance at ...
6 years, 9 months ago (2014-03-26 17:12:52 UTC) #43
kbalazs
IMHO there is still some room for improvement. https://codereview.chromium.org/133943002/diff/1550001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1550001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode130 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:130: for ...
6 years, 9 months ago (2014-03-26 19:24:52 UTC) #44
SaurabhK
Thanks kbalazs for the review. I have incoporated almost all your review comments and left ...
6 years, 9 months ago (2014-03-27 13:32:30 UTC) #45
kbalazs
> In my opinion, I dont think that it is an issue as Keycode and ...
6 years, 9 months ago (2014-03-28 00:53:09 UTC) #46
SaurabhK
Now i get that there is autoboxing that is heppening but at the same time ...
6 years, 9 months ago (2014-03-28 14:08:55 UTC) #47
jdduke (slow)
On 2014/03/28 14:08:55, SaurabhK wrote: > Now i get that there is autoboxing that is ...
6 years, 9 months ago (2014-03-28 14:57:39 UTC) #48
SaurabhK
Addressed all review comments. Please tell, if i am missing anything.
6 years, 8 months ago (2014-04-04 13:32:42 UTC) #49
jdduke (slow)
A few nits, and one key suggestion (see below, about adopting native mapping functions as ...
6 years, 8 months ago (2014-04-04 15:10:16 UTC) #50
SaurabhK
Just now i realised that i had missed a huge bunch of changes in my ...
6 years, 8 months ago (2014-04-04 16:00:29 UTC) #51
Ted C
Just wanted to give a quick first past mainly focused style https://codereview.chromium.org/133943002/diff/1610001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): ...
6 years, 8 months ago (2014-04-04 18:52:17 UTC) #52
SaurabhK
There were many reasons to keep the mapping here in Java side. We started with ...
6 years, 8 months ago (2014-04-07 13:24:00 UTC) #53
kbalazs
If we move the mapping to native we will end up with code like this: ...
6 years, 8 months ago (2014-04-07 14:54:40 UTC) #54
SaurabhK
https://codereview.chromium.org/133943002/diff/1590001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1590001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode39 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:39: } On 2014/04/04 15:10:17, jdduke wrote: Done. https://codereview.chromium.org/133943002/diff/1590001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode43 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:43: ...
6 years, 8 months ago (2014-04-11 14:41:41 UTC) #55
SaurabhK
Addressed review comments. Please tell, if i am missing anything.
6 years, 8 months ago (2014-04-16 08:15:00 UTC) #56
jdduke (slow)
https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode97 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:97: base::android::ConvertJavaStringToUTF16(env, devicename, &device_name); It's a shame to have to ...
6 years, 8 months ago (2014-04-16 23:23:43 UTC) #57
Ted C
Mainly nits and styling. I do have a big concern about testing for gamepad support. ...
6 years, 8 months ago (2014-04-16 23:36:52 UTC) #58
SaurabhK
Reagarding testing of the feature i am thinking of creating a test HTML page that ...
6 years, 8 months ago (2014-04-18 14:51:55 UTC) #59
kbalazs
On 2014/04/18 14:51:55, SaurabhK(OOO_27Apr) wrote: > Reagarding testing of the feature i am thinking of ...
6 years, 8 months ago (2014-04-18 15:20:51 UTC) #60
kbalazs
https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.h File content/browser/gamepad/gamepad_platform_data_fetcher_android.h (right): https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.h#newcode1 content/browser/gamepad/gamepad_platform_data_fetcher_android.h:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 8 months ago (2014-04-18 15:21:19 UTC) #61
jdduke (slow)
content/browser/gamepad lgtm with a few nits. Please also run "git cl format" on your patch ...
6 years, 8 months ago (2014-04-21 19:53:57 UTC) #62
SaurabhK
https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc File content/browser/gamepad/gamepad_platform_data_fetcher_android.cc (right): https://codereview.chromium.org/133943002/diff/1630001/content/browser/gamepad/gamepad_platform_data_fetcher_android.cc#newcode97 content/browser/gamepad/gamepad_platform_data_fetcher_android.cc:97: base::android::ConvertJavaStringToUTF16(env, devicename, &device_name); On 2014/04/21 19:53:58, jdduke wrote: I ...
6 years, 8 months ago (2014-04-22 09:33:51 UTC) #63
Ted C
lgtm -- we'll coordinate testing for this in a subsequent patch. I want to have ...
6 years, 8 months ago (2014-04-22 19:33:23 UTC) #64
jdduke (slow)
Adding aelias@ who probably has more gamepad experience than the rest of us...
6 years, 8 months ago (2014-04-22 22:00:52 UTC) #65
aelias_OOO_until_Jul13
I'm wondering what happens in practice when a user tries to plug in an unknown ...
6 years, 8 months ago (2014-04-22 23:46:24 UTC) #66
SaurabhK
>> I'm wondering what happens in practice when a user tries to plug in an ...
6 years, 8 months ago (2014-04-24 14:00:02 UTC) #67
bajones
On 2014/04/24 14:00:02, SaurabhK(OOO_27Apr) wrote: > When any unknown gamepad is connected then the buttons ...
6 years, 8 months ago (2014-04-24 16:53:05 UTC) #68
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 8 months ago (2014-04-25 10:16:58 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1690001
6 years, 8 months ago (2014-04-25 13:16:25 UTC) #70
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 13:16:40 UTC) #71
commit-bot: I haz the power
Failed to apply patch for android_webview/Android.mk: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-25 13:16:41 UTC) #72
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-04-29 11:35:23 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1710001
6 years, 7 months ago (2014-04-29 11:35:39 UTC) #74
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 11:49:21 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-29 11:49:22 UTC) #76
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-04-29 12:27:02 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1730001
6 years, 7 months ago (2014-04-29 12:27:14 UTC) #78
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 12:35:17 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium
6 years, 7 months ago (2014-04-29 12:35:18 UTC) #80
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-04-29 13:13:23 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1750001
6 years, 7 months ago (2014-04-29 13:13:59 UTC) #82
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 13:27:04 UTC) #83
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-29 13:27:05 UTC) #84
boliu
build failures are not flakes, re-checking cq is not going to do anything
6 years, 7 months ago (2014-04-29 13:51:00 UTC) #85
jdduke (slow)
I finally gained access to an XBox 360 device to do some basic testing. It ...
6 years, 7 months ago (2014-04-29 15:38:09 UTC) #86
jdduke (slow)
On 2014/04/29 15:38:09, jdduke wrote: > I finally gained access to an XBox 360 device ...
6 years, 7 months ago (2014-04-29 15:40:11 UTC) #87
kbalazs
On 2014/04/29 15:40:11, jdduke wrote: > On 2014/04/29 15:38:09, jdduke wrote: > > I finally ...
6 years, 7 months ago (2014-04-29 15:45:08 UTC) #88
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-04-30 14:49:04 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1770001
6 years, 7 months ago (2014-04-30 14:49:24 UTC) #90
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 14:59:01 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 14:59:02 UTC) #92
SaurabhK
Adding mnaganov, brettw and yfriedman as the patch misses review for :- android_webview/Android.mk android_webview/android_webview.gyp base/android/jni_generator/jni_generator.py ...
6 years, 7 months ago (2014-04-30 15:05:38 UTC) #93
boliu
android_webview lgtm
6 years, 7 months ago (2014-04-30 15:13:21 UTC) #94
nyquist
base/android/jni_generator/ lgtm
6 years, 7 months ago (2014-04-30 16:31:38 UTC) #95
brettw
content.gypi lgtm
6 years, 7 months ago (2014-04-30 16:43:58 UTC) #96
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-02 09:50:38 UTC) #97
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1770001
6 years, 7 months ago (2014-05-02 09:51:21 UTC) #98
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 09:51:29 UTC) #99
commit-bot: I haz the power
Failed to apply patch for content/browser/android/browser_jni_registrar.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-02 09:51:30 UTC) #100
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-02 12:07:13 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1790001
6 years, 7 months ago (2014-05-02 12:07:38 UTC) #102
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 14:13:09 UTC) #103
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=178890
6 years, 7 months ago (2014-05-02 14:13:11 UTC) #104
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-12 12:15:54 UTC) #105
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1790001
6 years, 7 months ago (2014-05-12 12:16:01 UTC) #106
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 13:46:44 UTC) #107
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 14:19:23 UTC) #108
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/182799)
6 years, 7 months ago (2014-05-12 14:19:25 UTC) #109
jdduke (slow)
https://codereview.chromium.org/133943002/diff/1790001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java File content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java (right): https://codereview.chromium.org/133943002/diff/1790001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java#newcode29 content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:29: private static GamepadList sGamepadList = null; It looks like ...
6 years, 7 months ago (2014-05-12 15:25:32 UTC) #110
SaurabhK
On 2014/05/12 15:25:32, jdduke wrote: According to the android developer spec ( http://developer.android.com/reference/android/view/View.html ) it ...
6 years, 7 months ago (2014-05-13 09:19:40 UTC) #111
boliu
On 2014/05/13 09:19:40, SaurabhK wrote: > On 2014/05/12 15:25:32, jdduke wrote: > > According to ...
6 years, 7 months ago (2014-05-13 15:40:38 UTC) #112
Ted C
On 2014/05/13 15:40:38, boliu wrote: > On 2014/05/13 09:19:40, SaurabhK wrote: > > On 2014/05/12 ...
6 years, 7 months ago (2014-05-13 17:34:20 UTC) #113
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-14 13:30:23 UTC) #114
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1830001
6 years, 7 months ago (2014-05-14 13:30:51 UTC) #115
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 15:02:53 UTC) #116
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 15:17:53 UTC) #117
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31239)
6 years, 7 months ago (2014-05-14 15:17:55 UTC) #118
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-15 06:42:49 UTC) #119
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1830001
6 years, 7 months ago (2014-05-15 06:43:03 UTC) #120
SaurabhK
On 2014/05/15 06:42:49, SaurabhK wrote: Re-checking cq as the same bots were passing in earlier ...
6 years, 7 months ago (2014-05-15 06:45:05 UTC) #121
commit-bot: I haz the power
Change committed as 270620
6 years, 7 months ago (2014-05-15 07:45:59 UTC) #122
Feng Qian
https://codereview.chromium.org/133943002/diff/1830001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java File content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java (right): https://codereview.chromium.org/133943002/diff/1830001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java#newcode9 content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:9: import android.hardware.input.InputManager.InputDeviceListener; This breaks Chrome on ICS devices. It ...
6 years, 7 months ago (2014-05-19 18:36:21 UTC) #123
aelias_OOO_until_Jul13
A revert of this CL has been created in https://codereview.chromium.org/298483002/ by aelias@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-19 18:48:06 UTC) #124
Kibeom Kim (inactive)
A revert of this CL has been created in https://codereview.chromium.org/284413005/ by kkimlabs@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-19 18:49:35 UTC) #125
Kibeom Kim (inactive)
A revert of this CL has been created in https://codereview.chromium.org/292763004/ by kkimlabs@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-19 18:49:48 UTC) #126
aelias_OOO_until_Jul13
Sorry for all the conflicting reverts. The one that landed is https://codereview.chromium.org/298483002/
6 years, 7 months ago (2014-05-19 19:38:36 UTC) #127
SaurabhK
On 2014/05/19 19:38:36, aelias wrote: I am looking for an API similar to InputDeviceListener for ...
6 years, 7 months ago (2014-05-20 08:10:36 UTC) #128
jdduke (slow)
On 2014/05/20 08:10:36, SaurabhK wrote: > On 2014/05/19 19:38:36, aelias wrote: > > I am ...
6 years, 7 months ago (2014-05-20 14:36:50 UTC) #129
boliu
The way the android jvm works, it will only look up a method when it ...
6 years, 7 months ago (2014-05-20 15:35:16 UTC) #130
SaurabhK
On 2014/05/20 15:35:16, boliu wrote: The revert commit of this change is not reflecting here ...
6 years, 7 months ago (2014-05-21 12:06:11 UTC) #131
SaurabhK
On 2014/05/21 12:06:11, SaurabhK wrote: It happens because of known issue being discussed in https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/infrastructure/chromium-dev/xQ-fpSShaWs/c5vnfose58AJ ...
6 years, 7 months ago (2014-05-26 14:45:24 UTC) #132
SaurabhK
On 2014/05/26 14:45:24, SaurabhK wrote: I am unable to get acess to an ICS device, ...
6 years, 7 months ago (2014-05-27 16:46:03 UTC) #133
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 7 months ago (2014-05-27 16:51:24 UTC) #134
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1850001
6 years, 7 months ago (2014-05-27 16:51:50 UTC) #135
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 7 months ago (2014-05-27 17:29:58 UTC) #136
jdduke (slow)
You're not actually using the |kDisableGamepad| flag, so this won't fix anything. It looks like ...
6 years, 7 months ago (2014-05-27 17:31:09 UTC) #137
SaurabhK
On 2014/05/27 17:31:09, jdduke wrote: jdduke, does the latest patch-set looks perfect?
6 years, 6 months ago (2014-05-29 10:49:52 UTC) #138
jdduke (slow)
I'll apply this patch locally and test on an ICS device to be sure, please ...
6 years, 6 months ago (2014-05-29 17:46:34 UTC) #139
jdduke (slow)
On 2014/05/29 17:46:34, jdduke wrote: > I'll apply this patch locally and test on an ...
6 years, 6 months ago (2014-05-29 18:48:23 UTC) #140
SaurabhK
https://codereview.chromium.org/133943002/diff/1870001/content/child/runtime_features.cc File content/child/runtime_features.cc (right): https://codereview.chromium.org/133943002/diff/1870001/content/child/runtime_features.cc#newcode95 content/child/runtime_features.cc:95: On 2014/05/29 17:46:36, jdduke wrote: Done. https://codereview.chromium.org/133943002/diff/1870001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java File content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java ...
6 years, 6 months ago (2014-05-30 09:13:43 UTC) #141
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 6 months ago (2014-05-30 09:42:56 UTC) #142
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1890001
6 years, 6 months ago (2014-05-30 09:44:21 UTC) #143
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 13:47:33 UTC) #144
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 14:09:13 UTC) #145
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/21995)
6 years, 6 months ago (2014-05-30 14:09:15 UTC) #146
jdduke (slow)
On 2014/05/30 14:09:15, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 6 months ago (2014-05-30 14:44:59 UTC) #147
SaurabhK
On 2014/05/30 14:44:59, jdduke wrote: Patchset 32 : Fix for linux_gpu on tryserver.chromium.gpu and Rebase
6 years, 6 months ago (2014-06-02 09:13:00 UTC) #148
SaurabhK
The CQ bit was checked by skhatri@nvidia.com
6 years, 6 months ago (2014-06-02 09:29:58 UTC) #149
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skhatri@nvidia.com/133943002/1910001
6 years, 6 months ago (2014-06-02 09:31:07 UTC) #150
commit-bot: I haz the power
Change committed as 274212
6 years, 6 months ago (2014-06-02 12:23:15 UTC) #151
Feng Qian
6 years, 2 months ago (2014-10-09 21:49:15 UTC) #152
Message was sent while issue was closed.
https://codereview.chromium.org/133943002/diff/1910001/content/public/android...
File
content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java
(right):

https://codereview.chromium.org/133943002/diff/1910001/content/public/android...
content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:243:
return ((inputDevice.getSources() & InputDevice.SOURCE_JOYSTICK) ==
inputDevice could be null, see
http://developer.android.com/reference/android/view/InputDevice.html#getDevic...
and crash: https://code.google.com/p/chromium/issues/detail?id=421168

Powered by Google App Engine
This is Rietveld 408576698