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

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

Issue 23899004: Use contents size for android_webview layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 void ResetScrollAndScaleState(JNIEnv* env, jobject obj); 27 void ResetScrollAndScaleState(JNIEnv* env, jobject obj);
28 void UpdateEverythingLocked(JNIEnv* env, jobject obj); 28 void UpdateEverythingLocked(JNIEnv* env, jobject obj);
29 void UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj); 29 void UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj);
30 void UpdateUserAgentLocked(JNIEnv* env, jobject obj); 30 void UpdateUserAgentLocked(JNIEnv* env, jobject obj);
31 void UpdateWebkitPreferencesLocked(JNIEnv* env, jobject obj); 31 void UpdateWebkitPreferencesLocked(JNIEnv* env, jobject obj);
32 void UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj); 32 void UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj);
33 33
34 private: 34 private:
35 AwRenderViewHostExt* GetAwRenderViewHostExt(); 35 AwRenderViewHostExt* GetAwRenderViewHostExt();
36 void UpdateEverything(); 36 void UpdateEverything();
37 void UpdatePreferredSizeMode();
38 37
39 // WebContentsObserver overrides: 38 // WebContentsObserver overrides:
40 virtual void RenderViewCreated( 39 virtual void RenderViewCreated(
41 content::RenderViewHost* render_view_host) OVERRIDE; 40 content::RenderViewHost* render_view_host) OVERRIDE;
42 virtual void WebContentsDestroyed( 41 virtual void WebContentsDestroyed(
43 content::WebContents* web_contents) OVERRIDE; 42 content::WebContents* web_contents) OVERRIDE;
44 43
45 JavaObjectWeakGlobalRef aw_settings_; 44 JavaObjectWeakGlobalRef aw_settings_;
46 }; 45 };
47 46
48 bool RegisterAwSettings(JNIEnv* env); 47 bool RegisterAwSettings(JNIEnv* env);
49 48
50 } // namespace android_webview 49 } // namespace android_webview
51 50
52 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 51 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698