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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 v8_cache_options(V8_CACHE_OPTIONS_OFF), | 139 v8_cache_options(V8_CACHE_OPTIONS_OFF), |
140 v8_script_streaming_enabled(false), | 140 v8_script_streaming_enabled(false), |
141 cookie_enabled(true), | 141 cookie_enabled(true), |
142 pepper_accelerated_video_decode_enabled(false) | 142 pepper_accelerated_video_decode_enabled(false) |
143 #if defined(OS_ANDROID) | 143 #if defined(OS_ANDROID) |
144 , | 144 , |
145 text_autosizing_enabled(true), | 145 text_autosizing_enabled(true), |
146 font_scale_factor(1.0f), | 146 font_scale_factor(1.0f), |
147 device_scale_adjustment(1.0f), | 147 device_scale_adjustment(1.0f), |
148 force_enable_zoom(false), | 148 force_enable_zoom(false), |
149 disallow_fullscreen_for_non_media_elements(false), | |
150 fullscreen_supported(true), | 149 fullscreen_supported(true), |
151 double_tap_to_zoom_enabled(true), | 150 double_tap_to_zoom_enabled(true), |
152 user_gesture_required_for_media_playback(true), | 151 user_gesture_required_for_media_playback(true), |
153 support_deprecated_target_density_dpi(false), | 152 support_deprecated_target_density_dpi(false), |
154 use_legacy_background_size_shorthand_behavior(false), | 153 use_legacy_background_size_shorthand_behavior(false), |
155 wide_viewport_quirk(false), | 154 wide_viewport_quirk(false), |
156 use_wide_viewport(true), | 155 use_wide_viewport(true), |
157 force_zero_layout_height(false), | 156 force_zero_layout_height(false), |
158 viewport_meta_layout_size_quirk(false), | 157 viewport_meta_layout_size_quirk(false), |
159 viewport_meta_merge_content_quirk(false), | 158 viewport_meta_merge_content_quirk(false), |
(...skipping 12 matching lines...) Expand all Loading... |
172 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 171 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
173 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 172 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
174 pictograph_font_family_map[kCommonScript] = | 173 pictograph_font_family_map[kCommonScript] = |
175 base::ASCIIToUTF16("Times New Roman"); | 174 base::ASCIIToUTF16("Times New Roman"); |
176 } | 175 } |
177 | 176 |
178 WebPreferences::~WebPreferences() { | 177 WebPreferences::~WebPreferences() { |
179 } | 178 } |
180 | 179 |
181 } // namespace content | 180 } // namespace content |
OLD | NEW |