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

Side by Side Diff: customtabs/src/android/support/customtabs/ICustomTabsService.aidl

Issue 2591513002: Add a service to handle postMessage callbacks to client (Closed)
Patch Set: lizeb@ nits Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2015 The Android Open Source Project 2 * Copyright (C) 2015 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, 11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 package android.support.customtabs; 17 package android.support.customtabs;
18 18
19 import android.content.ComponentName;
19 import android.net.Uri; 20 import android.net.Uri;
20 import android.os.Bundle; 21 import android.os.Bundle;
21 import android.support.customtabs.ICustomTabsCallback; 22 import android.support.customtabs.ICustomTabsCallback;
22 23
23 import java.util.List; 24 import java.util.List;
24 25
25 /** 26 /**
26 * Interface to a CustomTabsService. 27 * Interface to a CustomTabsService.
27 * @hide 28 * @hide
28 */ 29 */
29 interface ICustomTabsService { 30 interface ICustomTabsService {
30 boolean warmup(long flags) = 1; 31 boolean warmup(long flags) = 1;
31 boolean newSession(in ICustomTabsCallback callback) = 2; 32 boolean newSession(in ICustomTabsCallback callback) = 2;
32 boolean mayLaunchUrl(in ICustomTabsCallback callback, in Uri url, 33 boolean mayLaunchUrl(in ICustomTabsCallback callback, in Uri url,
33 in Bundle extras, in List<Bundle> otherLikelyBundles) = 3; 34 in Bundle extras, in List<Bundle> otherLikelyBundles) = 3;
34 Bundle extraCommand(String commandName, in Bundle args) = 4; 35 Bundle extraCommand(String commandName, in Bundle args) = 4;
35 boolean updateVisuals(in ICustomTabsCallback callback, in Bundle bundle) = 5 ; 36 boolean updateVisuals(in ICustomTabsCallback callback, in Bundle bundle) = 5 ;
36 boolean validatePostMessageOrigin(in ICustomTabsCallback callback) = 6; 37 boolean requestPostMessageChannel(in ICustomTabsCallback callback, in Uri po stMessageOrigin) = 6;
37 int postMessage(in ICustomTabsCallback callback, String message, in Bundle e xtras) = 7; 38 int postMessage(in ICustomTabsCallback callback, String message, in Bundle e xtras) = 7;
38 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698