| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 default_minimum_page_scale_factor(1.f), | 218 default_minimum_page_scale_factor(1.f), |
| 219 default_maximum_page_scale_factor(3.f), | 219 default_maximum_page_scale_factor(3.f), |
| 220 #else | 220 #else |
| 221 default_minimum_page_scale_factor(1.f), | 221 default_minimum_page_scale_factor(1.f), |
| 222 default_maximum_page_scale_factor(4.f), | 222 default_maximum_page_scale_factor(4.f), |
| 223 #endif | 223 #endif |
| 224 hide_download_ui(false), | 224 hide_download_ui(false), |
| 225 background_video_track_optimization_enabled(false), | 225 background_video_track_optimization_enabled(false), |
| 226 max_keyframe_distance_to_disable_background_video( | 226 max_keyframe_distance_to_disable_background_video( |
| 227 base::TimeDelta::FromSeconds(10)), | 227 base::TimeDelta::FromSeconds(10)), |
| 228 enable_instant_source_buffer_gc(false), |
| 228 presentation_receiver(false) { | 229 presentation_receiver(false) { |
| 229 standard_font_family_map[kCommonScript] = | 230 standard_font_family_map[kCommonScript] = |
| 230 base::ASCIIToUTF16("Times New Roman"); | 231 base::ASCIIToUTF16("Times New Roman"); |
| 231 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); | 232 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); |
| 232 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); | 233 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); |
| 233 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); | 234 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); |
| 234 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 235 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
| 235 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 236 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
| 236 pictograph_font_family_map[kCommonScript] = | 237 pictograph_font_family_map[kCommonScript] = |
| 237 base::ASCIIToUTF16("Times New Roman"); | 238 base::ASCIIToUTF16("Times New Roman"); |
| 238 } | 239 } |
| 239 | 240 |
| 240 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 241 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
| 241 | 242 |
| 242 WebPreferences::~WebPreferences() { | 243 WebPreferences::~WebPreferences() { |
| 243 } | 244 } |
| 244 | 245 |
| 245 } // namespace content | 246 } // namespace content |
| OLD | NEW |