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

Side by Side Diff: Source/core/testing/InternalSettings.cpp

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 InternalSettingsGuardForSettings(); 335 InternalSettingsGuardForSettings();
336 settings()->setImagesEnabled(enabled); 336 settings()->setImagesEnabled(enabled);
337 } 337 }
338 338
339 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat e& exceptionState) 339 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat e& exceptionState)
340 { 340 {
341 InternalSettingsGuardForSettings(); 341 InternalSettingsGuardForSettings();
342 settings()->setDefaultVideoPosterURL(url); 342 settings()->setDefaultVideoPosterURL(url);
343 } 343 }
344 344
345 void InternalSettings::setTextTracksEnabled(bool enabled, ExceptionState& except ionState)
346 {
347 InternalSettingsGuardForSettings();
348 settings()->setTextTracksEnabled(enabled);
349 }
350
345 DEFINE_TRACE(InternalSettings) 351 DEFINE_TRACE(InternalSettings)
346 { 352 {
347 visitor->trace(m_page); 353 visitor->trace(m_page);
348 InternalSettingsGenerated::trace(visitor); 354 InternalSettingsGenerated::trace(visitor);
349 #if ENABLE(OILPAN) 355 #if ENABLE(OILPAN)
350 HeapSupplement<Page>::trace(visitor); 356 HeapSupplement<Page>::trace(visitor);
351 #endif 357 #endif
352 } 358 }
353 359
354 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState) 360 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState)
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 RuntimeEnabledFeatures::setLinkHeaderEnabled(enabled); 488 RuntimeEnabledFeatures::setLinkHeaderEnabled(enabled);
483 } 489 }
484 490
485 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep tionState) 491 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep tionState)
486 { 492 {
487 InternalSettingsGuardForSettings(); 493 InternalSettingsGuardForSettings();
488 settings()->setLogDnsPrefetchAndPreconnect(enabled); 494 settings()->setLogDnsPrefetchAndPreconnect(enabled);
489 } 495 }
490 496
491 } 497 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698