Changeset 111855 in webkit


Ignore:
Timestamp:
Mar 23, 2012 6:27:06 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-23
Reviewed by Kenneth Rohde Christiansen.

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

  • UIProcess/qt/QtPageClient.cpp:

(QtPageClient::isViewWindowActive):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r111850 r111855  
     12012-03-23  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  Andras Becsi  <andras.becsi@nokia.com>
    215
  • trunk/Source/WebKit2/UIProcess/qt/QtPageClient.cpp

    r109804 r111855  
    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
Note: See TracChangeset for help on using the changeset viewer.