diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp')
-rw-r--r-- | Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp b/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp index d67ac9511..374eb4414 100644 --- a/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp +++ b/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp @@ -198,8 +198,8 @@ NPError NetscapePlugin::destroyStream(NPStream* stream, NPReason reason) NetscapePluginStream* pluginStream = 0; for (StreamsMap::const_iterator it = m_streams.begin(), end = m_streams.end(); it != end; ++it) { - if (it->second->npStream() == stream) { - pluginStream = it->second.get(); + if (it->value->npStream() == stream) { + pluginStream = it->value.get(); break; } } @@ -768,8 +768,8 @@ void NetscapePlugin::frameDidFinishLoading(uint64_t requestID) if (it == m_pendingURLNotifications.end()) return; - String url = it->second.first; - void* notificationData = it->second.second; + String url = it->value.first; + void* notificationData = it->value.second; m_pendingURLNotifications.remove(it); @@ -784,8 +784,8 @@ void NetscapePlugin::frameDidFail(uint64_t requestID, bool wasCancelled) if (it == m_pendingURLNotifications.end()) return; - String url = it->second.first; - void* notificationData = it->second.second; + String url = it->value.first; + void* notificationData = it->value.second; m_pendingURLNotifications.remove(it); @@ -913,6 +913,21 @@ bool NetscapePlugin::handleKeyboardEvent(const WebKeyboardEvent& keyboardEvent) return platformHandleKeyboardEvent(keyboardEvent); } +bool NetscapePlugin::handleEditingCommand(const String& /* commandName */, const String& /* argument */) +{ + return false; +} + +bool NetscapePlugin::isEditingCommandEnabled(const String& /* commandName */) +{ + return false; +} + +bool NetscapePlugin::handlesPageScaleFactor() +{ + return false; +} + void NetscapePlugin::setFocus(bool hasFocus) { ASSERT(m_isStarted); @@ -943,6 +958,8 @@ void NetscapePlugin::contentsScaleFactorChanged(float scaleFactor) #if PLUGIN_ARCHITECTURE(MAC) double contentsScaleFactor = scaleFactor; NPP_SetValue(NPNVcontentsScaleFactor, &contentsScaleFactor); +#else + UNUSED_PARAM(scaleFactor); #endif } |