OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/plugin/webplugin_proxy.h" | 5 #include "content/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/scoped_handle.h" | 10 #include "base/memory/scoped_handle.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void WebPluginProxy::SetWindowlessPumpEvent(HANDLE pump_messages_event) { | 124 void WebPluginProxy::SetWindowlessPumpEvent(HANDLE pump_messages_event) { |
125 HANDLE pump_messages_event_for_renderer = NULL; | 125 HANDLE pump_messages_event_for_renderer = NULL; |
126 DuplicateHandle(GetCurrentProcess(), pump_messages_event, | 126 DuplicateHandle(GetCurrentProcess(), pump_messages_event, |
127 channel_->renderer_handle(), | 127 channel_->renderer_handle(), |
128 &pump_messages_event_for_renderer, | 128 &pump_messages_event_for_renderer, |
129 0, FALSE, DUPLICATE_SAME_ACCESS); | 129 0, FALSE, DUPLICATE_SAME_ACCESS); |
130 DCHECK(pump_messages_event_for_renderer != NULL); | 130 DCHECK(pump_messages_event_for_renderer != NULL); |
131 Send(new PluginHostMsg_SetWindowlessPumpEvent( | 131 Send(new PluginHostMsg_SetWindowlessPumpEvent( |
132 route_id_, pump_messages_event_for_renderer)); | 132 route_id_, pump_messages_event_for_renderer)); |
133 } | 133 } |
| 134 |
| 135 void WebPluginProxy::ReparentPluginWindow(HWND window, HWND parent) { |
| 136 PluginThread::current()->Send( |
| 137 new PluginProcessHostMsg_ReparentPluginWindow(window, parent)); |
| 138 } |
134 #endif | 139 #endif |
135 | 140 |
136 void WebPluginProxy::CancelResource(unsigned long id) { | 141 void WebPluginProxy::CancelResource(unsigned long id) { |
137 Send(new PluginHostMsg_CancelResource(route_id_, id)); | 142 Send(new PluginHostMsg_CancelResource(route_id_, id)); |
138 resource_clients_.erase(id); | 143 resource_clients_.erase(id); |
139 } | 144 } |
140 | 145 |
141 void WebPluginProxy::Invalidate() { | 146 void WebPluginProxy::Invalidate() { |
142 gfx::Rect rect(0, 0, | 147 gfx::Rect rect(0, 0, |
143 delegate_->GetRect().width(), | 148 delegate_->GetRect().width(), |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 resource_clients_.erase(index++); | 656 resource_clients_.erase(index++); |
652 } else { | 657 } else { |
653 index++; | 658 index++; |
654 } | 659 } |
655 } | 660 } |
656 } | 661 } |
657 | 662 |
658 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 663 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
659 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 664 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
660 } | 665 } |
OLD | NEW |