| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 172 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
| 173 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); | 173 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); |
| 174 virtual void willClose(WebKit::WebFrame*) {} | 174 virtual void willClose(WebKit::WebFrame*) {} |
| 175 virtual void loadURLExternally( | 175 virtual void loadURLExternally( |
| 176 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 176 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
| 177 WebKit::WebNavigationPolicy); | 177 WebKit::WebNavigationPolicy); |
| 178 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 178 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
| 179 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 179 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
| 180 WebKit::WebNavigationType, const WebKit::WebNode&, | 180 WebKit::WebNavigationType, const WebKit::WebNode&, |
| 181 WebKit::WebNavigationPolicy default_policy, bool isRedirect); | 181 WebKit::WebNavigationPolicy default_policy, bool isRedirect); |
| 182 virtual bool canHandleRequest(const WebKit::WebURLRequest&); |
| 183 virtual WebKit::WebURLError cannotShowURLError( |
| 184 const WebKit::WebURLRequest& request); |
| 185 virtual void unableToImplementPolicyWithError( |
| 186 WebKit::WebFrame*, const WebKit::WebURLError&); |
| 182 virtual void willSubmitForm(WebKit::WebFrame*, const WebKit::WebForm&) {} | 187 virtual void willSubmitForm(WebKit::WebFrame*, const WebKit::WebForm&) {} |
| 183 virtual void willPerformClientRedirect( | 188 virtual void willPerformClientRedirect( |
| 184 WebKit::WebFrame*, const WebKit::WebURL& from, const WebKit::WebURL& to, | 189 WebKit::WebFrame*, const WebKit::WebURL& from, const WebKit::WebURL& to, |
| 185 double interval, double fire_time); | 190 double interval, double fire_time); |
| 186 virtual void didCancelClientRedirect(WebKit::WebFrame*); | 191 virtual void didCancelClientRedirect(WebKit::WebFrame*); |
| 187 virtual void didCompleteClientRedirect( | 192 virtual void didCompleteClientRedirect( |
| 188 WebKit::WebFrame*, const WebKit::WebURL& from) {} | 193 WebKit::WebFrame*, const WebKit::WebURL& from) {} |
| 189 virtual void didCreateDataSource( | 194 virtual void didCreateDataSource( |
| 190 WebKit::WebFrame*, WebKit::WebDataSource*); | 195 WebKit::WebFrame*, WebKit::WebDataSource*); |
| 191 virtual void didStartProvisionalLoad(WebKit::WebFrame*); | 196 virtual void didStartProvisionalLoad(WebKit::WebFrame*); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 // true if we want to enable selection of trailing whitespaces | 409 // true if we want to enable selection of trailing whitespaces |
| 405 bool select_trailing_whitespace_enabled_; | 410 bool select_trailing_whitespace_enabled_; |
| 406 | 411 |
| 407 // true if we should block any redirects | 412 // true if we should block any redirects |
| 408 bool block_redirects_; | 413 bool block_redirects_; |
| 409 | 414 |
| 410 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 415 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 411 }; | 416 }; |
| 412 | 417 |
| 413 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 418 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |