| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/plugin/webplugin_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include "app/win_util.h" | 10 #include "app/win_util.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 bool WebPluginProxy::Send(IPC::Message* msg) { | 110 bool WebPluginProxy::Send(IPC::Message* msg) { |
| 111 return channel_->Send(msg); | 111 return channel_->Send(msg); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void WebPluginProxy::SetWindow(gfx::PluginWindowHandle window) { | 114 void WebPluginProxy::SetWindow(gfx::PluginWindowHandle window) { |
| 115 Send(new PluginHostMsg_SetWindow(route_id_, window)); | 115 Send(new PluginHostMsg_SetWindow(route_id_, window)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void WebPluginProxy::SetAcceptsInputEvents(bool accepts) { |
| 119 NOTREACHED(); |
| 120 } |
| 121 |
| 118 void WebPluginProxy::WillDestroyWindow(gfx::PluginWindowHandle window) { | 122 void WebPluginProxy::WillDestroyWindow(gfx::PluginWindowHandle window) { |
| 119 #if defined(OS_WIN) | 123 #if defined(OS_WIN) |
| 120 PluginThread::current()->Send( | 124 PluginThread::current()->Send( |
| 121 new PluginProcessHostMsg_PluginWindowDestroyed( | 125 new PluginProcessHostMsg_PluginWindowDestroyed( |
| 122 window, ::GetParent(window))); | 126 window, ::GetParent(window))); |
| 123 #elif defined(USE_X11) | 127 #elif defined(USE_X11) |
| 124 // Nothing to do. | 128 // Nothing to do. |
| 125 #else | 129 #else |
| 126 NOTIMPLEMENTED(); | 130 NOTIMPLEMENTED(); |
| 127 #endif | 131 #endif |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 } else { | 729 } else { |
| 726 index++; | 730 index++; |
| 727 } | 731 } |
| 728 } | 732 } |
| 729 } | 733 } |
| 730 | 734 |
| 731 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 735 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
| 732 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 736 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
| 733 } | 737 } |
| 734 | 738 |
| OLD | NEW |