| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "base/file_path.h" | 31 #include "base/file_path.h" |
| 32 #include "webkit/glue/context_menu.h" | 32 #include "webkit/glue/context_menu.h" |
| 33 #include "webkit/glue/webdatasource.h" | 33 #include "webkit/glue/webdatasource.h" |
| 34 #include "webkit/glue/webwidget_delegate.h" | 34 #include "webkit/glue/webwidget_delegate.h" |
| 35 | 35 |
| 36 namespace webkit_glue { | 36 namespace webkit_glue { |
| 37 class WebMediaPlayerDelegate; | 37 class WebMediaPlayerDelegate; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace WebCore { |
| 41 class AccessibilityObject; |
| 42 } |
| 43 |
| 40 namespace WebKit { | 44 namespace WebKit { |
| 41 class WebDragData; | 45 class WebDragData; |
| 42 class WebWorker; | 46 class WebWorker; |
| 43 class WebWorkerClient; | 47 class WebWorkerClient; |
| 44 class WebMediaPlayer; | 48 class WebMediaPlayer; |
| 45 class WebMediaPlayerClient; | 49 class WebMediaPlayerClient; |
| 46 struct WebPoint; | 50 struct WebPoint; |
| 47 struct WebRect; | 51 struct WebRect; |
| 48 } | 52 } |
| 49 | 53 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 virtual void ReportFindInPageSelection(int request_id, | 166 virtual void ReportFindInPageSelection(int request_id, |
| 163 int active_match_ordinal, | 167 int active_match_ordinal, |
| 164 const WebKit::WebRect& selection) { | 168 const WebKit::WebRect& selection) { |
| 165 } | 169 } |
| 166 | 170 |
| 167 // Returns whether this WebView was opened by a user gesture. | 171 // Returns whether this WebView was opened by a user gesture. |
| 168 virtual bool WasOpenedByUserGesture() const { | 172 virtual bool WasOpenedByUserGesture() const { |
| 169 return true; | 173 return true; |
| 170 } | 174 } |
| 171 | 175 |
| 176 // Called by ChromeClientImpl::focus() if accessibility on the renderer side |
| 177 // is enabled, and a focus change has occurred. Will retrieve the id of the |
| 178 // input AccessibilityObject and send it through IPC for handling on the |
| 179 // browser side. |
| 180 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj) { |
| 181 } |
| 182 |
| 172 // FrameLoaderClient ------------------------------------------------------- | 183 // FrameLoaderClient ------------------------------------------------------- |
| 173 | 184 |
| 174 // Notifies the delegate that a load has begun. | 185 // Notifies the delegate that a load has begun. |
| 175 virtual void DidStartLoading(WebView* webview) { | 186 virtual void DidStartLoading(WebView* webview) { |
| 176 } | 187 } |
| 177 | 188 |
| 178 // Notifies the delegate that all loads are finished. | 189 // Notifies the delegate that all loads are finished. |
| 179 virtual void DidStopLoading(WebView* webview) { | 190 virtual void DidStopLoading(WebView* webview) { |
| 180 } | 191 } |
| 181 | 192 |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 virtual void DidAddHistoryItem() { } | 789 virtual void DidAddHistoryItem() { } |
| 779 | 790 |
| 780 WebViewDelegate() { } | 791 WebViewDelegate() { } |
| 781 virtual ~WebViewDelegate() { } | 792 virtual ~WebViewDelegate() { } |
| 782 | 793 |
| 783 private: | 794 private: |
| 784 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); | 795 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); |
| 785 }; | 796 }; |
| 786 | 797 |
| 787 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ | 798 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |