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

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

Issue 11081003: Upstream scrollFocusedNodeIntoRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fix Created 8 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
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d3527693914fc97cfb1c43c85dc066d156906fb0 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,13 @@ void ContentViewCoreImpl::RemoveJavascriptInterface(JNIEnv* env,
ConvertJavaStringToUTF16(env, name));
}
+void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env,
+ jobject obj) {
+ RenderViewHost* host = web_contents_->GetRenderViewHost();
+ host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(),
+ gfx::Rect()));
+}
+
int ContentViewCoreImpl::GetNavigationHistory(JNIEnv* env,
jobject obj,
jobject context) {
@@ -770,6 +778,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) {
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698