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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 WebKit::WebFrame* creator, | 84 WebKit::WebFrame* creator, |
85 const WebKit::WebURLRequest& request, | 85 const WebKit::WebURLRequest& request, |
86 const WebKit::WebWindowFeatures& features, | 86 const WebKit::WebWindowFeatures& features, |
87 const WebKit::WebString& frame_name); | 87 const WebKit::WebString& frame_name); |
88 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 88 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
89 virtual WebKit::WebWidget* createPopupMenu( | 89 virtual WebKit::WebWidget* createPopupMenu( |
90 const WebKit::WebPopupMenuInfo& info); | 90 const WebKit::WebPopupMenuInfo& info); |
91 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 91 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
92 unsigned quota); | 92 unsigned quota); |
93 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( | 93 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( |
94 WebKit::WebGraphicsContext3D::Attributes attributes, | 94 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
95 bool direct); | 95 bool direct); |
96 virtual void didAddMessageToConsole( | 96 virtual void didAddMessageToConsole( |
97 const WebKit::WebConsoleMessage& message, | 97 const WebKit::WebConsoleMessage& message, |
98 const WebKit::WebString& source_name, unsigned source_line); | 98 const WebKit::WebString& source_name, unsigned source_line); |
99 virtual void didStartLoading(); | 99 virtual void didStartLoading(); |
100 virtual void didStopLoading(); | 100 virtual void didStopLoading(); |
101 virtual bool shouldBeginEditing(const WebKit::WebRange& range); | 101 virtual bool shouldBeginEditing(const WebKit::WebRange& range); |
102 virtual bool shouldEndEditing(const WebKit::WebRange& range); | 102 virtual bool shouldEndEditing(const WebKit::WebRange& range); |
103 virtual bool shouldInsertNode( | 103 virtual bool shouldInsertNode( |
104 const WebKit::WebNode& node, const WebKit::WebRange& range, | 104 const WebKit::WebNode& node, const WebKit::WebRange& range, |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 std::string edit_command_name_; | 449 std::string edit_command_name_; |
450 std::string edit_command_value_; | 450 std::string edit_command_value_; |
451 | 451 |
452 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 452 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
453 MockSpellCheck mock_spellcheck_; | 453 MockSpellCheck mock_spellcheck_; |
454 | 454 |
455 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 455 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
456 }; | 456 }; |
457 | 457 |
458 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 458 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |