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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 #if defined(OS_MACOSX) | 166 #if defined(OS_MACOSX) |
167 smart_insert_delete_enabled(true), | 167 smart_insert_delete_enabled(true), |
168 #else | 168 #else |
169 smart_insert_delete_enabled(false), | 169 smart_insert_delete_enabled(false), |
170 #endif | 170 #endif |
171 spatial_navigation_enabled(false), | 171 spatial_navigation_enabled(false), |
172 pinch_overlay_scrollbar_thickness(0), | 172 pinch_overlay_scrollbar_thickness(0), |
173 use_solid_color_scrollbars(false), | 173 use_solid_color_scrollbars(false), |
174 navigate_on_drag_drop(true), | 174 navigate_on_drag_drop(true), |
175 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), | 175 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), |
| 176 inert_visual_viewport(false), |
176 cookie_enabled(true), | 177 cookie_enabled(true), |
177 pepper_accelerated_video_decode_enabled(false), | 178 pepper_accelerated_video_decode_enabled(false), |
178 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), | 179 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), |
179 #if defined(OS_ANDROID) | 180 #if defined(OS_ANDROID) |
180 text_autosizing_enabled(true), | 181 text_autosizing_enabled(true), |
181 font_scale_factor(1.0f), | 182 font_scale_factor(1.0f), |
182 device_scale_adjustment(1.0f), | 183 device_scale_adjustment(1.0f), |
183 force_enable_zoom(false), | 184 force_enable_zoom(false), |
184 fullscreen_supported(true), | 185 fullscreen_supported(true), |
185 double_tap_to_zoom_enabled(true), | 186 double_tap_to_zoom_enabled(true), |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 218 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
218 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 219 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
219 pictograph_font_family_map[kCommonScript] = | 220 pictograph_font_family_map[kCommonScript] = |
220 base::ASCIIToUTF16("Times New Roman"); | 221 base::ASCIIToUTF16("Times New Roman"); |
221 } | 222 } |
222 | 223 |
223 WebPreferences::~WebPreferences() { | 224 WebPreferences::~WebPreferences() { |
224 } | 225 } |
225 | 226 |
226 } // namespace content | 227 } // namespace content |
OLD | NEW |