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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 IPC::Message* reply_message = | 122 IPC::Message* reply_message = |
123 IPC::SyncMessage::GenerateReply(&message); | 123 IPC::SyncMessage::GenerateReply(&message); |
124 embedder_->HandleInputEvent(instance_id, | 124 embedder_->HandleInputEvent(instance_id, |
125 rvh, | 125 rvh, |
126 guest_screen_rect, | 126 guest_screen_rect, |
127 *input_event, | 127 *input_event, |
128 reply_message); | 128 reply_message); |
129 } | 129 } |
130 | 130 |
131 void BrowserPluginEmbedderHelper::OnNavigateGuest(int instance_id, | 131 void BrowserPluginEmbedderHelper::OnNavigateGuest(int instance_id, |
132 int64 frame_id, | |
133 const std::string& src, | 132 const std::string& src, |
134 const gfx::Size& size) { | 133 const gfx::Size& size) { |
135 embedder_->NavigateGuest(render_view_host(), instance_id, frame_id, src, | 134 embedder_->NavigateGuest(render_view_host(), instance_id, src, size); |
136 size); | |
137 } | 135 } |
138 | 136 |
139 void BrowserPluginEmbedderHelper::OnUpdateRectACK(int instance_id, | 137 void BrowserPluginEmbedderHelper::OnUpdateRectACK(int instance_id, |
140 int message_id, | 138 int message_id, |
141 const gfx::Size& size) { | 139 const gfx::Size& size) { |
142 embedder_->UpdateRectACK(instance_id, message_id, size); | 140 embedder_->UpdateRectACK(instance_id, message_id, size); |
143 } | 141 } |
144 | 142 |
145 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) { | 143 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) { |
146 embedder_->SetFocus(instance_id, focused); | 144 embedder_->SetFocus(instance_id, focused); |
147 } | 145 } |
148 | 146 |
149 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) { | 147 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) { |
150 embedder_->PluginDestroyed(instance_id); | 148 embedder_->PluginDestroyed(instance_id); |
151 } | 149 } |
152 | 150 |
153 void BrowserPluginEmbedderHelper::OnStop(int instance_id) { | 151 void BrowserPluginEmbedderHelper::OnStop(int instance_id) { |
154 embedder_->Stop(instance_id); | 152 embedder_->Stop(instance_id); |
155 } | 153 } |
156 | 154 |
157 void BrowserPluginEmbedderHelper::OnReload(int instance_id) { | 155 void BrowserPluginEmbedderHelper::OnReload(int instance_id) { |
158 embedder_->Reload(instance_id); | 156 embedder_->Reload(instance_id); |
159 } | 157 } |
160 | 158 |
161 } // namespace content | 159 } // namespace content |
OLD | NEW |