| 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 // WebCore provides hooks for several kinds of functionality, allowing separate | 5 // WebCore provides hooks for several kinds of functionality, allowing separate |
| 6 // classes termed "delegates" to receive notifications (in the form of direct | 6 // classes termed "delegates" to receive notifications (in the form of direct |
| 7 // function calls) when certain events are about to occur or have just occurred. | 7 // function calls) when certain events are about to occur or have just occurred. |
| 8 // In some cases, the delegate implements the needed functionality; in others, | 8 // In some cases, the delegate implements the needed functionality; in others, |
| 9 // the delegate has some control over the behavior but doesn't actually | 9 // the delegate has some control over the behavior but doesn't actually |
| 10 // implement it. For example, the UI delegate is responsible for showing a | 10 // implement it. For example, the UI delegate is responsible for showing a |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // the needed functionality of the WebKit UIDelegate, ContextMenuDelegate, | 21 // the needed functionality of the WebKit UIDelegate, ContextMenuDelegate, |
| 22 // PolicyDelegate, FrameLoadDelegate, and EditorDelegate; additional portions | 22 // PolicyDelegate, FrameLoadDelegate, and EditorDelegate; additional portions |
| 23 // of ChromeClient and FrameLoaderClient not delegated in the WebKit | 23 // of ChromeClient and FrameLoaderClient not delegated in the WebKit |
| 24 // implementation; and some WebView additions. | 24 // implementation; and some WebView additions. |
| 25 | 25 |
| 26 #ifndef WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 26 #ifndef WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| 27 #define WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 27 #define WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| 28 | 28 |
| 29 #include <vector> | 29 #include <vector> |
| 30 | 30 |
| 31 #include "base/gfx/native_widget_types.h" |
| 31 #include "webkit/api/public/WebNavigationType.h" | 32 #include "webkit/api/public/WebNavigationType.h" |
| 32 #include "webkit/glue/context_menu.h" | 33 #include "webkit/glue/context_menu.h" |
| 33 #include "webkit/glue/webwidget_delegate.h" | 34 #include "webkit/glue/webwidget_delegate.h" |
| 34 | 35 |
| 35 namespace webkit_glue { | 36 namespace webkit_glue { |
| 36 class WebMediaPlayerDelegate; | 37 class WebMediaPlayerDelegate; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace WebCore { | 40 namespace WebCore { |
| 40 class AccessibilityObject; | 41 class AccessibilityObject; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // platform-neutral | 126 // platform-neutral |
| 126 virtual WebPluginDelegate* CreatePluginDelegate( | 127 virtual WebPluginDelegate* CreatePluginDelegate( |
| 127 WebView* webview, | 128 WebView* webview, |
| 128 const GURL& url, | 129 const GURL& url, |
| 129 const std::string& mime_type, | 130 const std::string& mime_type, |
| 130 const std::string& clsid, | 131 const std::string& clsid, |
| 131 std::string* actual_mime_type) { | 132 std::string* actual_mime_type) { |
| 132 return NULL; | 133 return NULL; |
| 133 } | 134 } |
| 134 | 135 |
| 136 // Called when a windowed plugin is closing. |
| 137 // Lets the view delegate shut down anything it is using to wrap the plugin. |
| 138 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) { } |
| 139 |
| 135 // This method is called when the renderer creates a worker object. | 140 // This method is called when the renderer creates a worker object. |
| 136 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client) { | 141 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client) { |
| 137 return NULL; | 142 return NULL; |
| 138 } | 143 } |
| 139 | 144 |
| 140 // Called when a WebMediaPlayer is needed. | 145 // Called when a WebMediaPlayer is needed. |
| 141 virtual WebKit::WebMediaPlayer* CreateWebMediaPlayer( | 146 virtual WebKit::WebMediaPlayer* CreateWebMediaPlayer( |
| 142 WebKit::WebMediaPlayerClient* client) { | 147 WebKit::WebMediaPlayerClient* client) { |
| 143 return NULL; | 148 return NULL; |
| 144 } | 149 } |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 virtual void DidAddHistoryItem() { } | 819 virtual void DidAddHistoryItem() { } |
| 815 | 820 |
| 816 WebViewDelegate() { } | 821 WebViewDelegate() { } |
| 817 virtual ~WebViewDelegate() { } | 822 virtual ~WebViewDelegate() { } |
| 818 | 823 |
| 819 private: | 824 private: |
| 820 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 825 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
| 821 }; | 826 }; |
| 822 | 827 |
| 823 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 828 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |