| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 use_wide_viewport(true), | 187 use_wide_viewport(true), |
| 188 force_zero_layout_height(false), | 188 force_zero_layout_height(false), |
| 189 viewport_meta_layout_size_quirk(false), | 189 viewport_meta_layout_size_quirk(false), |
| 190 viewport_meta_merge_content_quirk(false), | 190 viewport_meta_merge_content_quirk(false), |
| 191 viewport_meta_non_user_scalable_quirk(false), | 191 viewport_meta_non_user_scalable_quirk(false), |
| 192 viewport_meta_zero_values_quirk(false), | 192 viewport_meta_zero_values_quirk(false), |
| 193 clobber_user_agent_initial_scale_quirk(false), | 193 clobber_user_agent_initial_scale_quirk(false), |
| 194 ignore_main_frame_overflow_hidden_quirk(false), | 194 ignore_main_frame_overflow_hidden_quirk(false), |
| 195 report_screen_size_in_physical_pixels_quirk(false), | 195 report_screen_size_in_physical_pixels_quirk(false), |
| 196 resue_global_for_unowned_main_frame(false), | 196 resue_global_for_unowned_main_frame(false), |
| 197 autoplay_muted_videos_enabled(false), |
| 197 #endif | 198 #endif |
| 198 #if defined(OS_ANDROID) | 199 #if defined(OS_ANDROID) |
| 199 default_minimum_page_scale_factor(0.25f), | 200 default_minimum_page_scale_factor(0.25f), |
| 200 default_maximum_page_scale_factor(5.f) | 201 default_maximum_page_scale_factor(5.f) |
| 201 #elif defined(OS_MACOSX) | 202 #elif defined(OS_MACOSX) |
| 202 default_minimum_page_scale_factor(1.f), | 203 default_minimum_page_scale_factor(1.f), |
| 203 default_maximum_page_scale_factor(3.f) | 204 default_maximum_page_scale_factor(3.f) |
| 204 #else | 205 #else |
| 205 default_minimum_page_scale_factor(1.f), | 206 default_minimum_page_scale_factor(1.f), |
| 206 default_maximum_page_scale_factor(4.f) | 207 default_maximum_page_scale_factor(4.f) |
| 207 #endif | 208 #endif |
| 208 { | 209 { |
| 209 standard_font_family_map[kCommonScript] = | 210 standard_font_family_map[kCommonScript] = |
| 210 base::ASCIIToUTF16("Times New Roman"); | 211 base::ASCIIToUTF16("Times New Roman"); |
| 211 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); | 212 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); |
| 212 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); | 213 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); |
| 213 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); | 214 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); |
| 214 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 215 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
| 215 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 216 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
| 216 pictograph_font_family_map[kCommonScript] = | 217 pictograph_font_family_map[kCommonScript] = |
| 217 base::ASCIIToUTF16("Times New Roman"); | 218 base::ASCIIToUTF16("Times New Roman"); |
| 218 } | 219 } |
| 219 | 220 |
| 220 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 221 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
| 221 | 222 |
| 222 WebPreferences::~WebPreferences() { | 223 WebPreferences::~WebPreferences() { |
| 223 } | 224 } |
| 224 | 225 |
| 225 } // namespace content | 226 } // namespace content |
| OLD | NEW |