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