| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 cookie_enabled(true), | 131 cookie_enabled(true), |
| 132 pepper_accelerated_video_decode_enabled(false) | 132 pepper_accelerated_video_decode_enabled(false) |
| 133 #if defined(OS_ANDROID) | 133 #if defined(OS_ANDROID) |
| 134 , | 134 , |
| 135 text_autosizing_enabled(true), | 135 text_autosizing_enabled(true), |
| 136 font_scale_factor(1.0f), | 136 font_scale_factor(1.0f), |
| 137 device_scale_adjustment(1.0f), | 137 device_scale_adjustment(1.0f), |
| 138 force_enable_zoom(false), | 138 force_enable_zoom(false), |
| 139 disallow_fullscreen_for_non_media_elements(false), | 139 disallow_fullscreen_for_non_media_elements(false), |
| 140 double_tap_to_zoom_enabled(true), | 140 double_tap_to_zoom_enabled(true), |
| 141 user_gesture_required_for_media_playback(true), | 141 user_gesture_required_for_media_playback(false), |
| 142 support_deprecated_target_density_dpi(false), | 142 support_deprecated_target_density_dpi(false), |
| 143 use_legacy_background_size_shorthand_behavior(false), | 143 use_legacy_background_size_shorthand_behavior(false), |
| 144 wide_viewport_quirk(false), | 144 wide_viewport_quirk(false), |
| 145 use_wide_viewport(true), | 145 use_wide_viewport(true), |
| 146 viewport_meta_layout_size_quirk(false), | 146 viewport_meta_layout_size_quirk(false), |
| 147 viewport_meta_merge_content_quirk(false), | 147 viewport_meta_merge_content_quirk(false), |
| 148 viewport_meta_non_user_scalable_quirk(false), | 148 viewport_meta_non_user_scalable_quirk(false), |
| 149 viewport_meta_zero_values_quirk(false), | 149 viewport_meta_zero_values_quirk(false), |
| 150 clobber_user_agent_initial_scale_quirk(false), | 150 clobber_user_agent_initial_scale_quirk(false), |
| 151 ignore_main_frame_overflow_hidden_quirk(false), | 151 ignore_main_frame_overflow_hidden_quirk(false), |
| 152 report_screen_size_in_physical_pixels_quirk(false) | 152 report_screen_size_in_physical_pixels_quirk(false) |
| 153 #endif | 153 #endif |
| 154 { | 154 { |
| 155 standard_font_family_map[kCommonScript] = | 155 standard_font_family_map[kCommonScript] = |
| 156 base::ASCIIToUTF16("Times New Roman"); | 156 base::ASCIIToUTF16("Times New Roman"); |
| 157 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); | 157 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); |
| 158 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); | 158 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); |
| 159 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); | 159 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); |
| 160 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 160 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
| 161 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 161 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
| 162 pictograph_font_family_map[kCommonScript] = | 162 pictograph_font_family_map[kCommonScript] = |
| 163 base::ASCIIToUTF16("Times New Roman"); | 163 base::ASCIIToUTF16("Times New Roman"); |
| 164 } | 164 } |
| 165 | 165 |
| 166 WebPreferences::~WebPreferences() { | 166 WebPreferences::~WebPreferences() { |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace content | 169 } // namespace content |
| OLD | NEW |