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

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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 &cursor); 716 &cursor);
717 message->WriteInt(instance_id_); 717 message->WriteInt(instance_id_);
718 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_), 718 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_),
719 sizeof(gfx::Rect)); 719 sizeof(gfx::Rect));
720 message->WriteData(reinterpret_cast<const char*>(&event), event.size); 720 message->WriteData(reinterpret_cast<const char*>(&event), event.size);
721 BrowserPluginManager::Get()->Send(message); 721 BrowserPluginManager::Get()->Send(message);
722 cursor.GetCursorInfo(&cursor_info); 722 cursor.GetCursorInfo(&cursor_info);
723 return handled; 723 return handled;
724 } 724 }
725 725
726 bool BrowserPlugin::handleDragStatusUpdate(WebKit::WebDragStatus drag_status,
727 const WebKit::WebDragData& drag_data,
728 WebKit::WebDragOperationsMask mask,
729 const WebKit::WebPoint& position,
730 const WebKit::WebPoint& screen) {
731 if (guest_crashed_ || !navigate_src_sent_)
732 return false;
733 BrowserPluginManager::Get()->Send(
734 new BrowserPluginHostMsg_DragStatusUpdate(
735 render_view_->GetRoutingID(),
736 instance_id_,
737 drag_status,
738 WebDropData(drag_data),
739 mask,
740 position));
741 return false;
742 }
743
726 void BrowserPlugin::didReceiveResponse( 744 void BrowserPlugin::didReceiveResponse(
727 const WebKit::WebURLResponse& response) { 745 const WebKit::WebURLResponse& response) {
728 } 746 }
729 747
730 void BrowserPlugin::didReceiveData(const char* data, int data_length) { 748 void BrowserPlugin::didReceiveData(const char* data, int data_length) {
731 } 749 }
732 750
733 void BrowserPlugin::didFinishLoading() { 751 void BrowserPlugin::didFinishLoading() {
734 } 752 }
735 753
736 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) { 754 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) {
737 } 755 }
738 756
739 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url, 757 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url,
740 void* notify_data) { 758 void* notify_data) {
741 } 759 }
742 760
743 void BrowserPlugin::didFailLoadingFrameRequest( 761 void BrowserPlugin::didFailLoadingFrameRequest(
744 const WebKit::WebURL& url, 762 const WebKit::WebURL& url,
745 void* notify_data, 763 void* notify_data,
746 const WebKit::WebURLError& error) { 764 const WebKit::WebURLError& error) {
747 } 765 }
748 766
749 } // namespace content 767 } // namespace content
OLDNEW
« content/common/browser_plugin_messages.h ('K') | « content/renderer/browser_plugin/browser_plugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698