| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 int node_type; | 74 int node_type; |
| 75 int x; | 75 int x; |
| 76 int y; | 76 int y; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 typedef std::vector<CapturedContextMenuEvent> CapturedContextMenuEvents; | 79 typedef std::vector<CapturedContextMenuEvent> CapturedContextMenuEvents; |
| 80 | 80 |
| 81 // WebKit::WebViewClient | 81 // WebKit::WebViewClient |
| 82 // TODO(jochen): remove once webkit side is up to date. | |
| 83 virtual WebKit::WebView* createView( | |
| 84 WebKit::WebFrame* creator, | |
| 85 const WebKit::WebWindowFeatures& features, | |
| 86 const WebKit::WebString& frame_name); | |
| 87 virtual WebKit::WebView* createView( | 82 virtual WebKit::WebView* createView( |
| 88 WebKit::WebFrame* creator, | 83 WebKit::WebFrame* creator, |
| 89 const WebKit::WebURLRequest& request, | 84 const WebKit::WebURLRequest& request, |
| 90 const WebKit::WebWindowFeatures& features, | 85 const WebKit::WebWindowFeatures& features, |
| 91 const WebKit::WebString& frame_name); | 86 const WebKit::WebString& frame_name); |
| 92 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 87 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
| 93 virtual WebKit::WebWidget* createPopupMenu( | 88 virtual WebKit::WebWidget* createPopupMenu( |
| 94 const WebKit::WebPopupMenuInfo& info); | 89 const WebKit::WebPopupMenuInfo& info); |
| 95 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 90 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
| 96 unsigned quota); | 91 unsigned quota); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 std::string edit_command_name_; | 452 std::string edit_command_name_; |
| 458 std::string edit_command_value_; | 453 std::string edit_command_value_; |
| 459 | 454 |
| 460 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 455 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 461 MockSpellCheck mock_spellcheck_; | 456 MockSpellCheck mock_spellcheck_; |
| 462 | 457 |
| 463 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 458 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 464 }; | 459 }; |
| 465 | 460 |
| 466 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 461 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |