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_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 class FilePath; | 10 class FilePath; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // same time as each other and the page. | 45 // same time as each other and the page. |
46 virtual void DidMovePlugin( | 46 virtual void DidMovePlugin( |
47 const WebPluginGeometry& move) = 0; | 47 const WebPluginGeometry& move) = 0; |
48 | 48 |
49 // Notifies the parent view that a load has begun. | 49 // Notifies the parent view that a load has begun. |
50 virtual void DidStartLoadingForPlugin() = 0; | 50 virtual void DidStartLoadingForPlugin() = 0; |
51 | 51 |
52 // Notifies the parent view that all loads are finished. | 52 // Notifies the parent view that all loads are finished. |
53 virtual void DidStopLoadingForPlugin() = 0; | 53 virtual void DidStopLoadingForPlugin() = 0; |
54 | 54 |
55 // Asks the browser to show a modal HTML dialog. The dialog is passed the | |
56 // given arguments as a JSON string, and returns its result as a JSON string | |
57 // through json_retval. | |
58 virtual void ShowModalHTMLDialogForPlugin( | |
59 const GURL& url, | |
60 const gfx::Size& size, | |
61 const std::string& json_arguments, | |
62 std::string* json_retval) = 0; | |
63 | |
64 // The WebCookieJar to use for this plugin. | 55 // The WebCookieJar to use for this plugin. |
65 virtual WebKit::WebCookieJar* GetCookieJar() = 0; | 56 virtual WebKit::WebCookieJar* GetCookieJar() = 0; |
66 }; | 57 }; |
67 | 58 |
68 } // namespace npapi | 59 } // namespace npapi |
69 } // namespace webkit | 60 } // namespace webkit |
70 | 61 |
71 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ | 62 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ |
OLD | NEW |