Changeset 75713 in webkit


Ignore:
Timestamp:
Jan 13, 2011 7:45:39 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-13 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Need a way to inform the application when a Netscape plugin is created.
https://bugs.webkit.org/show_bug.cgi?id=30179

Added "c" style static method for the application to hook up for
receiving notifications when a plugin is created.

  • plugins/symbian/PluginViewSymbian.cpp: (qtwebkit_setPluginCreatedCallback): (WebCore::PluginView::platformStart):

2011-01-13 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Need a way to inform the application when a Netscape plugin is created.
https://bugs.webkit.org/show_bug.cgi?id=30179

Added "c" style static method for the application to hook up for
receiving notifications when a plugin is created.

  • symbian/bwins/QtWebKitu.def:
  • symbian/eabi/QtWebKitu.def:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r75712 r75713  
     12011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Need a way to inform the application when a Netscape plugin is created.
     6        https://bugs.webkit.org/show_bug.cgi?id=30179
     7
     8        Added "c" style static method for the application to hook up for
     9        receiving notifications when a plugin is created.
     10
     11        * plugins/symbian/PluginViewSymbian.cpp:
     12        (qtwebkit_setPluginCreatedCallback):
     13        (WebCore::PluginView::platformStart):
     14
    1152011-01-13  Yi Shen  <yi.4.shen@nokia.com>
    216
  • trunk/Source/WebCore/plugins/symbian/PluginViewSymbian.cpp

    r75535 r75713  
    5454#include "npruntime_impl.h"
    5555#include "qgraphicswebview.h"
     56#include "qwebframe.h"
     57#include "qwebframe_p.h"
    5658#include "runtime_root.h"
    5759#include <QGraphicsProxyWidget>
     
    6365#include <runtime/JSLock.h>
    6466#include <runtime/JSValue.h>
     67
     68typedef void (*_qtwebkit_page_plugin_created)(QWebFrame*, void*, void*); // frame, plugin instance, plugin functions
     69static _qtwebkit_page_plugin_created qt_page_plugin_created = 0;
     70QWEBKIT_EXPORT void qtwebkit_setPluginCreatedCallback(_qtwebkit_page_plugin_created cb)
     71{
     72    qtwebkit_page_plugin_created = cb;
     73}
    6574
    6675using JSC::ExecState;
     
    416425    updatePluginWidget();
    417426    setNPWindowIfNeeded();
    418    
     427
     428    if (qtwebkit_page_plugin_created)
     429        qtwebkit_page_plugin_created(QWebFramePrivate::kit(m_parentFrame.get()), m_instance, (void*)(m_plugin->pluginFuncs()));
     430
    419431    return true;
    420432}
  • trunk/WebKit/qt/ChangeLog

    r75708 r75713  
     12011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Need a way to inform the application when a Netscape plugin is created.
     6        https://bugs.webkit.org/show_bug.cgi?id=30179
     7
     8        Added "c" style static method for the application to hook up for
     9        receiving notifications when a plugin is created.
     10
     11        * symbian/bwins/QtWebKitu.def:
     12        * symbian/eabi/QtWebKitu.def:
     13
    1142011-01-13  Yi Shen  <yi.4.shen@nokia.com>
    215
  • trunk/WebKit/qt/symbian/bwins/QtWebKitu.def

    r59919 r75713  
    651651        ?setTiledBackingStoreFrozen@QGraphicsWebView@@QAEX_N@Z @ 650 NONAME ; void QGraphicsWebView::setTiledBackingStoreFrozen(bool)
    652652        ?qtwebkit_webframe_scrollOverflow@@YA_NPAVQWebFrame@@HHABVQPoint@@@Z @ 651 NONAME ; bool qtwebkit_webframe_scrollOverflow(QWebFrame *, int, int, const QPoint&)
    653 
     653        ?qtwebkit_setPluginCreatedCallback@@YAXP6AXPAVQWebFrame@@PAX1@Z@Z @ 652 NONAME ; void qtwebkit_setPluginCreatedCallback(void (*)(class QWebFrame *, void *, void *))
  • trunk/WebKit/qt/symbian/eabi/QtWebKitu.def

    r72739 r75713  
    836836        _ZN8QWebPage26featurePermissionRequestedEP9QWebFrameNS_7FeatureE @ 835 NONAME
    837837        _ZN8QWebPage32featurePermissionRequestCanceledEP9QWebFrameNS_7FeatureE @ 836 NONAME
    838 
     838        _Z33qtwebkit_setPluginCreatedCallbackPFvP9QWebFramePvS1_E @ 837 NONAME
Note: See TracChangeset for help on using the changeset viewer.