Changeset 49676 in webkit


Ignore:
Timestamp:
Oct 16, 2009 6:18:37 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-10-16 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Tor Arne Vestbø.

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

Inform the application when a plugin is created or destroyed, but only if the
application registered for these notifications.

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

2009-10-16 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Tor Arne Vestbø.

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

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

  • Api/qwebpage.cpp:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r49675 r49676  
     12009-10-16  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
     6        https://bugs.webkit.org/show_bug.cgi?id=30179
     7
     8        Inform the application when a plugin is created or destroyed, but only if the
     9        application registered for these notifications.
     10
     11        * plugins/symbian/PluginViewSymbian.cpp:
     12        (WebCore::PluginView::platformStart):
     13        (WebCore::PluginView::platformDestroy):
     14
    1152009-10-16  Shu Chang  <Chang.Shu@nokia.com>
    216
  • trunk/WebCore/plugins/symbian/PluginViewSymbian.cpp

    r49574 r49676  
    7575using namespace HTMLNames;
    7676
     77typedef void (*_qt_page_plugin_created)(QWebFrame* frame, void* plugin);
     78extern _qt_page_plugin_created qt_page_plugin_created;
     79
     80typedef void (*_qt_page_plugin_destroyed)(void* plugin);
     81extern _qt_page_plugin_destroyed qt_page_plugin_destroyed;
     82
    7783void PluginView::updatePluginWidget()
    7884{
     
    443449    }   
    444450    setNPWindowIfNeeded();
    445    
     451
     452    if (qt_page_plugin_created)
     453        qt_page_plugin_created(QWebFramePrivate::kit(m_parentFrame), m_instance->pdate);
     454
    446455    return true;
    447456}
     
    449458void PluginView::platformDestroy()
    450459{
     460    if (qt_page_plugin_destroyed)
     461        qt_page_plugin_destroyed(m_instance->pdate);
     462
    451463    delete platformPluginWidget();
    452464}
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r49492 r49676  
    109109
    110110using namespace WebCore;
     111
     112typedef void (*_qt_page_plugin_created)(QWebFrame* frame, void* plugin);
     113QWEBKIT_EXPORT _qt_page_plugin_created qt_page_plugin_created = 0;
     114
     115typedef void (*_qt_page_plugin_destroyed)(void* plugin);
     116QWEBKIT_EXPORT _qt_page_plugin_destroyed qt_page_plugin_destroyed = 0;
    111117
    112118void QWEBKIT_EXPORT qt_drt_overwritePluginDirectories()
  • trunk/WebKit/qt/ChangeLog

    r49642 r49676  
     12009-10-16  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
     6        https://bugs.webkit.org/show_bug.cgi?id=30179
     7
     8        Added "c" style static methods for the application to hook up for
     9        receiving notifications when a plugin is created or destroyed.
     10
     11        * Api/qwebpage.cpp:
     12
    1132009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
    214
Note: See TracChangeset for help on using the changeset viewer.