| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 viewport_meta_merge_content_quirk(false), | 202 viewport_meta_merge_content_quirk(false), |
| 203 viewport_meta_non_user_scalable_quirk(false), | 203 viewport_meta_non_user_scalable_quirk(false), |
| 204 viewport_meta_zero_values_quirk(false), | 204 viewport_meta_zero_values_quirk(false), |
| 205 clobber_user_agent_initial_scale_quirk(false), | 205 clobber_user_agent_initial_scale_quirk(false), |
| 206 ignore_main_frame_overflow_hidden_quirk(false), | 206 ignore_main_frame_overflow_hidden_quirk(false), |
| 207 report_screen_size_in_physical_pixels_quirk(false), | 207 report_screen_size_in_physical_pixels_quirk(false), |
| 208 resue_global_for_unowned_main_frame(false), | 208 resue_global_for_unowned_main_frame(false), |
| 209 progress_bar_completion(ProgressBarCompletion::LOAD_EVENT), | 209 progress_bar_completion(ProgressBarCompletion::LOAD_EVENT), |
| 210 spellcheck_enabled_by_default(true), | 210 spellcheck_enabled_by_default(true), |
| 211 video_fullscreen_orientation_lock_enabled(false), | 211 video_fullscreen_orientation_lock_enabled(false), |
| 212 video_fullscreen_detection_enabled(false), |
| 212 embedded_media_experience_enabled(false), | 213 embedded_media_experience_enabled(false), |
| 213 #else // defined(OS_ANDROID) | 214 #else // defined(OS_ANDROID) |
| 214 cross_origin_media_playback_requires_user_gesture(false), | 215 cross_origin_media_playback_requires_user_gesture(false), |
| 215 #endif // defined(OS_ANDROID) | 216 #endif // defined(OS_ANDROID) |
| 216 #if defined(OS_ANDROID) | 217 #if defined(OS_ANDROID) |
| 217 default_minimum_page_scale_factor(0.25f), | 218 default_minimum_page_scale_factor(0.25f), |
| 218 default_maximum_page_scale_factor(5.f), | 219 default_maximum_page_scale_factor(5.f), |
| 219 #elif defined(OS_MACOSX) | 220 #elif defined(OS_MACOSX) |
| 220 default_minimum_page_scale_factor(1.f), | 221 default_minimum_page_scale_factor(1.f), |
| 221 default_maximum_page_scale_factor(3.f), | 222 default_maximum_page_scale_factor(3.f), |
| (...skipping 18 matching lines...) Expand all Loading... |
| 240 pictograph_font_family_map[kCommonScript] = | 241 pictograph_font_family_map[kCommonScript] = |
| 241 base::ASCIIToUTF16("Times New Roman"); | 242 base::ASCIIToUTF16("Times New Roman"); |
| 242 } | 243 } |
| 243 | 244 |
| 244 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 245 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
| 245 | 246 |
| 246 WebPreferences::~WebPreferences() { | 247 WebPreferences::~WebPreferences() { |
| 247 } | 248 } |
| 248 | 249 |
| 249 } // namespace content | 250 } // namespace content |
| OLD | NEW |