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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 #if defined(OS_MACOSX) | 153 #if defined(OS_MACOSX) |
154 smart_insert_delete_enabled(true), | 154 smart_insert_delete_enabled(true), |
155 #else | 155 #else |
156 smart_insert_delete_enabled(false), | 156 smart_insert_delete_enabled(false), |
157 #endif | 157 #endif |
158 spatial_navigation_enabled(false), | 158 spatial_navigation_enabled(false), |
159 pinch_overlay_scrollbar_thickness(0), | 159 pinch_overlay_scrollbar_thickness(0), |
160 use_solid_color_scrollbars(false), | 160 use_solid_color_scrollbars(false), |
161 navigate_on_drag_drop(true), | 161 navigate_on_drag_drop(true), |
162 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), | 162 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), |
| 163 inert_visual_viewport(false), |
163 cookie_enabled(true), | 164 cookie_enabled(true), |
164 pepper_accelerated_video_decode_enabled(false), | 165 pepper_accelerated_video_decode_enabled(false), |
165 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), | 166 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), |
166 user_gesture_required_for_presentation(true), | 167 user_gesture_required_for_presentation(true), |
167 #if defined(OS_ANDROID) | 168 #if defined(OS_ANDROID) |
168 text_autosizing_enabled(true), | 169 text_autosizing_enabled(true), |
169 font_scale_factor(1.0f), | 170 font_scale_factor(1.0f), |
170 device_scale_adjustment(1.0f), | 171 device_scale_adjustment(1.0f), |
171 force_enable_zoom(false), | 172 force_enable_zoom(false), |
172 fullscreen_supported(true), | 173 fullscreen_supported(true), |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 206 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
206 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 207 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
207 pictograph_font_family_map[kCommonScript] = | 208 pictograph_font_family_map[kCommonScript] = |
208 base::ASCIIToUTF16("Times New Roman"); | 209 base::ASCIIToUTF16("Times New Roman"); |
209 } | 210 } |
210 | 211 |
211 WebPreferences::~WebPreferences() { | 212 WebPreferences::~WebPreferences() { |
212 } | 213 } |
213 | 214 |
214 } // namespace content | 215 } // namespace content |
OLD | NEW |