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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 649933006: Move PostMessageToFrame to WebContentsAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 54bb4fccb1220bb5003e85d787660192f5a53560..6a022123ba4b31b670f84b17b41f74875e34edf5 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1145,25 +1145,6 @@ long ContentViewCoreImpl::GetNativeImeAdapter(JNIEnv* env, jobject obj) {
return rwhva->GetNativeImeAdapter();
}
-// TODO(sgurun) add support for posting a frame whose name is known (only
-// main frame is supported at this time, see crbug.com/389721)
-// TODO(sgurun) add support for passing message ports
-void ContentViewCoreImpl::PostMessageToFrame(JNIEnv* env, jobject obj,
- jstring frame_name, jstring message, jstring source_origin,
- jstring target_origin) {
-
- RenderViewHost* host = web_contents_->GetRenderViewHost();
- if (!host)
- return;
- ViewMsg_PostMessage_Params params;
- params.source_origin = ConvertJavaStringToUTF16(env, source_origin);
- params.target_origin = ConvertJavaStringToUTF16(env, target_origin);
- params.data = ConvertJavaStringToUTF16(env, message);
- params.is_data_raw_string = true;
- params.source_routing_id = MSG_ROUTING_NONE;
- host->Send(new ViewMsg_PostMessageEvent(host->GetRoutingID(), params));
-}
-
void ContentViewCoreImpl::UpdateImeAdapter(long native_ime_adapter,
int text_input_type,
int text_input_flags,

Powered by Google App Engine
This is Rietveld 408576698