Changeset 184351 in webkit


Ignore:
Timestamp:
May 14, 2015, 2:19:09 PM (10 years ago)
Author:
roger_fong@apple.com
Message:

Add internals setting to disable wireless playback availability for layout tests
https://bugs.webkit.org/show_bug.cgi?id=145012.
<rdar://problem/20946504>

Reviewed by Eric Carlson.

  • testing/InternalSettings.cpp:

(WebCore::InternalSettings::resetToConsistentState):
(WebCore::InternalSettings::setWirelessPlaybackDisabled):

  • testing/InternalSettings.idl:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r184345 r184351  
     12015-05-14  Roger Fong  <roger_fong@apple.com>
     2
     3        Add internals setting to disable wireless playback availability for layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=145012.
     5        <rdar://problem/20946504>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * testing/InternalSettings.cpp:
     10        (WebCore::InternalSettings::resetToConsistentState):
     11        (WebCore::InternalSettings::setWirelessPlaybackDisabled):
     12        * testing/InternalSettings.idl:
     13
    1142015-05-14  Beth Dakin  <bdakin@apple.com>
    215
  • trunk/Source/WebCore/testing/InternalSettings.cpp

    r183234 r184351  
    211211    page()->setPageScaleFactor(1, IntPoint(0, 0));
    212212    page()->setCanStartMedia(true);
     213#if ENABLE(WIRELESS_PLAYBACK_TARGET)
     214    m_page->settings().setMediaPlaybackAllowsAirPlay(false);
     215#endif
    213216
    214217    m_backup.restoreTo(*settings());
     
    356359    InternalSettingsGuardForSettings();
    357360    m_page->setCanStartMedia(enabled);
     361}
     362
     363void InternalSettings::setWirelessPlaybackDisabled(bool available)
     364{
     365#if ENABLE(WIRELESS_PLAYBACK_TARGET)
     366    m_page->settings().setMediaPlaybackAllowsAirPlay(available);
     367#else
     368    UNUSED_PARAM(available);
     369#endif
    358370}
    359371
  • trunk/Source/WebCore/testing/InternalSettings.h

    r181423 r184351  
    126126    void setCSSShapesEnabled(bool, ExceptionCode&);
    127127    void setCanStartMedia(bool, ExceptionCode&);
     128    void setWirelessPlaybackDisabled(bool);
    128129    void setEditingBehavior(const String&, ExceptionCode&);
    129130    void setShouldDisplayTrackKind(const String& kind, bool enabled, ExceptionCode&);
  • trunk/Source/WebCore/testing/InternalSettings.idl

    r182518 r184351  
    5454    [RaisesException] void setTimeWithoutMouseMovementBeforeHidingControls(unrestricted double time);
    5555    [RaisesException] void setMediaTypeOverride(DOMString mediaTypeOverride);
     56    void setWirelessPlaybackDisabled(boolean available);
    5657
    5758    void setPluginReplacementEnabled(boolean enabled);
Note: See TracChangeset for help on using the changeset viewer.