| 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_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 Loading... |
| 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 Loading... |
| 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__ |
| OLD | NEW |