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

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

Issue 10913277: Upstream ContentViewCore.pageUp/pageDown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates based on feedback comments Created 8 years, 3 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 0f57ec7123150788e271cc34ab08c3527eebeb93..2bfd79be95bbba2e614f7780b889c204b8fc68c6 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -582,6 +582,24 @@ void ContentViewCoreImpl::OnTabCrashed(const base::ProcessHandle handle) {
NOTIMPLEMENTED() << "not upstreamed yet";
}
+void ContentViewCoreImpl::UpdateContentSize(int width, int height) {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return;
+ Java_ContentViewCore_updateContentSize(env, obj.obj(), width, height);
+}
+
+void ContentViewCoreImpl::UpdateScrollOffsetAndPageScaleFactor(int x, int y,
+ float scale) {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return;
+ Java_ContentViewCore_updateScrollOffsetAndPageScaleFactor(env, obj.obj(), x,
+ y, scale);
+}
+
void ContentViewCoreImpl::ImeUpdateAdapter(int native_ime_adapter,
int text_input_type,
const std::string& text,

Powered by Google App Engine
This is Rietveld 408576698