History log of /frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0b0fd473fdd91d31a831d7bdf52f742050747b98 08-Feb-2017 Aurimas Liutikas <aurimas@google.com> Add missing @Retention annotation for CustomTabsService.Result

I filled a bug to turn this into a build failure next time b/35123784

Test: gradle no longer complains about missing annotation.
Bug: None
Change-Id: I6634c8a2e354525a4aa7f78edb06960554d00fc1
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
914073c7cf933229a3f51ddeddb63bb9725a70be 30-Jan-2017 Yusuf Ozuysal <yusufo@google.com> Add postMessage APIs to customtabs support lib

Adds CustomTabsSession#requestPostMessageChannel,
CustomTabsSession#postMessage,
CustomTabsCallback#onMessageChannelCreated,
CustomTabsCallback#onPostMessage for sending an receiving postMessage
requests to the mainframe of the initial url.

Adds PostMessageService and PostMessageServiceConnection for handling
the browser->client callback lifecycle and message routing

BUG=32809427
Test: android.support.customtabs.PostMessageTest, android.support.customtabs.PostMessageConnectionTest

Change-Id: I3324a382b81fad97000d48389f4a0411e0b6f89e
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
f2fe06734fa162d7d49f4891b7052bba8f19f50c 08-Sep-2015 Yusuf Ozuysal <yusufo@google.com> [Custom Tabs] Add updateVisuals() in CustomTabsService

In ICustomTabsService.aidl, updateVisuals() is a generic API that
takes a bundle and an IBinder. The bundle needs to have the same structure as
a custom tabs VIEW INTENT, in terms of UI customizations.

In CustomTabsSession, a public method is created for updating the action
button for the current session with a new Bitmap icon and new content
description.

Change-Id: I6f30da7c524599342997987081838c73a54e4880
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
0a2d9ca046eb9f4da51929356b2018574104a5f9 25-Aug-2015 Yusuf Ozuysal <yusufo@google.com> am 8e6b300a: am c8e7be13: am c5c0045d: Reland: Add a way of generating a CustomTabsSessionToken from an intent

* commit '8e6b300ad5d86dde84ddc2dcdfedf4b1d8a21538':
Reland: Add a way of generating a CustomTabsSessionToken from an intent
c5c0045de7c8848144a570665e0d3c950816f314 20-Aug-2015 Yusuf Ozuysal <yusufo@google.com> Reland: Add a way of generating a CustomTabsSessionToken from an intent

Currently there is no way of obtaining a session token from an
intent on the browser side. We add the session's ICustomTabsCallback
to the intent with CustomTabsIntent.Builder constructor but since
CustomTabsSessionToken don't have any public constructors and
ICustomTabsCallback is hidden we can't generate one using the IBinder
we got from the intent.

This change add a support library convenience call to do all this
behind the scenes.

Reviewed: https://googleplex-android-review.git.corp.google.com/#/c/755029/
Fixed: Javadoc link in BundleCompat.java

b/23389835

Change-Id: I63468335c6cb1389a8ecd89b151f7177aa733f08
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
9e7466f6a2897f03d4bdabba67d589bd44c6b2ee 25-Aug-2015 Yusuf Ozuysal <yusufo@google.com> am ccf4675e: am d5cb7b5a: am 914c8c87: Merge "Revert "Add a way of generating a CustomTabsSessionToken from an intent"" into mnc-dev

* commit 'ccf4675e0c12bb4765222529341ce2ab479e50ba':
Revert "Add a way of generating a CustomTabsSessionToken from an intent"
e063d4d36883c9f7ca100036b9344b665ab6fd1e 24-Aug-2015 Yusuf Ozuysal <yusufo@google.com> Revert "Add a way of generating a CustomTabsSessionToken from an intent"

This reverts commit c502e639bdb79fa04454641310f8965d0ffe0191.

Change-Id: I89d1315200de3fa0c3d80522eda56f9db910fdf8
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
60f79822fa79b180f292e789bf0d45ada121c33e 24-Aug-2015 Yusuf Ozuysal <yusufo@google.com> am fdf87001: am b0d449b9: am 7f2ba521: Merge "Add a way of generating a CustomTabsSessionToken from an intent" into mnc-dev

* commit 'fdf8700100328aa698c90578cecea9818958dee4':
Add a way of generating a CustomTabsSessionToken from an intent
c502e639bdb79fa04454641310f8965d0ffe0191 20-Aug-2015 Yusuf Ozuysal <yusufo@google.com> Add a way of generating a CustomTabsSessionToken from an intent

Currently there is no way of obtaining a session token from an
intent on the browser side. We add the session's ICustomTabsCallback
to the intent with CustomTabsIntent.Builder constructor but since
CustomTabsSessionToken don't have any public constructors and
ICustomTabsCallback is hidden we can't generate one using the IBinder
we got from the intent.

This change add a support library convenience call to do all this
behind the scenes.

b/23389835

Change-Id: Iff0b28c2f85d0400646517dacacfa947a6e556f7
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
9440f0b000fc2740382eb4ae5f1afec58c245c2c 19-Aug-2015 Yusuf Ozuysal <yusufo@google.com> Updates to customtabs support library

- Add an extra to enable url bar hiding
- Add an extra to declare whether the action button should be tinted
by implementation
- Add two more callback signals for tab shown/hidden
- Declare a syncronized field final in CustomTabsService

Change-Id: If049b4601967ddef27808715cf59ea9a9a62502e
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
689e91d33a4c181f0fe529adcf765930ea8907e0 07-Aug-2015 Benoit Lize <lizeb@google.com> Reland "customtabs: Add "extraCommand" and "extraCallback", for unsupported commands"

Change: Added missing import.

Original commit message:
This adds a new AIDL method, extraCommand(String, Bundle). It is
intended to allow implementations to add extra unsupported commands
forcetesting or experimental purposes. These are not intended to be
documented, and should be either internal (for testing) or transient (as
a testing ground before adding them as a proper AIDL method).

In Chromium's case, this command will be used for these two purposes.

In the same fashion, this also introduces an "extra" callback.

Change-Id: Idb375bc701f434b4fe76ee93c8a2596716b36047
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
e0c6f48d5720470e799122532699fc89d5165307 07-Aug-2015 Ian Wen <ianwen@google.com> Merge "Revert "customtabs: Add "extraCommand" and "extraCallback", for unsupported commands"" into mnc-dev
ee8b0611c54393060684c7cb6f8315b6365bb4b1 07-Aug-2015 Ian Wen <ianwen@google.com> Revert "customtabs: Add "extraCommand" and "extraCallback", for unsupported commands"

This reverts commit c08c466b732ff72ceb0df89c4b78362e1948c356.

Change-Id: I3179a36b7b1da7a96a3e5a0697605d3423ea755d
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
0384004c82ef83c2de4fdfdd73585a1ae212f838 07-Aug-2015 Yusuf Ozuysal <yusufo@google.com> Merge "customtabs: Add "extraCommand" and "extraCallback", for unsupported commands" into mnc-dev
97ee4f3f353309991efd3ceca369548b485e9a5f 31-Jul-2015 Benoit Lize <lizeb@google.com> customtabs: Add a Builder class for UI customizations.

Also add customtabs to settings.gradle.

Change-Id: I96be920e25f2439898025b695b75da2e7b133e84
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
c08c466b732ff72ceb0df89c4b78362e1948c356 31-Jul-2015 Benoit Lize <lizeb@google.com> customtabs: Add "extraCommand" and "extraCallback", for unsupported commands

This adds a new AIDL method, extraCommand(String, Bundle). It is
intended to allow implementations to add extra unsupported commands
forcetesting or experimental purposes. These are not intended to be
documented, and should be either internal (for testing) or transient (as
a testing ground before adding them as a proper AIDL method).

In Chromium's case, this command will be used for these two purposes.

In the same fashion, this also introduces an "extra" callback.

Change-Id: I468a6f7bbf82a83bb480ff41e1239dc8c8254a40
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java
08889acbc842c73b64f94a761910154d9d42ee4c 18-Jun-2015 Yusuf Ozuysal <yusufo@google.com> Add /customtabs for Custom Tabs support library

This adds the extras and keys that will be used for
customizing the UI and functionality of the custom tab.
It also contains two aidls that will be used for interfacing
with the service that the custom tab provider will implement.

For chrome implementation documentation see:
https://developer.chrome.com/multidevice/android/customtabs

Change-Id: I712cd82c94ceab820737f6e38e4783fabef51791
/frameworks/support/customtabs/src/android/support/customtabs/CustomTabsService.java