| OLD | NEW |
| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 &cursor); | 733 &cursor); |
| 734 message->WriteInt(instance_id_); | 734 message->WriteInt(instance_id_); |
| 735 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_), | 735 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_), |
| 736 sizeof(gfx::Rect)); | 736 sizeof(gfx::Rect)); |
| 737 message->WriteData(reinterpret_cast<const char*>(&event), event.size); | 737 message->WriteData(reinterpret_cast<const char*>(&event), event.size); |
| 738 BrowserPluginManager::Get()->Send(message); | 738 BrowserPluginManager::Get()->Send(message); |
| 739 cursor.GetCursorInfo(&cursor_info); | 739 cursor.GetCursorInfo(&cursor_info); |
| 740 return handled; | 740 return handled; |
| 741 } | 741 } |
| 742 | 742 |
| 743 bool BrowserPlugin::handleDragStatusUpdate(WebKit::WebDragStatus drag_status, |
| 744 const WebKit::WebDragData& drag_data, |
| 745 WebKit::WebDragOperationsMask mask, |
| 746 const WebKit::WebPoint& position, |
| 747 const WebKit::WebPoint& screen) { |
| 748 if (guest_crashed_ || !navigate_src_sent_) |
| 749 return false; |
| 750 BrowserPluginManager::Get()->Send( |
| 751 new BrowserPluginHostMsg_DragStatusUpdate( |
| 752 render_view_->GetRoutingID(), |
| 753 instance_id_, |
| 754 drag_status, |
| 755 WebDropData(drag_data), |
| 756 mask, |
| 757 position)); |
| 758 return false; |
| 759 } |
| 760 |
| 743 void BrowserPlugin::didReceiveResponse( | 761 void BrowserPlugin::didReceiveResponse( |
| 744 const WebKit::WebURLResponse& response) { | 762 const WebKit::WebURLResponse& response) { |
| 745 } | 763 } |
| 746 | 764 |
| 747 void BrowserPlugin::didReceiveData(const char* data, int data_length) { | 765 void BrowserPlugin::didReceiveData(const char* data, int data_length) { |
| 748 } | 766 } |
| 749 | 767 |
| 750 void BrowserPlugin::didFinishLoading() { | 768 void BrowserPlugin::didFinishLoading() { |
| 751 } | 769 } |
| 752 | 770 |
| 753 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) { | 771 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) { |
| 754 } | 772 } |
| 755 | 773 |
| 756 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url, | 774 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url, |
| 757 void* notify_data) { | 775 void* notify_data) { |
| 758 } | 776 } |
| 759 | 777 |
| 760 void BrowserPlugin::didFailLoadingFrameRequest( | 778 void BrowserPlugin::didFailLoadingFrameRequest( |
| 761 const WebKit::WebURL& url, | 779 const WebKit::WebURL& url, |
| 762 void* notify_data, | 780 void* notify_data, |
| 763 const WebKit::WebURLError& error) { | 781 const WebKit::WebURLError& error) { |
| 764 } | 782 } |
| 765 | 783 |
| 766 } // namespace content | 784 } // namespace content |
| OLD | NEW |