Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11088043: browser-plugin: Allow accepting drag-n-drop events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #if defined (OS_WIN) 9 #if defined (OS_WIN)
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 &cursor); 754 &cursor);
755 message->WriteInt(instance_id_); 755 message->WriteInt(instance_id_);
756 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_), 756 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_),
757 sizeof(gfx::Rect)); 757 sizeof(gfx::Rect));
758 message->WriteData(reinterpret_cast<const char*>(&event), event.size); 758 message->WriteData(reinterpret_cast<const char*>(&event), event.size);
759 BrowserPluginManager::Get()->Send(message); 759 BrowserPluginManager::Get()->Send(message);
760 cursor.GetCursorInfo(&cursor_info); 760 cursor.GetCursorInfo(&cursor_info);
761 return handled; 761 return handled;
762 } 762 }
763 763
764 bool BrowserPlugin::handleDragStatusUpdate(WebKit::WebDragStatus drag_status,
765 const WebKit::WebDragData& drag_data,
766 WebKit::WebDragOperationsMask mask,
767 const WebKit::WebPoint& position,
768 const WebKit::WebPoint& screen) {
769 if (guest_crashed_ || !navigate_src_sent_)
770 return false;
771 BrowserPluginManager::Get()->Send(
772 new BrowserPluginHostMsg_DragStatusUpdate(
773 render_view_->GetRoutingID(),
774 instance_id_,
775 drag_status,
776 WebDropData(drag_data),
777 mask,
778 position));
779 return false;
780 }
781
764 void BrowserPlugin::didReceiveResponse( 782 void BrowserPlugin::didReceiveResponse(
765 const WebKit::WebURLResponse& response) { 783 const WebKit::WebURLResponse& response) {
766 } 784 }
767 785
768 void BrowserPlugin::didReceiveData(const char* data, int data_length) { 786 void BrowserPlugin::didReceiveData(const char* data, int data_length) {
769 } 787 }
770 788
771 void BrowserPlugin::didFinishLoading() { 789 void BrowserPlugin::didFinishLoading() {
772 } 790 }
773 791
774 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) { 792 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) {
775 } 793 }
776 794
777 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url, 795 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url,
778 void* notify_data) { 796 void* notify_data) {
779 } 797 }
780 798
781 void BrowserPlugin::didFailLoadingFrameRequest( 799 void BrowserPlugin::didFailLoadingFrameRequest(
782 const WebKit::WebURL& url, 800 const WebKit::WebURL& url,
783 void* notify_data, 801 void* notify_data,
784 const WebKit::WebURLError& error) { 802 const WebKit::WebURLError& error) {
785 } 803 }
786 804
787 } // namespace content 805 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/test/data/browser_plugin_dragging.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698