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

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

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments and ignored RWHVA functions from this patch Created 6 years, 5 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 82d79ab8a83c013bb934cf89f4da2c6535d9f1cd..4daa20185e1930876bbc169221de10bf09ae9cc6 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -819,25 +819,6 @@ scoped_refptr<cc::Layer> ContentViewCoreImpl::GetLayer() const {
// Methods called from Java via JNI
// ----------------------------------------------------------------------------
-void ContentViewCoreImpl::SelectPopupMenuItems(JNIEnv* env, jobject obj,
Yaron 2014/08/01 16:21:12 Sorry but it's unclear why this is moving.
AKVT 2014/08/01 17:09:58 I thought to untouch only RWHVA functions. This fu
Ted C 2014/08/01 17:26:20 The goal of the java WebContents class is to act a
AKVT 2014/08/02 10:03:59 Thanks Ted. I have removed this function from the
- jintArray indices) {
- RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>(
- web_contents_->GetRenderViewHost());
- DCHECK(rvhi);
- if (indices == NULL) {
- rvhi->DidCancelPopupMenu();
- return;
- }
-
- int selected_count = env->GetArrayLength(indices);
- std::vector<int> selected_indices;
- jint* indices_ptr = env->GetIntArrayElements(indices, NULL);
- for (int i = 0; i < selected_count; ++i)
- selected_indices.push_back(indices_ptr[i]);
- env->ReleaseIntArrayElements(indices, indices_ptr, JNI_ABORT);
- rvhi->DidSelectPopupMenuItems(selected_indices);
-}
-
void ContentViewCoreImpl::LoadUrl(
JNIEnv* env, jobject obj,
jstring url,
@@ -895,15 +876,6 @@ void ContentViewCoreImpl::LoadUrl(
LoadUrl(params);
}
-ScopedJavaLocalRef<jstring> ContentViewCoreImpl::GetURL(
- JNIEnv* env, jobject) const {
- return ConvertUTF8ToJavaString(env, GetWebContents()->GetURL().spec());
-}
-
-jboolean ContentViewCoreImpl::IsIncognito(JNIEnv* env, jobject obj) {
- return GetWebContents()->GetBrowserContext()->IsOffTheRecord();
-}
-
WebContents* ContentViewCoreImpl::GetWebContents() const {
return web_contents_;
}
@@ -1499,28 +1471,6 @@ void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env,
GetWebContents()->GetRoutingID(), rect));
}
-void ContentViewCoreImpl::ResumeResponseDeferredAtStart(JNIEnv* env,
- jobject obj) {
- static_cast<WebContentsImpl*>(GetWebContents())->
- ResumeResponseDeferredAtStart();
-}
-
-void ContentViewCoreImpl::SetHasPendingNavigationTransitionForTesting(
- JNIEnv* env,
- jobject obj) {
- RenderFrameHost* frame = static_cast<WebContentsImpl*>(GetWebContents())->
- GetMainFrame();
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(
- &TransitionRequestManager::SetHasPendingTransitionRequest,
- base::Unretained(TransitionRequestManager::GetInstance()),
- frame->GetProcess()->GetID(),
- frame->GetRoutingID(),
- true));
-}
-
jint ContentViewCoreImpl::GetCurrentRenderProcessId(JNIEnv* env, jobject obj) {
return GetRenderProcessIdFromRenderViewHost(
web_contents_->GetRenderViewHost());
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/web_contents/web_contents_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698