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(); | 37 void UpdateContentSizeNotificationMode(JNIEnv* env, jobject obj); |
benm (inactive)
2013/09/12 19:13:06
nit: if I follow this should be TurnOnContentSizeN
mkosiba (inactive)
2013/09/16 01:49:09
ah, yes, good spot.
| |
38 | 38 |
39 // WebContentsObserver overrides: | 39 // WebContentsObserver overrides: |
40 virtual void RenderViewCreated( | 40 virtual void RenderViewCreated( |
41 content::RenderViewHost* render_view_host) OVERRIDE; | 41 content::RenderViewHost* render_view_host) OVERRIDE; |
42 virtual void WebContentsDestroyed( | 42 virtual void WebContentsDestroyed( |
43 content::WebContents* web_contents) OVERRIDE; | 43 content::WebContents* web_contents) OVERRIDE; |
44 | 44 |
45 JavaObjectWeakGlobalRef aw_settings_; | 45 JavaObjectWeakGlobalRef aw_settings_; |
46 }; | 46 }; |
47 | 47 |
48 bool RegisterAwSettings(JNIEnv* env); | 48 bool RegisterAwSettings(JNIEnv* env); |
49 | 49 |
50 } // namespace android_webview | 50 } // namespace android_webview |
51 | 51 |
52 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ | 52 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ |
OLD | NEW |