| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 167 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
| 168 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); | 168 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); |
| 169 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 169 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
| 170 virtual bool allowImage(WebKit::WebFrame* frame, | 170 virtual bool allowImage(WebKit::WebFrame* frame, |
| 171 bool enabled_per_settings, | 171 bool enabled_per_settings, |
| 172 const WebKit::WebURL& image_url); | 172 const WebKit::WebURL& image_url); |
| 173 virtual void loadURLExternally( | 173 virtual void loadURLExternally( |
| 174 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 174 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
| 175 WebKit::WebNavigationPolicy); | 175 WebKit::WebNavigationPolicy); |
| 176 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 176 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
| 177 WebKit::WebFrame*, WebKit::WebDataSource*, const WebKit::WebURLRequest&, | 177 WebKit::WebFrame*, WebKit::WebDataSource::ExtraData*, |
| 178 WebKit::WebNavigationType, WebKit::WebNavigationPolicy default_policy, | 178 const WebKit::WebURLRequest&, WebKit::WebNavigationType, |
| 179 bool isRedirect); | 179 WebKit::WebNavigationPolicy default_policy, bool isRedirect); |
| 180 // DEPRECATED | 180 // DEPRECATED |
| 181 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 181 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
| 182 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 182 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
| 183 WebKit::WebNavigationType, WebKit::WebNavigationPolicy default_policy, | 183 WebKit::WebNavigationType, WebKit::WebNavigationPolicy default_policy, |
| 184 bool isRedirect); | 184 bool isRedirect); |
| 185 virtual bool canHandleRequest( | 185 virtual bool canHandleRequest( |
| 186 WebKit::WebFrame*, const WebKit::WebURLRequest&); | 186 WebKit::WebFrame*, const WebKit::WebURLRequest&); |
| 187 virtual WebKit::WebURLError cannotHandleRequestError( | 187 virtual WebKit::WebURLError cannotHandleRequestError( |
| 188 WebKit::WebFrame*, const WebKit::WebURLRequest& request); | 188 WebKit::WebFrame*, const WebKit::WebURLRequest& request); |
| 189 virtual WebKit::WebURLError cancelledError( | 189 virtual WebKit::WebURLError cancelledError( |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 std::string edit_command_name_; | 432 std::string edit_command_name_; |
| 433 std::string edit_command_value_; | 433 std::string edit_command_value_; |
| 434 | 434 |
| 435 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 435 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 436 MockSpellCheck mock_spellcheck_; | 436 MockSpellCheck mock_spellcheck_; |
| 437 | 437 |
| 438 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 438 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 439 }; | 439 }; |
| 440 | 440 |
| 441 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 441 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |