Skip to content
  • kenneth@webkit.org's avatar
    JavaScriptCore: Add an enable flag for the Widgets (http://www.w3.org/TR/widgets-reqs/) · 3c5ec8fd
    kenneth@webkit.org authored
    and turn it on for Qt only.
    
    Reviewed by Simon Fraser.
    
    * wtf/Platform.h:
    
    WebCore: When enabling Web Widgets, add support for the view-mode media
    feature (http://www.w3.org/TR/widgets-vmmf/).
    
    Reviewed by Simon Fraser.
    
    Test: fast/media/media-feature-wgt-view-mode.html
    
    * css/CSSValueKeywords.in:
    * css/MediaFeatureNames.h:
    * css/MediaQueryEvaluator.cpp:
    (WebCore::view_modeMediaFeatureEval):
    * page/ChromeClient.h:
    (WebCore::ChromeClient::isDocked):
    (WebCore::ChromeClient::isFloating):
    (WebCore::ChromeClient::isApplication):
    (WebCore::ChromeClient::isFullscreen):
    
    WebKit/qt: Add an internal Qt API for changing the view mode media feature
    (http://www.w3.org/TR/widgets-vmmf/).
    
    Reviewed by Simon Fraser.
    
    * Api/qwebpage.cpp:
    (qt_wrt_setViewMode):
    (QWebPagePrivate::priv):
    * Api/qwebpage_p.h:
    * WebCoreSupport/ChromeClientQt.cpp:
    (WebCore::ChromeClientQt::isDocked):
    (WebCore::ChromeClientQt::isFloating):
    (WebCore::ChromeClientQt::isApplication):
    (WebCore::ChromeClientQt::isFullscreen):
    * WebCoreSupport/ChromeClientQt.h:
    
    WebKitTools: Add hooks to the Qt DRT for testing the view mode media feature.
    
    Reviewed by Simon Fraser.
    
    * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
    (LayoutTestController::setViewModeMediaFeature):
    * DumpRenderTree/qt/LayoutTestControllerQt.h:
    
    LayoutTests: Add a test and an expected result for the Widgets 1.0: View Mode
    Media Feature (http://www.w3.org/TR/widgets-vmmf/).
    
    Reviewed by Simon Fraser.
    
    Skip on all other platforms than Qt, that has Skipped files.
    
    * fast/media/media-feature-wgt-view-mode.html: Added.
    * fast/media/media-feature-wgt-view-mode-expected.txt: Added.
    * platform/gtk/Skipped:
    * platform/mac/Skipped:
    * platform/win/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3c5ec8fd