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 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 int route_id, | 35 int route_id, |
36 const GURL& page_url, | 36 const GURL& page_url, |
37 gfx::NativeViewId containing_window, | 37 gfx::NativeViewId containing_window, |
38 int host_render_view_routing_id); | 38 int host_render_view_routing_id); |
39 ~WebPluginProxy(); | 39 ~WebPluginProxy(); |
40 | 40 |
41 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } | 41 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } |
42 | 42 |
43 // WebPlugin overrides | 43 // WebPlugin overrides |
44 void SetWindow(gfx::PluginWindowHandle window); | 44 void SetWindow(gfx::PluginWindowHandle window); |
| 45 |
| 46 // Whether input events should be sent to the delegate. |
| 47 virtual void SetAcceptsInputEvents(bool accepts) { |
| 48 NOTREACHED(); |
| 49 } |
| 50 |
45 void WillDestroyWindow(gfx::PluginWindowHandle window); | 51 void WillDestroyWindow(gfx::PluginWindowHandle window); |
46 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
47 void SetWindowlessPumpEvent(HANDLE pump_messages_event); | 53 void SetWindowlessPumpEvent(HANDLE pump_messages_event); |
48 #endif | 54 #endif |
49 | 55 |
50 void CancelResource(unsigned long id); | 56 void CancelResource(unsigned long id); |
51 void Invalidate(); | 57 void Invalidate(); |
52 void InvalidateRect(const gfx::Rect& rect); | 58 void InvalidateRect(const gfx::Rect& rect); |
53 NPObject* GetWindowScriptNPObject(); | 59 NPObject* GetWindowScriptNPObject(); |
54 NPObject* GetPluginElement(); | 60 NPObject* GetPluginElement(); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 185 |
180 #endif | 186 #endif |
181 | 187 |
182 // Contains the routing id of the host render view. | 188 // Contains the routing id of the host render view. |
183 int host_render_view_routing_id_; | 189 int host_render_view_routing_id_; |
184 | 190 |
185 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 191 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
186 }; | 192 }; |
187 | 193 |
188 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 194 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
OLD | NEW |