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

Unified Diff: customtabs/src/android/support/customtabs/IPostMessageService.aidl

Issue 2591513002: Add a service to handle postMessage callbacks to client (Closed)
Patch Set: lizeb@ nits Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: customtabs/src/android/support/customtabs/IPostMessageService.aidl
diff --git a/customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl b/customtabs/src/android/support/customtabs/IPostMessageService.aidl
similarity index 61%
copy from customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl
copy to customtabs/src/android/support/customtabs/IPostMessageService.aidl
index c25c4f77df2e19766de42f4c7af77d1774a88964..2c8a605c9123ba51c83a125a1c632d57a6a1b8c9 100644
--- a/customtabs/src/android/support/customtabs/ICustomTabsCallback.aidl
+++ b/customtabs/src/android/support/customtabs/IPostMessageService.aidl
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 The Android Open Source Project
+ * Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,15 +16,15 @@
package android.support.customtabs;
+import android.net.Uri;
import android.os.Bundle;
+import android.support.customtabs.ICustomTabsCallback;
/**
- * Interface to a CustomTabsCallback.
+ * Interface to a PostMessageService.
* @hide
*/
-interface ICustomTabsCallback {
- oneway void onNavigationEvent(int navigationEvent, in Bundle extras) = 1;
- oneway void extraCallback(String callbackName, in Bundle args) = 2;
- void onMessageChannelReady(in Uri origin, in Bundle extras) = 3;
- void onPostMessage(String message, in Bundle extras) = 4;
+interface IPostMessageService {
+ void onMessageChannelReady(in ICustomTabsCallback callback, in Bundle extras) = 1;
+ void onPostMessage(in ICustomTabsCallback callback, String message, in Bundle extras) = 2;
}

Powered by Google App Engine
This is Rietveld 408576698