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