OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |