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

Issue 2787723002: [Android] Add public API for Browser Action in support library (Closed)

Created:
3 years, 8 months ago by ltian
Modified:
3 years, 8 months ago
Reviewers:
Ted C, Yusuf
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[Android] Add public API for Browser Action in support library Add a public API for Browser Action in Custom Tabs support library. The API checks whether Chrome is available to handle the Browser Action request. If so, wrap the request info in a Browser Action Intent and send out to let Chrome handle it. The detail design of the public API and Browser Action Intent wrapper are here: https://docs.google.com/a/google.com/document/d/1CkRNEsXjFnzo2X7SEZP2sluIIhhKRcNGbEWwAkJd4OI/edit?usp=sharing. BUG=706695 Review-Url: https://codereview.chromium.org/2787723002 Committed: https://github.com/GoogleChrome/custom-tabs-client/commit/5dd7021848797eea6f696303ba4d7749d51588d9

Patch Set 1 #

Total comments: 32

Patch Set 2 : Update based on Yusuf's comments. #

Total comments: 24

Patch Set 3 : Update based on Yusuf's comments and add logic to get creator package name. #

Total comments: 16

Patch Set 4 : Update based on Yusuf's new comments. #

Total comments: 8

Patch Set 5 : Update for the new comments from Yusuf. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -1 line) Patch
M Application/src/main/java/org/chromium/customtabsclient/MainActivity.java View 1 2 3 5 chunks +27 lines, -1 line 0 comments Download
M Application/src/main/res/layout/main.xml View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M Application/src/main/res/values/strings.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java View 1 2 3 4 1 chunk +282 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
ltian
Can you take a look of this CL to see whether the design makes sense ...
3 years, 8 months ago (2017-03-30 05:36:39 UTC) #2
Yusuf
https://codereview.chromium.org/2787723002/diff/1/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java File Application/src/main/java/org/chromium/customtabsclient/MainActivity.java (right): https://codereview.chromium.org/2787723002/diff/1/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java#newcode127 Application/src/main/java/org/chromium/customtabsclient/MainActivity.java:127: mUrlLinkText = (TextView) findViewById(R.id.url_link); We will need another TextView ...
3 years, 8 months ago (2017-04-03 18:00:49 UTC) #3
ltian
https://codereview.chromium.org/2787723002/diff/1/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java File Application/src/main/java/org/chromium/customtabsclient/MainActivity.java (right): https://codereview.chromium.org/2787723002/diff/1/Application/src/main/java/org/chromium/customtabsclient/MainActivity.java#newcode127 Application/src/main/java/org/chromium/customtabsclient/MainActivity.java:127: mUrlLinkText = (TextView) findViewById(R.id.url_link); On 2017/04/03 18:00:48, Yusuf wrote: ...
3 years, 8 months ago (2017-04-05 01:44:29 UTC) #4
Yusuf
https://codereview.chromium.org/2787723002/diff/20001/Application/src/main/res/layout/main.xml File Application/src/main/res/layout/main.xml (right): https://codereview.chromium.org/2787723002/diff/20001/Application/src/main/res/layout/main.xml#newcode96 Application/src/main/res/layout/main.xml:96: android:text="Launch Browser Actions by long press the url below:" ...
3 years, 8 months ago (2017-04-05 02:38:31 UTC) #5
ltian
https://codereview.chromium.org/2787723002/diff/20001/Application/src/main/res/layout/main.xml File Application/src/main/res/layout/main.xml (right): https://codereview.chromium.org/2787723002/diff/20001/Application/src/main/res/layout/main.xml#newcode96 Application/src/main/res/layout/main.xml:96: android:text="Launch Browser Actions by long press the url below:" ...
3 years, 8 months ago (2017-04-07 23:14:55 UTC) #6
Yusuf
pretty close to done here. probably the final one. Will try to get back to ...
3 years, 8 months ago (2017-04-14 21:58:11 UTC) #7
ltian
https://codereview.chromium.org/2787723002/diff/40001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java (right): https://codereview.chromium.org/2787723002/diff/40001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java#newcode63 customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java:63: * @return. On 2017/04/14 21:58:11, Yusuf wrote: > sorry ...
3 years, 8 months ago (2017-04-18 17:38:11 UTC) #8
Yusuf
lgtm with final styling nits https://codereview.chromium.org/2787723002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java (right): https://codereview.chromium.org/2787723002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java#newcode62 customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java:62: * Gets the icon ...
3 years, 8 months ago (2017-04-18 17:44:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2787723002/60001
3 years, 8 months ago (2017-04-18 22:24:10 UTC) #11
ltian
https://codereview.chromium.org/2787723002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java (right): https://codereview.chromium.org/2787723002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java#newcode62 customtabs/src/android/support/customtabs/browseractions/BrowserActionItem.java:62: * Gets the icon of of a custom item. ...
3 years, 8 months ago (2017-04-18 22:30:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2787723002/80001
3 years, 8 months ago (2017-04-18 22:30:41 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 22:31:38 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/GoogleChrome/custom-tabs-client/commit/5dd7021848797eea6f6...

Powered by Google App Engine
This is Rietveld 408576698