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

Side by Side Diff: android_webview/native/aw_settings.h

Issue 12567020: [android] Resize the android_webview if it's 0x0 initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 15 matching lines...) Expand all
26 void SetEnableFixedLayoutMode(JNIEnv* env, jobject obj, jboolean enabled); 26 void SetEnableFixedLayoutMode(JNIEnv* env, jobject obj, jboolean enabled);
27 void SetInitialPageScale(JNIEnv* env, jobject obj, jfloat page_scale_percent); 27 void SetInitialPageScale(JNIEnv* env, jobject obj, jfloat page_scale_percent);
28 void SetTextZoom(JNIEnv* env, jobject obj, jint text_zoom_percent); 28 void SetTextZoom(JNIEnv* env, jobject obj, jint text_zoom_percent);
29 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents); 29 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents);
30 30
31 private: 31 private:
32 AwRenderViewHostExt* GetAwRenderViewHostExt(); 32 AwRenderViewHostExt* GetAwRenderViewHostExt();
33 void UpdateEnableFixedLayoutMode(); 33 void UpdateEnableFixedLayoutMode();
34 void UpdateInitialPageScale(); 34 void UpdateInitialPageScale();
35 void UpdateTextZoom(); 35 void UpdateTextZoom();
36 void UpdatePreferredSizeMode(content::RenderViewHost* render_view_host);
37 void UpdateRenderViewHostExtSettings();
38 void UpdateRenderViewHostSettings(content::RenderViewHost* render_view_host);
36 39
37 // WebContentsObserver overrides: 40 // WebContentsObserver overrides:
38 virtual void RenderViewCreated( 41 virtual void RenderViewCreated(
39 content::RenderViewHost* render_view_host) OVERRIDE; 42 content::RenderViewHost* render_view_host) OVERRIDE;
40 43
41 JavaObjectWeakGlobalRef java_ref_; 44 JavaObjectWeakGlobalRef java_ref_;
42 bool enable_fixed_layout_; 45 bool enable_fixed_layout_;
43 float initial_page_scale_percent_; 46 float initial_page_scale_percent_;
44 int text_zoom_percent_; 47 int text_zoom_percent_;
45 }; 48 };
46 49
47 bool RegisterAwSettings(JNIEnv* env); 50 bool RegisterAwSettings(JNIEnv* env);
48 51
49 } // namespace android_webview 52 } // namespace android_webview
50 53
51 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 54 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698