OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |