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. |
82 virtual WebKit::WebView* createView( | 83 virtual WebKit::WebView* createView( |
83 WebKit::WebFrame* creator, | 84 WebKit::WebFrame* creator, |
84 const WebKit::WebWindowFeatures& features, | 85 const WebKit::WebWindowFeatures& features, |
85 const WebKit::WebString& frame_name); | 86 const WebKit::WebString& frame_name); |
| 87 virtual WebKit::WebView* createView( |
| 88 WebKit::WebFrame* creator, |
| 89 const WebKit::WebURLRequest& request, |
| 90 const WebKit::WebWindowFeatures& features, |
| 91 const WebKit::WebString& frame_name); |
86 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 92 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
87 virtual WebKit::WebWidget* createPopupMenu( | 93 virtual WebKit::WebWidget* createPopupMenu( |
88 const WebKit::WebPopupMenuInfo& info); | 94 const WebKit::WebPopupMenuInfo& info); |
89 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 95 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
90 unsigned quota); | 96 unsigned quota); |
91 virtual void didAddMessageToConsole( | 97 virtual void didAddMessageToConsole( |
92 const WebKit::WebConsoleMessage& message, | 98 const WebKit::WebConsoleMessage& message, |
93 const WebKit::WebString& source_name, unsigned source_line); | 99 const WebKit::WebString& source_name, unsigned source_line); |
94 virtual void didStartLoading(); | 100 virtual void didStartLoading(); |
95 virtual void didStopLoading(); | 101 virtual void didStopLoading(); |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 std::string edit_command_name_; | 457 std::string edit_command_name_; |
452 std::string edit_command_value_; | 458 std::string edit_command_value_; |
453 | 459 |
454 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 460 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
455 MockSpellCheck mock_spellcheck_; | 461 MockSpellCheck mock_spellcheck_; |
456 | 462 |
457 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 463 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
458 }; | 464 }; |
459 | 465 |
460 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 466 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |