| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 int node_type; | 71 int node_type; |
| 72 int x; | 72 int x; |
| 73 int y; | 73 int y; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 typedef std::vector<CapturedContextMenuEvent> CapturedContextMenuEvents; | 76 typedef std::vector<CapturedContextMenuEvent> CapturedContextMenuEvents; |
| 77 | 77 |
| 78 // WebKit::WebViewClient | 78 // WebKit::WebViewClient |
| 79 // TODO(atwilson): Remove this API when we push related changes upstream |
| 79 virtual WebKit::WebView* createView( | 80 virtual WebKit::WebView* createView( |
| 80 WebKit::WebFrame* creator, | 81 WebKit::WebFrame* creator, |
| 81 const WebKit::WebWindowFeatures& window_features); | 82 const WebKit::WebWindowFeatures& window_features); |
| 83 virtual WebKit::WebView* createView( |
| 84 WebKit::WebFrame* creator, |
| 85 const WebKit::WebWindowFeatures& features, |
| 86 const WebKit::WebString& frame_name); |
| 82 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 87 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
| 83 virtual WebKit::WebWidget* createPopupMenu( | 88 virtual WebKit::WebWidget* createPopupMenu( |
| 84 const WebKit::WebPopupMenuInfo& info); | 89 const WebKit::WebPopupMenuInfo& info); |
| 85 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 90 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
| 86 unsigned quota); | 91 unsigned quota); |
| 87 virtual void didAddMessageToConsole( | 92 virtual void didAddMessageToConsole( |
| 88 const WebKit::WebConsoleMessage& message, | 93 const WebKit::WebConsoleMessage& message, |
| 89 const WebKit::WebString& source_name, unsigned source_line); | 94 const WebKit::WebString& source_name, unsigned source_line); |
| 90 virtual void didStartLoading(); | 95 virtual void didStartLoading(); |
| 91 virtual void didStopLoading(); | 96 virtual void didStopLoading(); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 437 |
| 433 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 438 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 434 MockSpellCheck mock_spellcheck_; | 439 MockSpellCheck mock_spellcheck_; |
| 435 | 440 |
| 436 scoped_ptr<TestGeolocationService> test_geolocation_service_; | 441 scoped_ptr<TestGeolocationService> test_geolocation_service_; |
| 437 | 442 |
| 438 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 443 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 439 }; | 444 }; |
| 440 | 445 |
| 441 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 446 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |