| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 wide_viewport_quirk(false), | 176 wide_viewport_quirk(false), |
| 177 use_wide_viewport(true), | 177 use_wide_viewport(true), |
| 178 force_zero_layout_height(false), | 178 force_zero_layout_height(false), |
| 179 viewport_meta_layout_size_quirk(false), | 179 viewport_meta_layout_size_quirk(false), |
| 180 viewport_meta_merge_content_quirk(false), | 180 viewport_meta_merge_content_quirk(false), |
| 181 viewport_meta_non_user_scalable_quirk(false), | 181 viewport_meta_non_user_scalable_quirk(false), |
| 182 viewport_meta_zero_values_quirk(false), | 182 viewport_meta_zero_values_quirk(false), |
| 183 clobber_user_agent_initial_scale_quirk(false), | 183 clobber_user_agent_initial_scale_quirk(false), |
| 184 ignore_main_frame_overflow_hidden_quirk(false), | 184 ignore_main_frame_overflow_hidden_quirk(false), |
| 185 report_screen_size_in_physical_pixels_quirk(false), | 185 report_screen_size_in_physical_pixels_quirk(false), |
| 186 #endif |
| 187 #if defined(OS_ANDROID) || defined(ENABLE_BLIMP_WEB_PREFS) |
| 186 record_whole_document(false), | 188 record_whole_document(false), |
| 187 #endif | 189 #endif |
| 188 #if defined(OS_ANDROID) | 190 #if defined(OS_ANDROID) |
| 189 default_minimum_page_scale_factor(0.25f), | 191 default_minimum_page_scale_factor(0.25f), |
| 190 default_maximum_page_scale_factor(5.f) | 192 default_maximum_page_scale_factor(5.f) |
| 191 #elif defined(OS_MACOSX) | 193 #elif defined(OS_MACOSX) |
| 192 default_minimum_page_scale_factor(1.f), | 194 default_minimum_page_scale_factor(1.f), |
| 193 default_maximum_page_scale_factor(3.f) | 195 default_maximum_page_scale_factor(3.f) |
| 194 #else | 196 #else |
| 195 default_minimum_page_scale_factor(1.f), | 197 default_minimum_page_scale_factor(1.f), |
| (...skipping 10 matching lines...) Expand all Loading... |
| 206 pictograph_font_family_map[kCommonScript] = | 208 pictograph_font_family_map[kCommonScript] = |
| 207 base::ASCIIToUTF16("Times New Roman"); | 209 base::ASCIIToUTF16("Times New Roman"); |
| 208 } | 210 } |
| 209 | 211 |
| 210 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 212 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
| 211 | 213 |
| 212 WebPreferences::~WebPreferences() { | 214 WebPreferences::~WebPreferences() { |
| 213 } | 215 } |
| 214 | 216 |
| 215 } // namespace content | 217 } // namespace content |
| OLD | NEW |