Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/public/common/web_preferences.cc

Issue 2886943007: Introduce NavigatorWebDriver interface
Patch Set: Introduce NavigatorWebDriver interface Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 default_maximum_page_scale_factor(3.f), 219 default_maximum_page_scale_factor(3.f),
220 #else 220 #else
221 default_minimum_page_scale_factor(1.f), 221 default_minimum_page_scale_factor(1.f),
222 default_maximum_page_scale_factor(4.f), 222 default_maximum_page_scale_factor(4.f),
223 #endif 223 #endif
224 hide_download_ui(false), 224 hide_download_ui(false),
225 background_video_track_optimization_enabled(false), 225 background_video_track_optimization_enabled(false),
226 enable_instant_source_buffer_gc(false), 226 enable_instant_source_buffer_gc(false),
227 presentation_receiver(false), 227 presentation_receiver(false),
228 media_controls_enabled(true), 228 media_controls_enabled(true),
229 automation_controlled(false),
230 headless(false),
229 do_not_update_selection_on_mutating_selection_range(false), 231 do_not_update_selection_on_mutating_selection_range(false),
230 #if defined(OS_ANDROID) 232 #if defined(OS_ANDROID)
231 autoplay_policy(AutoplayPolicy::kUserGestureRequired) { 233 autoplay_policy(AutoplayPolicy::kUserGestureRequired) {
232 #else 234 #else
233 autoplay_policy(AutoplayPolicy::kNoUserGestureRequired) { 235 autoplay_policy(AutoplayPolicy::kNoUserGestureRequired) {
234 #endif // defined(OS_ANDROID) 236 #endif // defined(OS_ANDROID)
235 standard_font_family_map[kCommonScript] = 237 standard_font_family_map[kCommonScript] =
236 base::ASCIIToUTF16("Times New Roman"); 238 base::ASCIIToUTF16("Times New Roman");
237 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); 239 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");
238 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); 240 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman");
239 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); 241 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial");
240 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 242 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
241 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 243 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
242 pictograph_font_family_map[kCommonScript] = 244 pictograph_font_family_map[kCommonScript] =
243 base::ASCIIToUTF16("Times New Roman"); 245 base::ASCIIToUTF16("Times New Roman");
244 } 246 }
245 247
246 WebPreferences::WebPreferences(const WebPreferences& other) = default; 248 WebPreferences::WebPreferences(const WebPreferences& other) = default;
247 249
248 WebPreferences::~WebPreferences() { 250 WebPreferences::~WebPreferences() {
249 } 251 }
250 252
251 } // namespace content 253 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698