From 93e2b219620425bab9a50ffcc4020572997d058c Mon Sep 17 00:00:00 2001 From: "tedchoc@chromium.org" Date: Wed, 23 Apr 2014 20:48:23 +0000 Subject: Move a couple more methods to WebContents out of ContentViewCore. BUG=335690 Review URL: https://codereview.chromium.org/246633011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265730 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/web_contents/web_contents_android.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'content/browser/web_contents/web_contents_android.cc') diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc index 88922b1..fb8c0db 100644 --- a/content/browser/web_contents/web_contents_android.cc +++ b/content/browser/web_contents/web_contents_android.cc @@ -5,6 +5,7 @@ #include "content/browser/web_contents/web_contents_android.h" #include "base/android/jni_android.h" +#include "base/android/jni_string.h" #include "base/logging.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/web_contents.h" @@ -55,4 +56,14 @@ WebContentsAndroid::GetJavaObject() { return base::android::ScopedJavaLocalRef(obj_); } +ScopedJavaLocalRef WebContentsAndroid::GetTitle( + JNIEnv* env, jobject obj) const { + return base::android::ConvertUTF16ToJavaString(env, + web_contents_->GetTitle()); +} + +void WebContentsAndroid::Stop(JNIEnv* env, jobject obj) { + web_contents_->Stop(); +} + } // namespace content -- cgit v1.1