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 #include "android_webview/native/aw_settings.h" | 5 #include "android_webview/native/aw_settings.h" |
6 | 6 |
7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" | 7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" |
8 #include "android_webview/common/aw_content_client.h" | 8 #include "android_webview/common/aw_content_client.h" |
9 #include "android_webview/native/aw_contents.h" | 9 #include "android_webview/native/aw_contents.h" |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/supports_user_data.h" | 13 #include "base/supports_user_data.h" |
14 #include "content/public/browser/navigation_controller.h" | 14 #include "content/public/browser/navigation_controller.h" |
15 #include "content/public/browser/navigation_entry.h" | 15 #include "content/public/browser/navigation_entry.h" |
16 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "content/public/common/renderer_preferences.h" | 19 #include "content/public/common/renderer_preferences.h" |
20 #include "content/public/common/web_preferences.h" | 20 #include "content/public/common/web_preferences.h" |
21 #include "jni/AwSettings_jni.h" | 21 #include "jni/AwSettings_jni.h" |
22 #include "ui/gfx/font_render_params_linux.h" | 22 #include "ui/gfx/font_render_params.h" |
23 | 23 |
24 using base::android::ConvertJavaStringToUTF16; | 24 using base::android::ConvertJavaStringToUTF16; |
25 using base::android::ConvertUTF8ToJavaString; | 25 using base::android::ConvertUTF8ToJavaString; |
26 using base::android::ScopedJavaLocalRef; | 26 using base::android::ScopedJavaLocalRef; |
27 using content::RendererPreferences; | 27 using content::RendererPreferences; |
28 using content::WebPreferences; | 28 using content::WebPreferences; |
29 | 29 |
30 namespace android_webview { | 30 namespace android_webview { |
31 | 31 |
32 namespace { | 32 namespace { |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) { | 443 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) { |
444 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent()).Release(); | 444 return base::android::ConvertUTF8ToJavaString(env, GetUserAgent()).Release(); |
445 } | 445 } |
446 | 446 |
447 bool RegisterAwSettings(JNIEnv* env) { | 447 bool RegisterAwSettings(JNIEnv* env) { |
448 return RegisterNativesImpl(env); | 448 return RegisterNativesImpl(env); |
449 } | 449 } |
450 | 450 |
451 } // namespace android_webview | 451 } // namespace android_webview |
OLD | NEW |