OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/public/common/web_preferences.h" | 5 #include "content/public/common/web_preferences.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 smart_insert_delete_enabled(false), | 155 smart_insert_delete_enabled(false), |
156 #endif | 156 #endif |
157 spatial_navigation_enabled(false), | 157 spatial_navigation_enabled(false), |
158 pinch_overlay_scrollbar_thickness(0), | 158 pinch_overlay_scrollbar_thickness(0), |
159 use_solid_color_scrollbars(false), | 159 use_solid_color_scrollbars(false), |
160 navigate_on_drag_drop(true), | 160 navigate_on_drag_drop(true), |
161 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), | 161 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), |
162 cookie_enabled(true), | 162 cookie_enabled(true), |
163 pepper_accelerated_video_decode_enabled(false), | 163 pepper_accelerated_video_decode_enabled(false), |
164 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), | 164 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), |
| 165 user_gesture_required_for_presentation(true), |
165 #if defined(OS_ANDROID) | 166 #if defined(OS_ANDROID) |
166 text_autosizing_enabled(true), | 167 text_autosizing_enabled(true), |
167 font_scale_factor(1.0f), | 168 font_scale_factor(1.0f), |
168 device_scale_adjustment(1.0f), | 169 device_scale_adjustment(1.0f), |
169 force_enable_zoom(false), | 170 force_enable_zoom(false), |
170 fullscreen_supported(true), | 171 fullscreen_supported(true), |
171 double_tap_to_zoom_enabled(true), | 172 double_tap_to_zoom_enabled(true), |
172 user_gesture_required_for_media_playback(true), | 173 user_gesture_required_for_media_playback(true), |
173 support_deprecated_target_density_dpi(false), | 174 support_deprecated_target_density_dpi(false), |
174 use_legacy_background_size_shorthand_behavior(false), | 175 use_legacy_background_size_shorthand_behavior(false), |
(...skipping 28 matching lines...) Expand all Loading... |
203 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 204 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
204 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 205 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
205 pictograph_font_family_map[kCommonScript] = | 206 pictograph_font_family_map[kCommonScript] = |
206 base::ASCIIToUTF16("Times New Roman"); | 207 base::ASCIIToUTF16("Times New Roman"); |
207 } | 208 } |
208 | 209 |
209 WebPreferences::~WebPreferences() { | 210 WebPreferences::~WebPreferences() { |
210 } | 211 } |
211 | 212 |
212 } // namespace content | 213 } // namespace content |
OLD | NEW |