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