| 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 // TestWebViewDelegate class: | 5 // TestWebViewDelegate class: |
| 6 // This class implements the WebViewDelegate methods for the test shell. One | 6 // This class implements the WebViewDelegate methods for the test shell. One |
| 7 // instance is owned by each TestShell. | 7 // instance is owned by each TestShell. |
| 8 | 8 |
| 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 unsigned int delay_seconds, | 175 unsigned int delay_seconds, |
| 176 unsigned int fire_date); | 176 unsigned int fire_date); |
| 177 virtual void DidCancelClientRedirect(WebView* webview, | 177 virtual void DidCancelClientRedirect(WebView* webview, |
| 178 WebFrame* frame); | 178 WebFrame* frame); |
| 179 | 179 |
| 180 virtual void DidFinishLoadForFrame(WebView* webview, WebFrame* frame); | 180 virtual void DidFinishLoadForFrame(WebView* webview, WebFrame* frame); |
| 181 virtual void DidFailLoadWithError(WebView* webview, | 181 virtual void DidFailLoadWithError(WebView* webview, |
| 182 const WebKit::WebURLError& error, | 182 const WebKit::WebURLError& error, |
| 183 WebFrame* for_frame); | 183 WebFrame* for_frame); |
| 184 | 184 |
| 185 virtual void AssignIdentifierToRequest(WebView* webview, | 185 virtual void AssignIdentifierToRequest(WebFrame* webframe, |
| 186 uint32 identifier, | 186 uint32 identifier, |
| 187 const WebKit::WebURLRequest& request); | 187 const WebKit::WebURLRequest& request); |
| 188 virtual void WillSendRequest(WebView* webview, | 188 virtual void WillSendRequest(WebFrame* webframe, |
| 189 uint32 identifier, | 189 uint32 identifier, |
| 190 WebKit::WebURLRequest* request); | 190 WebKit::WebURLRequest* request); |
| 191 virtual void DidFinishLoading(WebView* webview, uint32 identifier); | 191 virtual void DidFinishLoading(WebFrame* webframe, uint32 identifier); |
| 192 virtual void DidFailLoadingWithError(WebView* webview, | 192 virtual void DidFailLoadingWithError(WebFrame* webframe, |
| 193 uint32 identifier, | 193 uint32 identifier, |
| 194 const WebKit::WebURLError& error); | 194 const WebKit::WebURLError& error); |
| 195 | 195 |
| 196 virtual bool ShouldBeginEditing(WebView* webview, std::wstring range); | 196 virtual bool ShouldBeginEditing(WebView* webview, std::wstring range); |
| 197 virtual bool ShouldEndEditing(WebView* webview, std::wstring range); | 197 virtual bool ShouldEndEditing(WebView* webview, std::wstring range); |
| 198 virtual bool ShouldInsertNode(WebView* webview, | 198 virtual bool ShouldInsertNode(WebView* webview, |
| 199 std::wstring node, | 199 std::wstring node, |
| 200 std::wstring range, | 200 std::wstring range, |
| 201 std::wstring action); | 201 std::wstring action); |
| 202 virtual bool ShouldInsertText(WebView* webview, | 202 virtual bool ShouldInsertText(WebView* webview, |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 368 |
| 369 #if defined(OS_MACOSX) | 369 #if defined(OS_MACOSX) |
| 370 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; | 370 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; |
| 371 WebKit::WebRect popup_bounds_; | 371 WebKit::WebRect popup_bounds_; |
| 372 #endif | 372 #endif |
| 373 | 373 |
| 374 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 374 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 377 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |