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

Issue 1365453004: Create a new custom class that handles keyboard shortcuts for Custom Tab (Closed)

Created:
5 years, 3 months ago by Ian Wen
Modified:
5 years, 2 months ago
Reviewers:
Yusuf, newt (away)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a new custom class that handles keyboard shortcuts for Custom Tab This CL opens some methods inside of KeyboardShortcuts for reusability. Also a new class, CustoMTabKeyboardShortcuts is created to handle the small subset of shortcuts that custom tab supports. BUG=527196 Committed: https://crrev.com/730fcbedc16dbea063e664d04f64736189d6fc7b Cr-Commit-Position: refs/heads/master@{#350955}

Patch Set 1 #

Patch Set 2 : No duplicated code #

Total comments: 4

Patch Set 3 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -23 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java View 1 2 3 chunks +6 lines, -19 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 2 chunks +16 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (2 generated)
Ian Wen
PTAL
5 years, 3 months ago (2015-09-22 22:19:04 UTC) #2
Yusuf
less code duplication pls? See crbug.com/513770 where newt described a few alternatives. AFAICT this uses ...
5 years, 3 months ago (2015-09-24 05:26:26 UTC) #3
newt (away)
On 2015/09/24 05:26:26, Yusuf wrote: > less code duplication pls? > > See crbug.com/513770 where ...
5 years, 3 months ago (2015-09-24 20:07:40 UTC) #4
Ian Wen
Adopted a simpler approach and removed duplicated code. PTAL. :)
5 years, 3 months ago (2015-09-24 22:06:19 UTC) #5
newt (away)
Remember to update the commit message. Also a few comments inline. https://codereview.chromium.org/1365453004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java File chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java (right): ...
5 years, 2 months ago (2015-09-25 20:56:01 UTC) #6
Ian Wen
https://codereview.chromium.org/1365453004/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/1365453004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java#newcode140 chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java:140: String url = keyCode == KeyEvent.KEYCODE_B On 2015/09/25 20:56:00, ...
5 years, 2 months ago (2015-09-25 23:15:23 UTC) #7
newt (away)
lgtm
5 years, 2 months ago (2015-09-25 23:19:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365453004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365453004/40001
5 years, 2 months ago (2015-09-25 23:20:53 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-26 00:07:55 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-09-26 00:08:42 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/730fcbedc16dbea063e664d04f64736189d6fc7b
Cr-Commit-Position: refs/heads/master@{#350955}

Powered by Google App Engine
This is Rietveld 408576698