diff options
Diffstat (limited to 'WebCore/plugins/symbian')
-rw-r--r-- | WebCore/plugins/symbian/PluginPackageSymbian.cpp | 2 | ||||
-rw-r--r-- | WebCore/plugins/symbian/PluginViewSymbian.cpp | 24 |
2 files changed, 14 insertions, 12 deletions
diff --git a/WebCore/plugins/symbian/PluginPackageSymbian.cpp b/WebCore/plugins/symbian/PluginPackageSymbian.cpp index d30f80e..7fca625 100644 --- a/WebCore/plugins/symbian/PluginPackageSymbian.cpp +++ b/WebCore/plugins/symbian/PluginPackageSymbian.cpp @@ -174,7 +174,7 @@ void PluginPackage::unload() m_pluginLoader = 0; } -uint16 PluginPackage::NPVersion() const +uint16_t PluginPackage::NPVersion() const { return NP_VERSION_MINOR; } diff --git a/WebCore/plugins/symbian/PluginViewSymbian.cpp b/WebCore/plugins/symbian/PluginViewSymbian.cpp index bae3b7f..361f946 100644 --- a/WebCore/plugins/symbian/PluginViewSymbian.cpp +++ b/WebCore/plugins/symbian/PluginViewSymbian.cpp @@ -101,12 +101,14 @@ void PluginView::updatePluginWidget() setNPWindowIfNeeded(); } -void PluginView::setFocus() +void PluginView::setFocus(bool focused) { - if (platformPluginWidget()) - platformPluginWidget()->setFocus(Qt::OtherFocusReason); - else - Widget::setFocus(); + if (platformPluginWidget()) { + if (focused) + platformPluginWidget()->setFocus(Qt::OtherFocusReason); + } else { + Widget::setFocus(focused); + } } void PluginView::show() @@ -304,7 +306,7 @@ void PluginView::setParentVisible(bool visible) platformPluginWidget()->setVisible(visible); } -NPError PluginView::handlePostReadFile(Vector<char>& buffer, uint32 len, const char* buf) +NPError PluginView::handlePostReadFile(Vector<char>& buffer, uint32_t len, const char* buf) { notImplemented(); return NPERR_NO_ERROR; @@ -414,11 +416,11 @@ bool PluginView::platformStart() void PluginView::platformDestroy() { - QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient(); - if (client && qobject_cast<QGraphicsWebView*>(client->pluginParent())) - delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy(); - else - delete platformPluginWidget(); + if (platformPluginWidget()) { + PluginContainerSymbian* container = static_cast<PluginContainerSymbian*>(platformPluginWidget()); + delete container->proxy(); + delete container; + } } void PluginView::halt() |