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

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

Issue 944053004: OffscreenPreRaster and its plumbings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« 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_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 20 matching lines...) Expand all
31 // access lock is held during their execution. 31 // access lock is held during their execution.
32 void Destroy(JNIEnv* env, jobject obj); 32 void Destroy(JNIEnv* env, jobject obj);
33 void PopulateWebPreferencesLocked(JNIEnv* env, jobject obj, jlong web_prefs); 33 void PopulateWebPreferencesLocked(JNIEnv* env, jobject obj, jlong web_prefs);
34 void ResetScrollAndScaleState(JNIEnv* env, jobject obj); 34 void ResetScrollAndScaleState(JNIEnv* env, jobject obj);
35 void UpdateEverythingLocked(JNIEnv* env, jobject obj); 35 void UpdateEverythingLocked(JNIEnv* env, jobject obj);
36 void UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj); 36 void UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj);
37 void UpdateUserAgentLocked(JNIEnv* env, jobject obj); 37 void UpdateUserAgentLocked(JNIEnv* env, jobject obj);
38 void UpdateWebkitPreferencesLocked(JNIEnv* env, jobject obj); 38 void UpdateWebkitPreferencesLocked(JNIEnv* env, jobject obj);
39 void UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj); 39 void UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj);
40 void UpdateRendererPreferencesLocked(JNIEnv* env, jobject obj); 40 void UpdateRendererPreferencesLocked(JNIEnv* env, jobject obj);
41 void UpdateOffscreenPreRasterLocked(JNIEnv* env, jobject obj);
41 42
42 void PopulateWebPreferences(content::WebPreferences* web_prefs); 43 void PopulateWebPreferences(content::WebPreferences* web_prefs);
43 44
44 private: 45 private:
45 AwRenderViewHostExt* GetAwRenderViewHostExt(); 46 AwRenderViewHostExt* GetAwRenderViewHostExt();
46 void UpdateEverything(); 47 void UpdateEverything();
47 48
48 // WebContentsObserver overrides: 49 // WebContentsObserver overrides:
49 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 50 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
50 void WebContentsDestroyed() override; 51 void WebContentsDestroyed() override;
51 52
52 bool renderer_prefs_initialized_; 53 bool renderer_prefs_initialized_;
53 54
54 JavaObjectWeakGlobalRef aw_settings_; 55 JavaObjectWeakGlobalRef aw_settings_;
55 }; 56 };
56 57
57 bool RegisterAwSettings(JNIEnv* env); 58 bool RegisterAwSettings(JNIEnv* env);
58 59
59 } // namespace android_webview 60 } // namespace android_webview
60 61
61 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 62 #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