OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4227 new PluginMsg_SignalModalDialogEvent(host_window_)); | 4227 new PluginMsg_SignalModalDialogEvent(host_window_)); |
4228 | 4228 |
4229 message->EnableMessagePumping(); // Runs a nested message loop. | 4229 message->EnableMessagePumping(); // Runs a nested message loop. |
4230 bool rv = Send(message); | 4230 bool rv = Send(message); |
4231 | 4231 |
4232 PluginChannelHost::Broadcast( | 4232 PluginChannelHost::Broadcast( |
4233 new PluginMsg_ResetModalDialogEvent(host_window_)); | 4233 new PluginMsg_ResetModalDialogEvent(host_window_)); |
4234 | 4234 |
4235 return rv; | 4235 return rv; |
4236 } | 4236 } |
| 4237 |
| 4238 #if defined(OS_MACOSX) |
| 4239 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle() { |
| 4240 gfx::PluginWindowHandle window = NULL; |
| 4241 Send(new ViewHostMsg_AllocateFakePluginWindowHandle( |
| 4242 routing_id(), &window)); |
| 4243 return window; |
| 4244 } |
| 4245 |
| 4246 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) { |
| 4247 if (window) |
| 4248 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window)); |
| 4249 } |
| 4250 |
| 4251 void RenderView::GPUPluginSetIOSurface(gfx::PluginWindowHandle window, |
| 4252 int32 width, |
| 4253 int32 height, |
| 4254 uint64 io_surface_identifier) { |
| 4255 Send(new ViewHostMsg_GPUPluginSetIOSurface( |
| 4256 routing_id(), window, width, height, io_surface_identifier)); |
| 4257 } |
| 4258 |
| 4259 void RenderView::GPUPluginBuffersSwapped(gfx::PluginWindowHandle window) { |
| 4260 Send(new ViewHostMsg_GPUPluginBuffersSwapped(routing_id(), window)); |
| 4261 } |
| 4262 #endif |
| 4263 |
OLD | NEW |