| 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 WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "app/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #if defined(OS_LINUX) | 37 #if defined(OS_LINUX) |
| 38 // Create a new plugin parent container for a given plugin XID. | 38 // Create a new plugin parent container for a given plugin XID. |
| 39 void CreatePluginContainer(gfx::PluginWindowHandle id); | 39 void CreatePluginContainer(gfx::PluginWindowHandle id); |
| 40 | 40 |
| 41 // Destroy the plugin parent container when a plugin has been destroyed. | 41 // Destroy the plugin parent container when a plugin has been destroyed. |
| 42 void DestroyPluginContainer(gfx::PluginWindowHandle id); | 42 void DestroyPluginContainer(gfx::PluginWindowHandle id); |
| 43 | 43 |
| 44 GtkPluginContainerManager* plugin_container_manager() { | 44 GtkPluginContainerManager* plugin_container_manager() { |
| 45 return &plugin_container_manager_; | 45 return &plugin_container_manager_; |
| 46 } | 46 } |
| 47 #elif defined(OS_MACOSX) |
| 48 void SetIsActive(bool active); |
| 47 #endif | 49 #endif |
| 48 | 50 |
| 49 protected: | 51 protected: |
| 50 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 51 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) { | 53 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) { |
| 52 return false; | 54 return false; |
| 53 } | 55 } |
| 54 #endif | 56 #endif |
| 55 | 57 |
| 56 #if defined(OS_LINUX) | 58 #if defined(OS_LINUX) |
| 57 // Helper class that creates and moves plugin containers. | 59 // Helper class that creates and moves plugin containers. |
| 58 GtkPluginContainerManager plugin_container_manager_; | 60 GtkPluginContainerManager plugin_container_manager_; |
| 59 #endif | 61 #endif |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ | 64 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ |
| OLD | NEW |