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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 const FilePath& url, | 240 const FilePath& url, |
241 const std::string& mime_type); | 241 const std::string& mime_type); |
242 virtual void CreatedPluginWindow( | 242 virtual void CreatedPluginWindow( |
243 gfx::PluginWindowHandle handle); | 243 gfx::PluginWindowHandle handle); |
244 virtual void WillDestroyPluginWindow( | 244 virtual void WillDestroyPluginWindow( |
245 gfx::PluginWindowHandle handle); | 245 gfx::PluginWindowHandle handle); |
246 virtual void DidMovePlugin( | 246 virtual void DidMovePlugin( |
247 const webkit::npapi::WebPluginGeometry& move); | 247 const webkit::npapi::WebPluginGeometry& move); |
248 virtual void DidStartLoadingForPlugin() {} | 248 virtual void DidStartLoadingForPlugin() {} |
249 virtual void DidStopLoadingForPlugin() {} | 249 virtual void DidStopLoadingForPlugin() {} |
250 virtual void ShowModalHTMLDialogForPlugin( | |
251 const GURL& url, | |
252 const gfx::Size& size, | |
253 const std::string& json_arguments, | |
254 std::string* json_retval) {} | |
255 virtual WebKit::WebCookieJar* GetCookieJar(); | 250 virtual WebKit::WebCookieJar* GetCookieJar(); |
256 | 251 |
257 TestWebViewDelegate(TestShell* shell); | 252 TestWebViewDelegate(TestShell* shell); |
258 ~TestWebViewDelegate(); | 253 ~TestWebViewDelegate(); |
259 void Reset(); | 254 void Reset(); |
260 | 255 |
261 void SetSmartInsertDeleteEnabled(bool enabled); | 256 void SetSmartInsertDeleteEnabled(bool enabled); |
262 void SetSelectTrailingWhitespaceEnabled(bool enabled); | 257 void SetSelectTrailingWhitespaceEnabled(bool enabled); |
263 | 258 |
264 // Additional accessors | 259 // Additional accessors |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 std::string edit_command_name_; | 444 std::string edit_command_name_; |
450 std::string edit_command_value_; | 445 std::string edit_command_value_; |
451 | 446 |
452 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 447 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
453 MockSpellCheck mock_spellcheck_; | 448 MockSpellCheck mock_spellcheck_; |
454 | 449 |
455 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 450 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
456 }; | 451 }; |
457 | 452 |
458 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 453 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |