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/old/browser_plugin_host_helper.h" | 5 #include "content/browser/browser_plugin/old/browser_plugin_host_helper.h" |
6 | 6 |
7 #include "content/browser/browser_plugin/old/browser_plugin_host.h" | 7 #include "content/browser/browser_plugin/old/browser_plugin_host.h" |
8 #include "content/common/old_browser_plugin_messages.h" | 8 #include "content/common/old_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" |
11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
| 14 namespace old { |
14 | 15 |
15 BrowserPluginHostHelper::BrowserPluginHostHelper( | 16 BrowserPluginHostHelper::BrowserPluginHostHelper( |
16 BrowserPluginHost* browser_plugin_host, | 17 BrowserPluginHost* browser_plugin_host, |
17 RenderViewHost* render_view_host) | 18 RenderViewHost* render_view_host) |
18 : RenderViewHostObserver(render_view_host), | 19 : RenderViewHostObserver(render_view_host), |
19 browser_plugin_host_(browser_plugin_host) { | 20 browser_plugin_host_(browser_plugin_host) { |
20 } | 21 } |
21 | 22 |
22 BrowserPluginHostHelper::~BrowserPluginHostHelper() { | 23 BrowserPluginHostHelper::~BrowserPluginHostHelper() { |
23 } | 24 } |
(...skipping 27 matching lines...) Expand all Loading... |
51 render_view_host(), | 52 render_view_host(), |
52 instance_id, | 53 instance_id, |
53 frame_id, | 54 frame_id, |
54 src); | 55 src); |
55 } | 56 } |
56 | 57 |
57 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) { | 58 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) { |
58 render_view_host()->GetView()->SetSize(gfx::Size(width, height)); | 59 render_view_host()->GetView()->SetSize(gfx::Size(width, height)); |
59 } | 60 } |
60 | 61 |
| 62 } // namespace old |
61 } // namespace content | 63 } // namespace content |
OLD | NEW |