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

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

Issue 11043022: plugins: Stub implementation for accepting dragged data. (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"
11 #endif 11 #endif
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "content/common/browser_plugin_messages.h" 13 #include "content/common/browser_plugin_messages.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/public/common/content_client.h" 15 #include "content/public/common/content_client.h"
16 #include "content/public/renderer/content_renderer_client.h" 16 #include "content/public/renderer/content_renderer_client.h"
17 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" 17 #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
18 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 18 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
19 #include "content/renderer/render_process_impl.h" 19 #include "content/renderer/render_process_impl.h"
20 #include "content/renderer/render_thread_impl.h" 20 #include "content/renderer/render_thread_impl.h"
21 #include "skia/ext/platform_canvas.h" 21 #include "skia/ext/platform_canvas.h"
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" 30 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h"
30 #include "webkit/plugins/sad_plugin.h" 31 #include "webkit/plugins/sad_plugin.h"
31 32
32 using WebKit::WebCanvas; 33 using WebKit::WebCanvas;
33 using WebKit::WebPlugin; 34 using WebKit::WebPlugin;
34 using WebKit::WebPluginContainer; 35 using WebKit::WebPluginContainer;
35 using WebKit::WebPluginParams; 36 using WebKit::WebPluginParams;
36 using WebKit::WebPoint;
37 using WebKit::WebString; 37 using WebKit::WebString;
38 using WebKit::WebRect; 38 using WebKit::WebRect;
39 using WebKit::WebURL; 39 using WebKit::WebURL;
40 using WebKit::WebVector; 40 using WebKit::WebVector;
41 41
42 namespace content { 42 namespace content {
43 43
44 namespace { 44 namespace {
45 const char kCrashEventName[] = "crash"; 45 const char kCrashEventName[] = "crash";
46 const char kNavigationEventName[] = "navigation"; 46 const char kNavigationEventName[] = "navigation";
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 &cursor); 580 &cursor);
581 message->WriteInt(instance_id_); 581 message->WriteInt(instance_id_);
582 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_), 582 message->WriteData(reinterpret_cast<const char*>(&plugin_rect_),
583 sizeof(gfx::Rect)); 583 sizeof(gfx::Rect));
584 message->WriteData(reinterpret_cast<const char*>(&event), event.size); 584 message->WriteData(reinterpret_cast<const char*>(&event), event.size);
585 BrowserPluginManager::Get()->Send(message); 585 BrowserPluginManager::Get()->Send(message);
586 cursor.GetCursorInfo(&cursor_info); 586 cursor.GetCursorInfo(&cursor_info);
587 return handled; 587 return handled;
588 } 588 }
589 589
590 bool BrowserPlugin::handleDragStatusUpdate(
591 WebKit::WebDragStatus dragStatus,
592 const WebKit::WebDragData& drag_data,
593 WebKit::WebDragOperationsMask drag_mask,
594 const WebKit::WebPoint& position,
595 const WebKit::WebPoint& screenPosition) {
596 return false;
597 }
598
590 void BrowserPlugin::didReceiveResponse( 599 void BrowserPlugin::didReceiveResponse(
591 const WebKit::WebURLResponse& response) { 600 const WebKit::WebURLResponse& response) {
592 } 601 }
593 602
594 void BrowserPlugin::didReceiveData(const char* data, int data_length) { 603 void BrowserPlugin::didReceiveData(const char* data, int data_length) {
595 } 604 }
596 605
597 void BrowserPlugin::didFinishLoading() { 606 void BrowserPlugin::didFinishLoading() {
598 } 607 }
599 608
600 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) { 609 void BrowserPlugin::didFailLoading(const WebKit::WebURLError& error) {
601 } 610 }
602 611
603 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url, 612 void BrowserPlugin::didFinishLoadingFrameRequest(const WebKit::WebURL& url,
604 void* notify_data) { 613 void* notify_data) {
605 } 614 }
606 615
607 void BrowserPlugin::didFailLoadingFrameRequest( 616 void BrowserPlugin::didFailLoadingFrameRequest(
608 const WebKit::WebURL& url, 617 const WebKit::WebURL& url,
609 void* notify_data, 618 void* notify_data,
610 const WebKit::WebURLError& error) { 619 const WebKit::WebURLError& error) {
611 } 620 }
612 621
613 } // namespace content 622 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698