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

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

Issue 2846713002: [Media] Added feature flag for new remote playback pipeline (Closed)
Patch Set: 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 default_maximum_page_scale_factor(5.f), 218 default_maximum_page_scale_factor(5.f),
219 #elif defined(OS_MACOSX) 219 #elif defined(OS_MACOSX)
220 default_minimum_page_scale_factor(1.f), 220 default_minimum_page_scale_factor(1.f),
221 default_maximum_page_scale_factor(3.f), 221 default_maximum_page_scale_factor(3.f),
222 #else 222 #else
223 default_minimum_page_scale_factor(1.f), 223 default_minimum_page_scale_factor(1.f),
224 default_maximum_page_scale_factor(4.f), 224 default_maximum_page_scale_factor(4.f),
225 #endif 225 #endif
226 hide_download_ui(false), 226 hide_download_ui(false),
227 background_video_track_optimization_enabled(false), 227 background_video_track_optimization_enabled(false),
228 new_remote_playback_pipeline_enabled(false),
228 enable_instant_source_buffer_gc(false), 229 enable_instant_source_buffer_gc(false),
229 presentation_receiver(false), 230 presentation_receiver(false),
230 media_controls_enabled(true), 231 media_controls_enabled(true),
231 do_not_update_selection_on_mutating_selection_range(false) { 232 do_not_update_selection_on_mutating_selection_range(false) {
232 standard_font_family_map[kCommonScript] = 233 standard_font_family_map[kCommonScript] =
233 base::ASCIIToUTF16("Times New Roman"); 234 base::ASCIIToUTF16("Times New Roman");
234 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); 235 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");
235 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); 236 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman");
236 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); 237 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial");
237 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 238 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
238 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 239 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
239 pictograph_font_family_map[kCommonScript] = 240 pictograph_font_family_map[kCommonScript] =
240 base::ASCIIToUTF16("Times New Roman"); 241 base::ASCIIToUTF16("Times New Roman");
241 } 242 }
242 243
243 WebPreferences::WebPreferences(const WebPreferences& other) = default; 244 WebPreferences::WebPreferences(const WebPreferences& other) = default;
244 245
245 WebPreferences::~WebPreferences() { 246 WebPreferences::~WebPreferences() {
246 } 247 }
247 248
248 } // namespace content 249 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698