Chromium Code Reviews| Index: content/browser/browser_plugin/browser_plugin_embedder.cc |
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc |
| index 091c00c90b0bb8c400514743bb4431de4d7e1599..3f001aee203f44361c98782ccae3a7e2e5e4086a 100644 |
| --- a/content/browser/browser_plugin/browser_plugin_embedder.cc |
| +++ b/content/browser/browser_plugin/browser_plugin_embedder.cc |
| @@ -95,6 +95,7 @@ void BrowserPluginEmbedder::CreateGuest(RenderViewHost* render_view_host, |
| guest = guest_web_contents->GetBrowserPluginGuest(); |
| guest->set_embedder_render_process_host(render_view_host->GetProcess()); |
| + guest->set_embedder_render_view_host(render_view_host); |
|
sadrul
2012/10/09 23:09:42
I believe this is safe because when a RenderViewHo
Fady Samuel
2012/10/09 23:18:53
Note: I was planning on deleting that line because
sadrul
2012/10/10 18:43:22
You didn't mean this CL breaks reload, right? Beca
Charlie Reis
2012/10/10 19:04:32
I don't see a big problem with telling the guest w
|
| RendererPreferences* guest_renderer_prefs = |
| guest_web_contents->GetMutableRendererPrefs(); |
| @@ -272,6 +273,17 @@ void BrowserPluginEmbedder::SetGuestVisibility(int instance_id, |
| guest->SetVisibility(visible_, guest_visible); |
| } |
| +void BrowserPluginEmbedder::DragStatusUpdate( |
| + int instance_id, |
| + WebKit::WebDragStatus drag_status, |
| + const WebDropData& drop_data, |
| + WebKit::WebDragOperationsMask drag_mask, |
| + const gfx::Point& location) { |
| + BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id); |
| + if (guest) |
| + guest->DragStatusUpdate(drag_status, drop_data, drag_mask, location); |
| +} |
| + |
| void BrowserPluginEmbedder::Go(int instance_id, int relative_index) { |
| BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id); |
| if (guest) |