| 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_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 new BrowserPluginMsg_Attach_ACK(instance_id_, ack_params)); | 1034 new BrowserPluginMsg_Attach_ACK(instance_id_, ack_params)); |
| 1035 | 1035 |
| 1036 SendQueuedMessages(); | 1036 SendQueuedMessages(); |
| 1037 | 1037 |
| 1038 RecordAction(UserMetricsAction("BrowserPlugin.Guest.Attached")); | 1038 RecordAction(UserMetricsAction("BrowserPlugin.Guest.Attached")); |
| 1039 } | 1039 } |
| 1040 | 1040 |
| 1041 void BrowserPluginGuest::OnCompositorFrameACK( | 1041 void BrowserPluginGuest::OnCompositorFrameACK( |
| 1042 int instance_id, | 1042 int instance_id, |
| 1043 int route_id, | 1043 int route_id, |
| 1044 uint32 output_surface_id, |
| 1044 int renderer_host_id, | 1045 int renderer_host_id, |
| 1045 const cc::CompositorFrameAck& ack) { | 1046 const cc::CompositorFrameAck& ack) { |
| 1046 RenderWidgetHostImpl::SendSwapCompositorFrameAck(route_id, | 1047 RenderWidgetHostImpl::SendSwapCompositorFrameAck(route_id, |
| 1048 output_surface_id, |
| 1047 renderer_host_id, | 1049 renderer_host_id, |
| 1048 ack); | 1050 ack); |
| 1049 } | 1051 } |
| 1050 | 1052 |
| 1051 void BrowserPluginGuest::OnDragStatusUpdate(int instance_id, | 1053 void BrowserPluginGuest::OnDragStatusUpdate(int instance_id, |
| 1052 WebKit::WebDragStatus drag_status, | 1054 WebKit::WebDragStatus drag_status, |
| 1053 const DropData& drop_data, | 1055 const DropData& drop_data, |
| 1054 WebKit::WebDragOperationsMask mask, | 1056 WebKit::WebDragOperationsMask mask, |
| 1055 const gfx::Point& location) { | 1057 const gfx::Point& location) { |
| 1056 RenderViewHost* host = GetWebContents()->GetRenderViewHost(); | 1058 RenderViewHost* host = GetWebContents()->GetRenderViewHost(); |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 base::Value::CreateStringValue(request_method)); | 1496 base::Value::CreateStringValue(request_method)); |
| 1495 request_info.Set(browser_plugin::kURL, base::Value::CreateStringValue(url)); | 1497 request_info.Set(browser_plugin::kURL, base::Value::CreateStringValue(url)); |
| 1496 | 1498 |
| 1497 SendMessageToEmbedder( | 1499 SendMessageToEmbedder( |
| 1498 new BrowserPluginMsg_RequestPermission(instance_id(), | 1500 new BrowserPluginMsg_RequestPermission(instance_id(), |
| 1499 BrowserPluginPermissionTypeDownload, permission_request_id, | 1501 BrowserPluginPermissionTypeDownload, permission_request_id, |
| 1500 request_info)); | 1502 request_info)); |
| 1501 } | 1503 } |
| 1502 | 1504 |
| 1503 } // namespace content | 1505 } // namespace content |
| OLD | NEW |