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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 #if defined(OS_ANDROID) | 212 #if defined(OS_ANDROID) |
213 default_minimum_page_scale_factor(0.25f), | 213 default_minimum_page_scale_factor(0.25f), |
214 default_maximum_page_scale_factor(5.f), | 214 default_maximum_page_scale_factor(5.f), |
215 #elif defined(OS_MACOSX) | 215 #elif defined(OS_MACOSX) |
216 default_minimum_page_scale_factor(1.f), | 216 default_minimum_page_scale_factor(1.f), |
217 default_maximum_page_scale_factor(3.f), | 217 default_maximum_page_scale_factor(3.f), |
218 #else | 218 #else |
219 default_minimum_page_scale_factor(1.f), | 219 default_minimum_page_scale_factor(1.f), |
220 default_maximum_page_scale_factor(4.f), | 220 default_maximum_page_scale_factor(4.f), |
221 #endif | 221 #endif |
222 hide_download_ui(false) { | 222 hide_download_ui(false), |
| 223 background_video_track_optimization_enabled(false) { |
223 standard_font_family_map[kCommonScript] = | 224 standard_font_family_map[kCommonScript] = |
224 base::ASCIIToUTF16("Times New Roman"); | 225 base::ASCIIToUTF16("Times New Roman"); |
225 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); | 226 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); |
226 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); | 227 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); |
227 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); | 228 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); |
228 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 229 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
229 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 230 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
230 pictograph_font_family_map[kCommonScript] = | 231 pictograph_font_family_map[kCommonScript] = |
231 base::ASCIIToUTF16("Times New Roman"); | 232 base::ASCIIToUTF16("Times New Roman"); |
232 } | 233 } |
233 | 234 |
234 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 235 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
235 | 236 |
236 WebPreferences::~WebPreferences() { | 237 WebPreferences::~WebPreferences() { |
237 } | 238 } |
238 | 239 |
239 } // namespace content | 240 } // namespace content |
OLD | NEW |