| 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/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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 IPC::SyncMessage::GenerateReply(&message); | 101 IPC::SyncMessage::GenerateReply(&message); |
| 102 embedder_->HandleInputEvent(instance_id, | 102 embedder_->HandleInputEvent(instance_id, |
| 103 rvh, | 103 rvh, |
| 104 guest_screen_rect, | 104 guest_screen_rect, |
| 105 *input_event, | 105 *input_event, |
| 106 reply_message); | 106 reply_message); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void BrowserPluginEmbedderHelper::OnCreateGuest( | 109 void BrowserPluginEmbedderHelper::OnCreateGuest( |
| 110 int instance_id, | 110 int instance_id, |
| 111 const std::string& storage_partition_id, | 111 const BrowserPluginHostMsg_CreateGuest_Params& params) { |
| 112 bool persist_storage, | |
| 113 bool focused, | |
| 114 bool visible) { | |
| 115 // The first BrowserPluginHostMsg_CreateGuest message is handled in | 112 // The first BrowserPluginHostMsg_CreateGuest message is handled in |
| 116 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest | 113 // WebContentsImpl. All subsequent BrowserPluginHostMsg_CreateGuest |
| 117 // messages are handled here. | 114 // messages are handled here. |
| 118 embedder_->CreateGuest(render_view_host(), | 115 embedder_->CreateGuest(render_view_host(), instance_id, params); |
| 119 instance_id, | |
| 120 storage_partition_id, | |
| 121 persist_storage, | |
| 122 focused, | |
| 123 visible); | |
| 124 } | 116 } |
| 125 | 117 |
| 126 void BrowserPluginEmbedderHelper::OnNavigateGuest( | 118 void BrowserPluginEmbedderHelper::OnNavigateGuest( |
| 127 int instance_id, | 119 int instance_id, |
| 128 const std::string& src, | 120 const std::string& src, |
| 129 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) { | 121 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params) { |
| 130 embedder_->NavigateGuest(render_view_host(), | 122 embedder_->NavigateGuest(render_view_host(), |
| 131 instance_id, | 123 instance_id, |
| 132 src, | 124 src, |
| 133 resize_params); | 125 resize_params); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int instance_id, | 164 int instance_id, |
| 173 WebKit::WebDragStatus drag_status, | 165 WebKit::WebDragStatus drag_status, |
| 174 const WebDropData& drop_data, | 166 const WebDropData& drop_data, |
| 175 WebKit::WebDragOperationsMask drag_mask, | 167 WebKit::WebDragOperationsMask drag_mask, |
| 176 const gfx::Point& location) { | 168 const gfx::Point& location) { |
| 177 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask, | 169 embedder_->DragStatusUpdate(instance_id, drag_status, drop_data, drag_mask, |
| 178 location); | 170 location); |
| 179 } | 171 } |
| 180 | 172 |
| 181 } // namespace content | 173 } // namespace content |
| OLD | NEW |