| 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 20 matching lines...) Expand all Loading... |
| 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) | 40 #if defined(OS_LINUX) |
| 41 gfx::PluginWindowHandle CreatePluginContainer() { | 41 gfx::PluginWindowHandle CreatePluginContainer(); |
| 42 return 0; // Temporary empty stub while we restructure test_shell. | |
| 43 } | |
| 44 #endif | 42 #endif |
| 45 void SetWindow(gfx::PluginWindowHandle window); | 43 void SetWindow(gfx::PluginWindowHandle window); |
| 46 void WillDestroyWindow(gfx::PluginWindowHandle window); | 44 void WillDestroyWindow(gfx::PluginWindowHandle window); |
| 47 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 48 void SetWindowlessPumpEvent(HANDLE pump_messages_event); | 46 void SetWindowlessPumpEvent(HANDLE pump_messages_event); |
| 49 // Returns true on success. | 47 // Returns true on success. |
| 50 bool SetModalDialogEvent(HANDLE modal_dialog_event); | 48 bool SetModalDialogEvent(HANDLE modal_dialog_event); |
| 51 #endif | 49 #endif |
| 52 void CancelResource(int id); | 50 void CancelResource(int id); |
| 53 void Invalidate(); | 51 void Invalidate(); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // These hold the bitmap of the background image. | 169 // These hold the bitmap of the background image. |
| 172 ScopedHandle background_shared_section_; | 170 ScopedHandle background_shared_section_; |
| 173 ScopedBitmap background_bitmap_; | 171 ScopedBitmap background_bitmap_; |
| 174 ScopedHDC background_hdc_; | 172 ScopedHDC background_hdc_; |
| 175 #endif | 173 #endif |
| 176 | 174 |
| 177 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 175 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 178 }; | 176 }; |
| 179 | 177 |
| 180 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 178 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |