Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 150034: linux: only create browser-side plugin container after plugin requests it (Closed)
Patch Set: fix chrome build Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webkit/glue/plugins/webplugin_delegate_impl_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 6 #define CHROME_PLUGIN_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 19 matching lines...) Expand all
30 class WebPluginProxy : public WebPlugin { 30 class WebPluginProxy : public WebPlugin {
31 public: 31 public:
32 // Creates a new proxy for WebPlugin, using the given sender to send the 32 // Creates a new proxy for WebPlugin, using the given sender to send the
33 // marshalled WebPlugin calls. 33 // marshalled WebPlugin calls.
34 WebPluginProxy(PluginChannel* channel, 34 WebPluginProxy(PluginChannel* channel,
35 int route_id, 35 int route_id,
36 WebPluginDelegate* delegate); 36 WebPluginDelegate* delegate);
37 ~WebPluginProxy(); 37 ~WebPluginProxy();
38 38
39 // WebPlugin overrides 39 // WebPlugin overrides
40 #if defined(OS_LINUX)
41 gfx::PluginWindowHandle CreatePluginContainer() {
42 return 0; // Temporary empty stub while we restructure test_shell.
43 }
44 #endif
40 void SetWindow(gfx::PluginWindowHandle window); 45 void SetWindow(gfx::PluginWindowHandle window);
41 void WillDestroyWindow(gfx::PluginWindowHandle window); 46 void WillDestroyWindow(gfx::PluginWindowHandle window);
42 #if defined(OS_WIN) 47 #if defined(OS_WIN)
43 void SetWindowlessPumpEvent(HANDLE pump_messages_event); 48 void SetWindowlessPumpEvent(HANDLE pump_messages_event);
44 // Returns true on success. 49 // Returns true on success.
45 bool SetModalDialogEvent(HANDLE modal_dialog_event); 50 bool SetModalDialogEvent(HANDLE modal_dialog_event);
46 #endif 51 #endif
47 void CancelResource(int id); 52 void CancelResource(int id);
48 void Invalidate(); 53 void Invalidate();
49 void InvalidateRect(const gfx::Rect& rect); 54 void InvalidateRect(const gfx::Rect& rect);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // These hold the bitmap of the background image. 171 // These hold the bitmap of the background image.
167 ScopedHandle background_shared_section_; 172 ScopedHandle background_shared_section_;
168 ScopedBitmap background_bitmap_; 173 ScopedBitmap background_bitmap_;
169 ScopedHDC background_hdc_; 174 ScopedHDC background_hdc_;
170 #endif 175 #endif
171 176
172 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 177 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
173 }; 178 };
174 179
175 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 180 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/plugins/webplugin_delegate_impl_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698