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

Issue 1276703003: Handle UI operations through gamepad (Closed)

Created:
5 years, 4 months ago by sshelke
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle UI operations through gamepad This change allows user to handle UI operations such as tab navigation, close tab, focus URL bar, open menu, move to previous/next link through gamepad buttons. BUG=454355 Committed: https://crrev.com/0da8c6edf6af93a5ab7d347341a677c83d5e6282 Cr-Commit-Position: refs/heads/master@{#344434}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed previous comments #

Total comments: 2

Patch Set 3 : fixed previous comments #

Total comments: 2

Patch Set 4 : Renaming mIsGamepadAccessed variable and notifyForGamepadsAccess method #

Total comments: 2

Patch Set 5 : reversed gamepad activation logic #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -10 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java View 1 2 6 chunks +14 lines, -1 line 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java View 1 2 3 4 5 chunks +15 lines, -8 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
jdduke (slow)
https://codereview.chromium.org/1276703003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java File chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java (right): https://codereview.chromium.org/1276703003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java#newcode37 chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java:37: private static boolean isGamepadAPIActive(KeyEvent event, ChromeActivity activity) { I ...
5 years, 4 months ago (2015-08-07 18:19:30 UTC) #2
sshelke
Fixed previous comments.
5 years, 4 months ago (2015-08-10 13:23:50 UTC) #3
newt (away)
https://codereview.chromium.org/1276703003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java File chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java (right): https://codereview.chromium.org/1276703003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java#newcode38 chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java:38: if (activity.getCurrentContentViewCore() != null) { nit: store the reference ...
5 years, 4 months ago (2015-08-10 18:52:07 UTC) #4
sshelke
Fixed comments. https://codereview.chromium.org/1276703003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java File chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java (right): https://codereview.chromium.org/1276703003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java#newcode38 chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java:38: if (activity.getCurrentContentViewCore() != null) { On 2015/08/10 ...
5 years, 4 months ago (2015-08-11 13:49:07 UTC) #5
jdduke (slow)
OK, thanks. This looks fine, my last question is whether these keys ever normally reach ...
5 years, 4 months ago (2015-08-11 15:25:43 UTC) #6
newt (away)
https://codereview.chromium.org/1276703003/diff/40001/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/1276703003/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java#newcode252 content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:252: public static boolean isGamepadAccessed() { When does this method ...
5 years, 4 months ago (2015-08-11 18:51:15 UTC) #7
jdduke (slow)
https://codereview.chromium.org/1276703003/diff/40001/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/1276703003/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java#newcode252 content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:252: public static boolean isGamepadAccessed() { On 2015/08/11 18:51:15, newt ...
5 years, 4 months ago (2015-08-11 20:15:00 UTC) #8
sshelke
On 2015/08/11 20:15:00, jdduke wrote: > https://codereview.chromium.org/1276703003/diff/40001/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): > > ...
5 years, 4 months ago (2015-08-13 08:39:10 UTC) #9
sshelke
On 2015/08/11 15:25:43, jdduke wrote: > OK, thanks. This looks fine, my last question is ...
5 years, 4 months ago (2015-08-13 10:45:11 UTC) #10
jdduke (slow)
lgtm, but please wait for newt@'s approval. Let's land this and see how it goes, ...
5 years, 4 months ago (2015-08-13 15:29:01 UTC) #11
newt (away)
https://codereview.chromium.org/1276703003/diff/60001/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/1276703003/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java#newcode303 content/public/android/java/src/org/chromium/content/browser/input/GamepadList.java:303: static void setGamepadAPIActive(boolean isAccessPaused) { This method parameter should ...
5 years, 4 months ago (2015-08-17 18:11:49 UTC) #12
sshelke
Reversed the logic which notifies for gamepad activation in gamepad_data_fetcher. Also renamed variable names mentioned ...
5 years, 4 months ago (2015-08-18 11:51:20 UTC) #13
newt (away)
lgtm. Thanks!
5 years, 4 months ago (2015-08-18 17:33:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276703003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276703003/100001
5 years, 4 months ago (2015-08-19 09:46:42 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/89956)
5 years, 4 months ago (2015-08-19 09:55:30 UTC) #19
sshelke
Thanks newt. Adding scottmg for review.
5 years, 4 months ago (2015-08-19 10:08:45 UTC) #21
scottmg
content/browser/gamepad/gamepad_platform_data_fetcher_android.cc lgtm (didn't look at the others)
5 years, 4 months ago (2015-08-19 16:08:41 UTC) #22
sshelke
On 2015/08/19 16:08:41, scottmg wrote: > content/browser/gamepad/gamepad_platform_data_fetcher_android.cc lgtm (didn't > look at the others) Thanks ...
5 years, 4 months ago (2015-08-20 06:11:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276703003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276703003/100001
5 years, 4 months ago (2015-08-20 06:12:15 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-20 06:17:03 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 06:17:42 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0da8c6edf6af93a5ab7d347341a677c83d5e6282
Cr-Commit-Position: refs/heads/master@{#344434}

Powered by Google App Engine
This is Rietveld 408576698