| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GLUE_WEBPLUGIN_PAGE_DELEGATE_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_ |
| 7 | 7 |
| 8 #include "gfx/native_widget_types.h" | 8 #include "gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class FilePath; | 10 class FilePath; |
| 11 class GURL; | 11 class GURL; |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebCookieJar; | 14 class WebCookieJar; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace webkit_glue { | 17 namespace webkit { |
| 18 namespace npapi { |
| 18 | 19 |
| 19 class WebPluginDelegate; | 20 class WebPluginDelegate; |
| 20 struct WebPluginGeometry; | 21 struct WebPluginGeometry; |
| 21 | 22 |
| 22 // Used by the WebPlugin to communicate back to the containing page. | 23 // Used by the WebPlugin to communicate back to the containing page. |
| 23 class WebPluginPageDelegate { | 24 class WebPluginPageDelegate { |
| 24 public: | 25 public: |
| 25 // This method is called to create a WebPluginDelegate implementation when a | 26 // This method is called to create a WebPluginDelegate implementation when a |
| 26 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper | 27 // new plugin is instanced. See CreateWebPluginDelegateHelper |
| 27 // for a default WebPluginDelegate implementation. | 28 // for a default WebPluginDelegate implementation. |
| 28 virtual WebPluginDelegate* CreatePluginDelegate( | 29 virtual WebPluginDelegate* CreatePluginDelegate( |
| 29 const FilePath& file_path, | 30 const FilePath& file_path, |
| 30 const std::string& mime_type) = 0; | 31 const std::string& mime_type) = 0; |
| 31 | 32 |
| 32 // Called when a windowed plugin is created. | 33 // Called when a windowed plugin is created. |
| 33 // Lets the view delegate create anything it is using to wrap the plugin. | 34 // Lets the view delegate create anything it is using to wrap the plugin. |
| 34 virtual void CreatedPluginWindow( | 35 virtual void CreatedPluginWindow( |
| 35 gfx::PluginWindowHandle handle) = 0; | 36 gfx::PluginWindowHandle handle) = 0; |
| 36 | 37 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 virtual void ShowModalHTMLDialogForPlugin( | 58 virtual void ShowModalHTMLDialogForPlugin( |
| 58 const GURL& url, | 59 const GURL& url, |
| 59 const gfx::Size& size, | 60 const gfx::Size& size, |
| 60 const std::string& json_arguments, | 61 const std::string& json_arguments, |
| 61 std::string* json_retval) = 0; | 62 std::string* json_retval) = 0; |
| 62 | 63 |
| 63 // The WebCookieJar to use for this plugin. | 64 // The WebCookieJar to use for this plugin. |
| 64 virtual WebKit::WebCookieJar* GetCookieJar() = 0; | 65 virtual WebKit::WebCookieJar* GetCookieJar() = 0; |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace webkit_glue | 68 } // namespace npapi |
| 69 } // namespace webkit |
| 68 | 70 |
| 69 #endif // WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_H_ | 71 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ |
| OLD | NEW |