| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class SkBitmap; | 52 class SkBitmap; |
| 53 class WebError; | 53 class WebError; |
| 54 class WebFrame; | 54 class WebFrame; |
| 55 class WebHistoryItem; | 55 class WebHistoryItem; |
| 56 class WebMediaPlayerDelegate; | 56 class WebMediaPlayerDelegate; |
| 57 class WebPluginDelegate; | 57 class WebPluginDelegate; |
| 58 class WebRequest; | 58 class WebRequest; |
| 59 class WebResponse; | 59 class WebResponse; |
| 60 class WebView; | 60 class WebView; |
| 61 class WebWidget; | 61 class WebWidget; |
| 62 class WebWorkerContextProxy; |
| 62 | 63 |
| 63 enum WebNavigationType { | 64 enum WebNavigationType { |
| 64 WebNavigationTypeLinkClicked, | 65 WebNavigationTypeLinkClicked, |
| 65 WebNavigationTypeFormSubmitted, | 66 WebNavigationTypeFormSubmitted, |
| 66 WebNavigationTypeBackForward, | 67 WebNavigationTypeBackForward, |
| 67 WebNavigationTypeReload, | 68 WebNavigationTypeReload, |
| 68 WebNavigationTypeFormResubmitted, | 69 WebNavigationTypeFormResubmitted, |
| 69 WebNavigationTypeOther | 70 WebNavigationTypeOther |
| 70 }; | 71 }; |
| 71 | 72 |
| (...skipping 53 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 virtual WebWorkerContextProxy* CreateWebWorker() { |
| 137 return NULL; |
| 138 } |
| 139 |
| 135 // Called when a WebMediaPlayerDelegate is needed. | 140 // Called when a WebMediaPlayerDelegate is needed. |
| 136 virtual webkit_glue::WebMediaPlayerDelegate* CreateMediaPlayerDelegate() { | 141 virtual webkit_glue::WebMediaPlayerDelegate* CreateMediaPlayerDelegate() { |
| 137 return NULL; | 142 return NULL; |
| 138 } | 143 } |
| 139 | 144 |
| 140 // This method is called when default plugin has been correctly created and | 145 // This method is called when default plugin has been correctly created and |
| 141 // initialized, and found that the missing plugin is available to install or | 146 // initialized, and found that the missing plugin is available to install or |
| 142 // user has started installation. | 147 // user has started installation. |
| 143 virtual void OnMissingPluginStatus(WebPluginDelegate* delegate, int status) { | 148 virtual void OnMissingPluginStatus(WebPluginDelegate* delegate, int status) { |
| 144 } | 149 } |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 virtual void DidAddHistoryItem() { } | 784 virtual void DidAddHistoryItem() { } |
| 780 | 785 |
| 781 WebViewDelegate() { } | 786 WebViewDelegate() { } |
| 782 virtual ~WebViewDelegate() { } | 787 virtual ~WebViewDelegate() { } |
| 783 | 788 |
| 784 private: | 789 private: |
| 785 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 790 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
| 786 }; | 791 }; |
| 787 | 792 |
| 788 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 793 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |