| 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_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 void PopulateWebPreferences(WebPreferences* web_prefs); | 40 void PopulateWebPreferences(WebPreferences* web_prefs); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 AwRenderViewHostExt* GetAwRenderViewHostExt(); | 43 AwRenderViewHostExt* GetAwRenderViewHostExt(); |
| 44 void UpdateEverything(); | 44 void UpdateEverything(); |
| 45 | 45 |
| 46 // WebContentsObserver overrides: | 46 // WebContentsObserver overrides: |
| 47 virtual void RenderViewCreated( | 47 virtual void RenderViewCreated( |
| 48 content::RenderViewHost* render_view_host) OVERRIDE; | 48 content::RenderViewHost* render_view_host) OVERRIDE; |
| 49 virtual void WebContentsDestroyed( | 49 virtual void WebContentsDestroyed() OVERRIDE; |
| 50 content::WebContents* web_contents) OVERRIDE; | |
| 51 | 50 |
| 52 bool accelerated_2d_canvas_disabled_by_switch_; | 51 bool accelerated_2d_canvas_disabled_by_switch_; |
| 53 | 52 |
| 54 bool renderer_prefs_initialized_; | 53 bool renderer_prefs_initialized_; |
| 55 | 54 |
| 56 JavaObjectWeakGlobalRef aw_settings_; | 55 JavaObjectWeakGlobalRef aw_settings_; |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 bool RegisterAwSettings(JNIEnv* env); | 58 bool RegisterAwSettings(JNIEnv* env); |
| 60 | 59 |
| 61 } // namespace android_webview | 60 } // namespace android_webview |
| 62 | 61 |
| 63 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ | 62 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ |
| OLD | NEW |