Title: [95551] trunk/Source
Revision
95551
Author
alexis.men...@openbossa.org
Date
2011-09-20 10:08:18 -0700 (Tue, 20 Sep 2011)

Log Message

[Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
https://bugs.webkit.org/show_bug.cgi?id=68444

Reviewed by Andreas Kling.

Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.

Source/WebCore:

No new tests : just stubs.

* CodeGenerators.pri:
* WebCore.pro:
* features.pri:

Source/WebKit2:

* UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Added.
(WebKit::WebFullScreenManagerProxy::invalidate):
(WebKit::WebFullScreenManagerProxy::enterFullScreen):
(WebKit::WebFullScreenManagerProxy::exitFullScreen):
(WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
(WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
(WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
(WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
(WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
(WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
(WebKit::WebFullScreenManagerProxy::getFullScreenRect):
* WebKit2.pro:
* WebProcess/FullScreen/qt: Added.
* WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp: Added.
(WebKit::WebFullScreenManagerQt::WebFullScreenManagerQt):
(WebKit::WebFullScreenManager::create):
(WebKit::WebFullScreenManagerQt::setRootFullScreenLayer):
(WebKit::WebFullScreenManagerQt::beginEnterFullScreenAnimation):
(WebKit::WebFullScreenManagerQt::beginExitFullScreenAnimation):
* WebProcess/FullScreen/qt/WebFullScreenManagerQt.h: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (95550 => 95551)


--- trunk/Source/WebCore/ChangeLog	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebCore/ChangeLog	2011-09-20 17:08:18 UTC (rev 95551)
@@ -1,3 +1,18 @@
+2011-09-20  Alexis Menard  <alexis.men...@openbossa.org>
+
+        [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
+        https://bugs.webkit.org/show_bug.cgi?id=68444
+
+        Reviewed by Andreas Kling.
+
+        Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
+
+        No new tests : just stubs.
+
+        * CodeGenerators.pri:
+        * WebCore.pro:
+        * features.pri:
+
 2011-09-20  Sheriff Bot  <webkit.review....@gmail.com>
 
         Unreviewed, rolling out r95509.

Modified: trunk/Source/WebCore/CodeGenerators.pri (95550 => 95551)


--- trunk/Source/WebCore/CodeGenerators.pri	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebCore/CodeGenerators.pri	2011-09-20 17:08:18 UTC (rev 95551)
@@ -70,6 +70,7 @@
     $$PWD/css/mathml.css \
     $$PWD/css/svg.css \
     $$PWD/css/view-source.css \
+    $$PWD/css/fullscreen.css \
     $$PWD/css/mediaControls.css \
     $$PWD/css/mediaControlsQt.css \
     $$PWD/css/mediaControlsQtFullscreen.css \

Modified: trunk/Source/WebCore/WebCore.pro (95550 => 95551)


--- trunk/Source/WebCore/WebCore.pro	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebCore/WebCore.pro	2011-09-20 17:08:18 UTC (rev 95551)
@@ -3134,6 +3134,13 @@
         xml/XPathVariableReference.cpp
 }
 
+contains(DEFINES, ENABLE_FULLSCREEN_API=1) {
+    SOURCES += \
+        rendering/RenderFullScreen.cpp
+    HEADERS += \
+        rendering/RenderFullScreen.h
+}
+
 contains(DEFINES, ENABLE_XSLT=1) {
     v8 {
         SOURCES += \

Modified: trunk/Source/WebCore/features.pri (95550 => 95551)


--- trunk/Source/WebCore/features.pri	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebCore/features.pri	2011-09-20 17:08:18 UTC (rev 95551)
@@ -194,6 +194,10 @@
     }
 }
 
+webkit2 {
+    !contains(DEFINES, ENABLE_FULLSCREEN_API=.): DEFINES += ENABLE_FULLSCREEN_API=1
+}
+
 contains(DEFINES, ENABLE_WCSS=1) {
     contains(DEFINES, ENABLE_XHTMLMP=0) {
         DEFINES -= ENABLE_XHTMLMP=0

Modified: trunk/Source/WebKit2/ChangeLog (95550 => 95551)


--- trunk/Source/WebKit2/ChangeLog	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebKit2/ChangeLog	2011-09-20 17:08:18 UTC (rev 95551)
@@ -1,5 +1,35 @@
 2011-09-20  Alexis Menard  <alexis.men...@openbossa.org>
 
+        [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
+        https://bugs.webkit.org/show_bug.cgi?id=68444
+
+        Reviewed by Andreas Kling.
+
+        Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
+
+        * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Added.
+        (WebKit::WebFullScreenManagerProxy::invalidate):
+        (WebKit::WebFullScreenManagerProxy::enterFullScreen):
+        (WebKit::WebFullScreenManagerProxy::exitFullScreen):
+        (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
+        (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
+        (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
+        (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
+        (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
+        (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
+        (WebKit::WebFullScreenManagerProxy::getFullScreenRect):
+        * WebKit2.pro:
+        * WebProcess/FullScreen/qt: Added.
+        * WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp: Added.
+        (WebKit::WebFullScreenManagerQt::WebFullScreenManagerQt):
+        (WebKit::WebFullScreenManager::create):
+        (WebKit::WebFullScreenManagerQt::setRootFullScreenLayer):
+        (WebKit::WebFullScreenManagerQt::beginEnterFullScreenAnimation):
+        (WebKit::WebFullScreenManagerQt::beginExitFullScreenAnimation):
+        * WebProcess/FullScreen/qt/WebFullScreenManagerQt.h: Added.
+
+2011-09-20  Alexis Menard  <alexis.men...@openbossa.org>
+
         [Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
         https://bugs.webkit.org/show_bug.cgi?id=68401
 

Added: trunk/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp (0 => 95551)


--- trunk/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp	                        (rev 0)
+++ trunk/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp	2011-09-20 17:08:18 UTC (rev 95551)
@@ -0,0 +1,86 @@
+/*
+ * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ */
+
+#include "config.h"
+#include "WebFullScreenManagerProxy.h"
+
+#if ENABLE(FULLSCREEN_API)
+
+#include "WebContext.h"
+#include "WebFullScreenManagerMessages.h"
+#include "WebFullScreenManagerProxyMessages.h"
+#include "WebProcess.h"
+
+#include <WebCore/NotImplemented.h>
+
+namespace WebKit {
+
+void WebFullScreenManagerProxy::invalidate()
+{
+    m_webView = 0;
+}
+
+void WebFullScreenManagerProxy::enterFullScreen()
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::exitFullScreen()
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::beganEnterFullScreenAnimation()
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::finishedEnterFullScreenAnimation(bool completed)
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::beganExitFullScreenAnimation()
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::finishedExitFullScreenAnimation(bool completed)
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::enterAcceleratedCompositingMode(const LayerTreeContext& context)
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::exitAcceleratedCompositingMode()
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerProxy::getFullScreenRect(WebCore::IntRect& rect)
+{
+    notImplemented();
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(FULLSCREEN_API)

Modified: trunk/Source/WebKit2/WebKit2.pro (95550 => 95551)


--- trunk/Source/WebKit2/WebKit2.pro	2011-09-20 16:46:56 UTC (rev 95550)
+++ trunk/Source/WebKit2/WebKit2.pro	2011-09-20 17:08:18 UTC (rev 95551)
@@ -272,6 +272,7 @@
     WebProcess/Downloads/Download.h \
     WebProcess/Downloads/DownloadManager.h \
     WebProcess/FullScreen/WebFullScreenManager.h \
+    WebProcess/FullScreen/qt/WebFullScreenManagerQt.h \
     WebProcess/Geolocation/GeolocationPermissionRequestManager.h \
     WebProcess/Geolocation/WebGeolocationManager.h \
     WebProcess/IconDatabase/WebIconDatabaseProxy.h \
@@ -283,6 +284,7 @@
     WebProcess/InjectedBundle/InjectedBundleNavigationAction.h \
     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h \
     WebProcess/InjectedBundle/InjectedBundlePageFormClient.h \
+    WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h \
     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h \
     WebProcess/InjectedBundle/InjectedBundlePageUIClient.h \
     WebProcess/InjectedBundle/InjectedBundleScriptWorld.h \
@@ -498,6 +500,7 @@
     UIProcess/qt/ViewportInteractionEngine.cpp \
     UIProcess/qt/WebContextMenuProxyQt.cpp \
     UIProcess/qt/WebContextQt.cpp \
+    UIProcess/qt/WebFullScreenManagerProxyQt.cpp \
     UIProcess/qt/WebInspectorProxyQt.cpp \
     UIProcess/qt/WebPageProxyQt.cpp \
     UIProcess/qt/WebPopupMenuProxyQt.cpp \
@@ -511,6 +514,7 @@
     WebProcess/Downloads/DownloadManager.cpp \
     WebProcess/Downloads/qt/DownloadQt.cpp \
     WebProcess/FullScreen/WebFullScreenManager.cpp \
+    WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp \
     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp \
     WebProcess/Geolocation/WebGeolocationManager.cpp \
     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp \
@@ -525,6 +529,7 @@
     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp \
     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp \
     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp \
+    WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp \
     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp \
     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp \
     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp \

Added: trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp (0 => 95551)


--- trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp	                        (rev 0)
+++ trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp	2011-09-20 17:08:18 UTC (rev 95551)
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ */
+
+#include "config.h"
+#include "WebFullScreenManagerQt.h"
+
+#if ENABLE(FULLSCREEN_API)
+
+#include <WebCore/NotImplemented.h>
+
+namespace WebKit {
+
+WebFullScreenManagerQt::WebFullScreenManagerQt(WebPage* page)
+    : WebFullScreenManager(page)
+{
+}
+
+PassRefPtr<WebFullScreenManager> WebFullScreenManager::create(WebPage* page)
+{
+    return adoptRef(new WebFullScreenManagerQt(page));
+}
+
+void WebFullScreenManagerQt::setRootFullScreenLayer(WebCore::GraphicsLayer* layer)
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerQt::beginEnterFullScreenAnimation(float duration)
+{
+    notImplemented();
+}
+
+void WebFullScreenManagerQt::beginExitFullScreenAnimation(float duration)
+{
+    notImplemented();
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(FULLSCREEN_API)

Added: trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.h (0 => 95551)


--- trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.h	                        (rev 0)
+++ trunk/Source/WebKit2/WebProcess/FullScreen/qt/WebFullScreenManagerQt.h	2011-09-20 17:08:18 UTC (rev 95551)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebFullScreenManagerQt_h
+#define WebFullScreenManagerQt_h
+
+#if ENABLE(FULLSCREEN_API)
+
+#include "WebFullScreenManager.h"
+
+namespace WebKit {
+
+class WebFullScreenManagerQt : public WebFullScreenManager {
+public:
+    WebFullScreenManagerQt(WebPage*);
+    virtual void setRootFullScreenLayer(WebCore::GraphicsLayer*);
+
+private:
+    virtual void beginEnterFullScreenAnimation(float duration);
+    virtual void beginExitFullScreenAnimation(float duration);
+
+};
+
+}
+
+#endif // ENABLE(FULLSCREEN_API)
+
+#endif // WebFullScreenManagerQt_h
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to