summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 19:31:47 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 19:31:47 +0000
commit0582493ed8a6aa530c16acffb2cf2bae4bfd955f (patch)
tree5f6de3e3200263e654fba590ab3ca28779399a72 /chrome/renderer/webplugin_delegate_proxy.cc
parent0167204bc9a6f6873af4b92c8f0969d5ae465088 (diff)
downloadchromium_src-0582493ed8a6aa530c16acffb2cf2bae4bfd955f.zip
chromium_src-0582493ed8a6aa530c16acffb2cf2bae4bfd955f.tar.gz
chromium_src-0582493ed8a6aa530c16acffb2cf2bae4bfd955f.tar.bz2
Reverting 15986.
Review URL: http://codereview.chromium.org/113359 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc59
1 files changed, 2 insertions, 57 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index a9cb138..4e05f1d 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -23,7 +23,6 @@
#include "chrome/common/render_messages.h"
#include "chrome/plugin/npobject_proxy.h"
#include "chrome/plugin/npobject_stub.h"
-#include "chrome/plugin/npobject_util.h"
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/render_view.h"
#include "googleurl/src/gurl.h"
@@ -340,8 +339,6 @@ void WebPluginDelegateProxy::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(PluginHostMsg_GetCookies, OnGetCookies)
IPC_MESSAGE_HANDLER(PluginHostMsg_ShowModalHTMLDialog,
OnShowModalHTMLDialog)
- IPC_MESSAGE_HANDLER(PluginHostMsg_GetDragData, OnGetDragData);
- IPC_MESSAGE_HANDLER(PluginHostMsg_SetDropEffect, OnSetDropEffect);
IPC_MESSAGE_HANDLER(PluginHostMsg_MissingPluginStatus,
OnMissingPluginStatus)
IPC_MESSAGE_HANDLER(PluginHostMsg_URLRequest, OnHandleURLRequest)
@@ -729,58 +726,6 @@ void WebPluginDelegateProxy::OnShowModalHTMLDialog(
json_retval);
}
-void WebPluginDelegateProxy::OnGetDragData(const NPVariant_Param& object,
- bool add_data,
- std::vector<NPVariant_Param>* values,
- bool* success) {
- DCHECK(values && success);
- *success = false;
-
- WebView* webview = NULL;
- if (render_view_)
- webview = render_view_->webview();
- if (!webview)
- return;
-
- NPVariant results[4];
- NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer);
- const int32 drag_id = webview->GetDragIdentity();
- if (!drag_id || !webkit_glue::GetDragData(event, add_data, &results[1]))
- return;
-
- INT32_TO_NPVARIANT(drag_id, results[0]);
- values->push_back(NPVariant_Param());
- CreateNPVariantParam(results[0], NULL, &values->back(), false, NULL);
- values->push_back(NPVariant_Param());
- CreateNPVariantParam(results[1], NULL, &values->back(), false, NULL);
- values->push_back(NPVariant_Param());
- CreateNPVariantParam(results[2], NULL, &values->back(), false, NULL);
- values->push_back(NPVariant_Param());
- CreateNPVariantParam(results[3], NULL, &values->back(), add_data, NULL);
-
- *success = true;
-}
-
-void WebPluginDelegateProxy::OnSetDropEffect(const NPVariant_Param& object,
- int effect,
- bool* success) {
- DCHECK(success);
- *success = false;
-
- WebView* webview = NULL;
- if (render_view_)
- webview = render_view_->webview();
- if (!webview)
- return;
-
- NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer);
- const int32 drag_id = webview->GetDragIdentity();
- if (!drag_id || !webkit_glue::IsDragEvent(event))
- return;
-
- *success = webview->SetDropEffect(effect != 0);
-}
-
void WebPluginDelegateProxy::OnMissingPluginStatus(int status) {
if (render_view_)
render_view_->OnMissingPluginStatus(this, status);
@@ -880,8 +825,8 @@ void WebPluginDelegateProxy::OnCancelDocumentLoad() {
}
void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest(
- const std::string& url, const std::string& range_info,
- intptr_t existing_stream, bool notify_needed, intptr_t notify_data) {
+ const std::string& url, const std::string& range_info,
+ intptr_t existing_stream, bool notify_needed, intptr_t notify_data) {
plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(),
existing_stream, notify_needed,
notify_data);