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

Unified Diff: android_webview/native/aw_contents.cc

Issue 23478022: [android_webview] Fixes for wrap_content layouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs + rebase Created 7 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index ce3678fc43cd9faaf7891d3673406ebf771285c0..2db91fa2c4d2dde0621e74685a6d9c2d2886341b 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -4,6 +4,8 @@
#include "android_webview/native/aw_contents.h"
+#include <limits>
+
#include "android_webview/browser/aw_browser_context.h"
#include "android_webview/browser/aw_browser_main_parts.h"
#include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
@@ -53,6 +55,7 @@
#include "ui/gfx/android/java_bitmap.h"
#include "ui/gfx/font_render_params_linux.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/size.h"
struct AwDrawSWFunctionTable;
struct AwDrawGLFunctionTable;
@@ -810,14 +813,21 @@ void AwContents::DidOverscroll(gfx::Vector2d overscroll_delta) {
env, obj.obj(), overscroll_delta.x(), overscroll_delta.y());
}
-void AwContents::SetDipScale(JNIEnv* env, jobject obj, jfloat dipScale) {
- browser_view_renderer_->SetDipScale(dipScale);
+void AwContents::SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale) {
+ browser_view_renderer_->SetDipScale(dip_scale);
}
void AwContents::SetDisplayedPageScaleFactor(JNIEnv* env,
jobject obj,
- jfloat pageScaleFactor) {
- browser_view_renderer_->SetPageScaleFactor(pageScaleFactor);
+ jfloat page_scale_factor) {
+ browser_view_renderer_->SetPageScaleFactor(page_scale_factor);
+}
+
+void AwContents::SetFixedLayoutSize(JNIEnv* env,
+ jobject obj,
+ jint width_dip,
+ jint height_dip) {
+ render_view_host_ext_->SetFixedLayoutSize(gfx::Size(width_dip, height_dip));
}
void AwContents::ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix) {
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698