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