Changeset 111993 in webkit


Ignore:
Timestamp:
Mar 24, 2012 8:23:56 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt][WK2] Implement PageClient::isViewWindowActive()
https://bugs.webkit.org/show_bug.cgi?id=81143

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2012-03-24
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

This patch implements PageClient::isViewWindowActive()
now that QQuickCanvas::isActive() is available (from QWindow).

  • UIProcess/qt/QtPageClient.cpp:

(QtPageClient::isViewWindowActive):

Tools:

Fix the WrapperWindow from our PlatformWebView
so it correctly creates the platform related
stuff for QWindow, which is not created unless
QWindow::setVisible() or QWindow::show() are called.

  • WebKitTestRunner/qt/PlatformWebViewQt.cpp:

(WTR::PlatformWebView::PlatformWebView):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r111931 r111993  
     12012-03-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [Qt][WK2] Implement PageClient::isViewWindowActive()
     4        https://bugs.webkit.org/show_bug.cgi?id=81143
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        This patch implements PageClient::isViewWindowActive()
     9        now that QQuickCanvas::isActive() is available (from QWindow).
     10
     11        * UIProcess/qt/QtPageClient.cpp:
     12        (QtPageClient::isViewWindowActive):
     13
    1142012-03-23  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/qt/QtPageClient.cpp

    r111859 r111993  
    3030#include "qquickwebview_p_p.h"
    3131#include <QGuiApplication>
     32#include <QQuickCanvas>
    3233#include <WebCore/Cursor.h>
    3334#include <WebCore/DragData.h>
     
    256257bool QtPageClient::isViewWindowActive()
    257258{
    258     // FIXME: The scene graph does not have the concept of being active or not when this was written.
    259     return true;
     259    if (!m_webView || !m_webView->canvas())
     260        return false;
     261    return m_webView->canvas()->isActive();
    260262}
    261263
  • trunk/Tools/ChangeLog

    r111945 r111993  
     12012-03-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [Qt][WK2] Implement PageClient::isViewWindowActive()
     4        https://bugs.webkit.org/show_bug.cgi?id=81143
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Fix the WrapperWindow from our PlatformWebView
     9        so it correctly creates the platform related
     10        stuff for QWindow, which is not created unless
     11        QWindow::setVisible() or QWindow::show() are called.
     12
     13        * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
     14        (WTR::PlatformWebView::PlatformWebView):
     15
    1162012-03-23  Dirk Pranke  <dpranke@chromium.org>
    217
  • trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp

    r109326 r111993  
    7777    QQuickWebViewExperimental experimental(m_view);
    7878    experimental.setRenderToOffscreenBuffer(true);
     79
     80    // QWindow does not create the underlying platform
     81    // specific bits unless QWindow::setVisible() or QWindow::show() are called,
     82    // and without it QWindow::isActive() will always return false.
     83    // For these cases QWindow::create() is provided.
     84    m_window->create();
    7985}
    8086
Note: See TracChangeset for help on using the changeset viewer.