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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.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/browser/browser_plugin/browser_plugin_embedder_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 7 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/common/browser_plugin_messages.h" 9 #include "content/common/browser_plugin_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message), 44 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message),
45 &handled)) 45 &handled))
46 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed, 46 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed,
47 OnPluginDestroyed); 47 OnPluginDestroyed);
48 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo) 48 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo)
49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop) 49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload) 50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
51 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest) 51 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
52 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, 52 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility,
53 OnSetGuestVisibility) 53 OnSetGuestVisibility)
54 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate,
55 OnDragStatusUpdate)
54 IPC_MESSAGE_UNHANDLED(handled = false) 56 IPC_MESSAGE_UNHANDLED(handled = false)
55 IPC_END_MESSAGE_MAP() 57 IPC_END_MESSAGE_MAP()
56 return handled; 58 return handled;
57 } 59 }
58 60
59 void BrowserPluginEmbedderHelper::OnResizeGuest( 61 void BrowserPluginEmbedderHelper::OnResizeGuest(
60 int instance_id, 62 int instance_id,
61 const BrowserPluginHostMsg_ResizeGuest_Params& params) { 63 const BrowserPluginHostMsg_ResizeGuest_Params& params) {
62 embedder_->ResizeGuest(render_view_host(), instance_id, params); 64 embedder_->ResizeGuest(render_view_host(), instance_id, params);
63 } 65 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 155
154 void BrowserPluginEmbedderHelper::OnTerminateGuest(int instance_id) { 156 void BrowserPluginEmbedderHelper::OnTerminateGuest(int instance_id) {
155 embedder_->TerminateGuest(instance_id); 157 embedder_->TerminateGuest(instance_id);
156 } 158 }
157 159
158 void BrowserPluginEmbedderHelper::OnSetGuestVisibility(int instance_id, 160 void BrowserPluginEmbedderHelper::OnSetGuestVisibility(int instance_id,
159 bool visible) { 161 bool visible) {
160 embedder_->SetGuestVisibility(instance_id, visible); 162 embedder_->SetGuestVisibility(instance_id, visible);
161 } 163 }
162 164
165 void BrowserPluginEmbedderHelper::OnDragStatusUpdate(
166 int instance_id,
167 WebKit::WebDragStatus drag_status,
168 const WebDropData& drop_data,
169 WebKit::WebDragOperationsMask drag_mask,
170 const gfx::Point& location) {
171 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask,
172 location);
173 }
163 174
164 } // namespace content 175 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698