Chromium Code Reviews| 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 2af8683f70fb91163d96fe7b2e5515073a356e26..1061521e8b0c2ca6bde9d2339b4e974977c6a6fa 100644 |
| --- a/content/browser/android/content_view_core_impl.cc |
| +++ b/content/browser/android/content_view_core_impl.cc |
| @@ -21,6 +21,7 @@ |
| #include "content/browser/web_contents/navigation_controller_impl.h" |
| #include "content/browser/web_contents/navigation_entry_impl.h" |
| #include "content/browser/web_contents/web_contents_view_android.h" |
| +#include "content/common/view_messages.h" |
| #include "content/public/browser/browser_context.h" |
| #include "content/public/browser/favicon_status.h" |
| #include "content/public/browser/interstitial_page.h" |
| @@ -726,6 +727,14 @@ void ContentViewCoreImpl::RemoveJavascriptInterface(JNIEnv* env, |
| ConvertJavaStringToUTF16(env, name)); |
| } |
| +void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env, |
| + jobject obj) { |
|
Yaron
2012/10/06 01:36:40
nit: indentation
Yusuf
2012/10/08 16:49:21
Done.
|
| + RenderViewHost* host = web_contents_->GetRenderViewHost(); |
| + gfx::Rect rect; |
| + host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(), |
| + rect)); |
| +} |
| + |
| int ContentViewCoreImpl::GetNavigationHistory(JNIEnv* env, |
| jobject obj, |
| jobject context) { |
| @@ -770,6 +779,14 @@ jboolean ContentViewCoreImpl::NeedsReload(JNIEnv* env, jobject obj) { |
| return web_contents_->GetController().NeedsReload(); |
| } |
| +void ContentViewCoreImpl::UndoScrollFocusedEditableNodeIntoView( |
| + JNIEnv* env, |
| + jobject obj) { |
| + RenderViewHost* host = web_contents_->GetRenderViewHost(); |
| + host->Send( |
| + new ViewMsg_UndoScrollFocusedEditableNodeIntoView(host->GetRoutingID())); |
| +} |
| + |
| jint ContentViewCoreImpl::EvaluateJavaScript(JNIEnv* env, |
| jobject obj, |
| jstring script) { |