OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 template<class WebPluginDelegateProxy> friend class DeleteTask; | 99 template<class WebPluginDelegateProxy> friend class DeleteTask; |
100 ~WebPluginDelegateProxy(); | 100 ~WebPluginDelegateProxy(); |
101 | 101 |
102 private: | 102 private: |
103 WebPluginDelegateProxy(const std::string& mime_type, | 103 WebPluginDelegateProxy(const std::string& mime_type, |
104 const std::string& clsid, | 104 const std::string& clsid, |
105 RenderView* render_view); | 105 RenderView* render_view); |
106 | 106 |
107 // Message handlers for messages that proxy WebPlugin methods, which | 107 // Message handlers for messages that proxy WebPlugin methods, which |
108 // we translate into calls to the real WebPlugin. | 108 // we translate into calls to the real WebPlugin. |
109 void OnSetWindow(gfx::NativeViewId window); | 109 void OnSetWindow(gfx::PluginWindowHandle window); |
| 110 #if defined(OS_LINUX) |
| 111 void OnCreatePluginContainer(gfx::PluginWindowHandle* container); |
| 112 void OnDestroyPluginContainer(gfx::PluginWindowHandle container); |
| 113 #endif |
110 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
111 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); | 115 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); |
112 #endif | 116 #endif |
113 void OnCompleteURL(const std::string& url_in, std::string* url_out, | 117 void OnCompleteURL(const std::string& url_in, std::string* url_out, |
114 bool* result); | 118 bool* result); |
115 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); | 119 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); |
116 void OnCancelResource(int id); | 120 void OnCancelResource(int id); |
117 void OnInvalidateRect(const gfx::Rect& rect); | 121 void OnInvalidateRect(const gfx::Rect& rect); |
118 void OnGetWindowScriptNPObject(int route_id, bool* success, | 122 void OnGetWindowScriptNPObject(int route_id, bool* success, |
119 intptr_t* npobject_ptr); | 123 intptr_t* npobject_ptr); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 scoped_ptr<skia::PlatformCanvas> transport_store_canvas_; | 201 scoped_ptr<skia::PlatformCanvas> transport_store_canvas_; |
198 scoped_ptr<base::SharedMemory> background_store_; | 202 scoped_ptr<base::SharedMemory> background_store_; |
199 scoped_ptr<skia::PlatformCanvas> background_store_canvas_; | 203 scoped_ptr<skia::PlatformCanvas> background_store_canvas_; |
200 // This lets us know which portion of the backing store has been painted into. | 204 // This lets us know which portion of the backing store has been painted into. |
201 gfx::Rect backing_store_painted_; | 205 gfx::Rect backing_store_painted_; |
202 | 206 |
203 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 207 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
204 }; | 208 }; |
205 | 209 |
206 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 210 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |