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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 WebKit::WebFrame* frame, | 234 WebKit::WebFrame* frame, |
235 WebKit::WebFileSystem::Type type, | 235 WebKit::WebFileSystem::Type type, |
236 long long size, | 236 long long size, |
237 bool create, | 237 bool create, |
238 WebKit::WebFileSystemCallbacks* callbacks); | 238 WebKit::WebFileSystemCallbacks* callbacks); |
239 | 239 |
240 // webkit::npapi::WebPluginPageDelegate | 240 // webkit::npapi::WebPluginPageDelegate |
241 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 241 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
242 const FilePath& url, | 242 const FilePath& url, |
243 const std::string& mime_type) OVERRIDE; | 243 const std::string& mime_type) OVERRIDE; |
| 244 virtual WebKit::WebPlugin* CreatePluginReplacement( |
| 245 const FilePath& file_path) OVERRIDE; |
244 virtual void CreatedPluginWindow( | 246 virtual void CreatedPluginWindow( |
245 gfx::PluginWindowHandle handle) OVERRIDE; | 247 gfx::PluginWindowHandle handle) OVERRIDE; |
246 virtual void WillDestroyPluginWindow( | 248 virtual void WillDestroyPluginWindow( |
247 gfx::PluginWindowHandle handle) OVERRIDE; | 249 gfx::PluginWindowHandle handle) OVERRIDE; |
248 virtual void DidMovePlugin( | 250 virtual void DidMovePlugin( |
249 const webkit::npapi::WebPluginGeometry& move) OVERRIDE; | 251 const webkit::npapi::WebPluginGeometry& move) OVERRIDE; |
250 virtual void DidStartLoadingForPlugin() OVERRIDE {} | 252 virtual void DidStartLoadingForPlugin() OVERRIDE {} |
251 virtual void DidStopLoadingForPlugin() OVERRIDE {} | 253 virtual void DidStopLoadingForPlugin() OVERRIDE {} |
252 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; | 254 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; |
253 | 255 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 std::string edit_command_name_; | 440 std::string edit_command_name_; |
439 std::string edit_command_value_; | 441 std::string edit_command_value_; |
440 | 442 |
441 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 443 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
442 MockSpellCheck mock_spellcheck_; | 444 MockSpellCheck mock_spellcheck_; |
443 | 445 |
444 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 446 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
445 }; | 447 }; |
446 | 448 |
447 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 449 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |