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_host_helper.h" | 5 #include "content/browser/browser_plugin/browser_plugin_host_helper.h" |
6 | 6 |
7 #include "content/browser/browser_plugin/browser_plugin_host.h" | 7 #include "content/browser/browser_plugin/browser_plugin_host.h" |
8 #include "content/common/browser_plugin_messages.h" | 8 #include "content/common/browser_plugin_messages.h" |
9 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
10 #include "content/public/browser/render_widget_host_view.h" | 10 #include "content/public/browser/render_widget_host_view.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 void BrowserPluginHostHelper::OnConnectToChannel( | 39 void BrowserPluginHostHelper::OnConnectToChannel( |
40 const IPC::ChannelHandle& channel_handle) { | 40 const IPC::ChannelHandle& channel_handle) { |
41 browser_plugin_host_->ConnectEmbedderToChannel( | 41 browser_plugin_host_->ConnectEmbedderToChannel( |
42 render_view_host(), | 42 render_view_host(), |
43 channel_handle); | 43 channel_handle); |
44 } | 44 } |
45 | 45 |
46 void BrowserPluginHostHelper::OnNavigateGuestFromEmbedder( | 46 void BrowserPluginHostHelper::OnNavigateGuestFromEmbedder( |
47 int32 instance_id, | 47 int32 instance_id, |
48 long long frame_id, | 48 long long frame_id, |
49 const std::string& src, | 49 const std::string& src) { |
50 const gfx::Size& size) { | |
51 browser_plugin_host_->NavigateGuestFromEmbedder( | 50 browser_plugin_host_->NavigateGuestFromEmbedder( |
52 render_view_host(), | 51 render_view_host(), |
53 instance_id, | 52 instance_id, |
54 frame_id, | 53 frame_id, |
55 src, | 54 src); |
56 size); | |
57 } | 55 } |
58 | 56 |
59 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) { | 57 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) { |
60 render_view_host()->GetView()->SetSize(gfx::Size(width, height)); | 58 render_view_host()->GetView()->SetSize(gfx::Size(width, height)); |
61 } | 59 } |
62 | 60 |
63 } // namespace content | 61 } // namespace content |
OLD | NEW |