| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 WebKit::WebFrame* creator, | 89 WebKit::WebFrame* creator, |
| 90 const WebKit::WebURLRequest& request, | 90 const WebKit::WebURLRequest& request, |
| 91 const WebKit::WebWindowFeatures& features, | 91 const WebKit::WebWindowFeatures& features, |
| 92 const WebKit::WebString& frame_name); | 92 const WebKit::WebString& frame_name); |
| 93 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 93 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
| 94 virtual WebKit::WebWidget* createPopupMenu( | 94 virtual WebKit::WebWidget* createPopupMenu( |
| 95 const WebKit::WebPopupMenuInfo& info); | 95 const WebKit::WebPopupMenuInfo& info); |
| 96 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 96 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
| 97 unsigned quota); | 97 unsigned quota); |
| 98 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( | 98 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( |
| 99 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 100 // TODO(jamesr): remove this form after deleted upstream. |
| 101 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( |
| 99 const WebKit::WebGraphicsContext3D::Attributes& attributes, | 102 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 100 bool direct); | 103 bool direct); |
| 101 virtual void didAddMessageToConsole( | 104 virtual void didAddMessageToConsole( |
| 102 const WebKit::WebConsoleMessage& message, | 105 const WebKit::WebConsoleMessage& message, |
| 103 const WebKit::WebString& source_name, unsigned source_line); | 106 const WebKit::WebString& source_name, unsigned source_line); |
| 104 virtual void didStartLoading(); | 107 virtual void didStartLoading(); |
| 105 virtual void didStopLoading(); | 108 virtual void didStopLoading(); |
| 106 virtual bool shouldBeginEditing(const WebKit::WebRange& range); | 109 virtual bool shouldBeginEditing(const WebKit::WebRange& range); |
| 107 virtual bool shouldEndEditing(const WebKit::WebRange& range); | 110 virtual bool shouldEndEditing(const WebKit::WebRange& range); |
| 108 virtual bool shouldInsertNode( | 111 virtual bool shouldInsertNode( |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 std::string edit_command_name_; | 448 std::string edit_command_name_; |
| 446 std::string edit_command_value_; | 449 std::string edit_command_value_; |
| 447 | 450 |
| 448 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 451 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 449 MockSpellCheck mock_spellcheck_; | 452 MockSpellCheck mock_spellcheck_; |
| 450 | 453 |
| 451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 454 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 452 }; | 455 }; |
| 453 | 456 |
| 454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 457 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |