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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 649933006: Move PostMessageToFrame to WebContentsAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address code review Created 6 years, 2 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: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index f3a1da8075085b2ef5df4884041e005c68163f85..1fde3997f52267a153ed2d816475e67a4c3eca28 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -1170,23 +1170,6 @@ public class ContentViewCore
}
/**
- * Post a message to a frame.
- * TODO(sgurun) also add support for transferring a message channel port.
- *
- * @param frameName The name of the frame. If the name is null the message is posted
- * to the main frame.
- * @param message The message
- * @param sourceOrigin The source origin
- * @param targetOrigin The target origin
- */
- public void postMessageToFrame(String frameName, String message,
- String sourceOrigin, String targetOrigin) {
- if (mNativeContentViewCore == 0) return;
- nativePostMessageToFrame(mNativeContentViewCore, frameName, message, sourceOrigin,
- targetOrigin);
- }
-
- /**
* To be called when the ContentView is shown.
*/
public void onShow() {
@@ -2908,9 +2891,6 @@ public class ContentViewCore
long nativeSelectPopupSourceFrame, int[] indices);
- private native void nativePostMessageToFrame(long nativeContentViewCoreImpl, String frameId,
- String message, String sourceOrigin, String targetOrigin);
-
private native long nativeGetNativeImeAdapter(long nativeContentViewCoreImpl);
private native int nativeGetCurrentRenderProcessId(long nativeContentViewCoreImpl);

Powered by Google App Engine
This is Rietveld 408576698