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