OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 WebKit::WebFrame*, unsigned identifier, WebKit::WebURLRequest&, | 218 WebKit::WebFrame*, unsigned identifier, WebKit::WebURLRequest&, |
219 const WebKit::WebURLResponse& redirectResponse); | 219 const WebKit::WebURLResponse& redirectResponse); |
220 virtual void didReceiveResponse( | 220 virtual void didReceiveResponse( |
221 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLResponse&); | 221 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLResponse&); |
222 virtual void didFinishResourceLoad( | 222 virtual void didFinishResourceLoad( |
223 WebKit::WebFrame*, unsigned identifier); | 223 WebKit::WebFrame*, unsigned identifier); |
224 virtual void didFailResourceLoad( | 224 virtual void didFailResourceLoad( |
225 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); | 225 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); |
226 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); | 226 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); |
227 virtual void didRunInsecureContent( | 227 virtual void didRunInsecureContent( |
228 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); | 228 WebKit::WebFrame* frame, |
| 229 const WebKit::WebSecurityOrigin& origin) OVERRIDE; |
229 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); | 230 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); |
230 virtual void openFileSystem( | 231 virtual void openFileSystem( |
231 WebKit::WebFrame* frame, | 232 WebKit::WebFrame* frame, |
232 WebKit::WebFileSystem::Type type, | 233 WebKit::WebFileSystem::Type type, |
233 long long size, | 234 long long size, |
234 bool create, | 235 bool create, |
235 WebKit::WebFileSystemCallbacks* callbacks); | 236 WebKit::WebFileSystemCallbacks* callbacks); |
236 | 237 |
237 // webkit::npapi::WebPluginPageDelegate | 238 // webkit::npapi::WebPluginPageDelegate |
238 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 239 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 std::string edit_command_name_; | 451 std::string edit_command_name_; |
451 std::string edit_command_value_; | 452 std::string edit_command_value_; |
452 | 453 |
453 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 454 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
454 MockSpellCheck mock_spellcheck_; | 455 MockSpellCheck mock_spellcheck_; |
455 | 456 |
456 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 457 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
457 }; | 458 }; |
458 | 459 |
459 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 460 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |