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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 WebKit::WebFrame* frame, const WebKit::WebString& message); | 125 WebKit::WebFrame* frame, const WebKit::WebString& message); |
126 virtual bool runModalConfirmDialog( | 126 virtual bool runModalConfirmDialog( |
127 WebKit::WebFrame* frame, const WebKit::WebString& message); | 127 WebKit::WebFrame* frame, const WebKit::WebString& message); |
128 virtual bool runModalPromptDialog( | 128 virtual bool runModalPromptDialog( |
129 WebKit::WebFrame* frame, const WebKit::WebString& message, | 129 WebKit::WebFrame* frame, const WebKit::WebString& message, |
130 const WebKit::WebString& default_value, WebKit::WebString* actual_value); | 130 const WebKit::WebString& default_value, WebKit::WebString* actual_value); |
131 virtual bool runModalBeforeUnloadDialog( | 131 virtual bool runModalBeforeUnloadDialog( |
132 WebKit::WebFrame* frame, const WebKit::WebString& message); | 132 WebKit::WebFrame* frame, const WebKit::WebString& message); |
133 virtual void setStatusText(const WebKit::WebString& text); | 133 virtual void setStatusText(const WebKit::WebString& text); |
134 virtual void startDragging( | 134 virtual void startDragging( |
135 const WebKit::WebDragData& data, WebKit::WebDragOperationsMask mask, | 135 WebKit::WebFrame* frame, const WebKit::WebDragData& data, |
136 const WebKit::WebImage& image, const WebKit::WebPoint& offset); | 136 WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, |
| 137 const WebKit::WebPoint& offset); |
137 virtual void navigateBackForwardSoon(int offset); | 138 virtual void navigateBackForwardSoon(int offset); |
138 virtual int historyBackListCount(); | 139 virtual int historyBackListCount(); |
139 virtual int historyForwardListCount(); | 140 virtual int historyForwardListCount(); |
140 virtual WebKit::WebNotificationPresenter* notificationPresenter(); | 141 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
141 virtual WebKit::WebGeolocationClient* geolocationClient(); | 142 virtual WebKit::WebGeolocationClient* geolocationClient(); |
142 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); | 143 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); |
143 virtual WebKit::WebSpeechInputController* speechInputController( | 144 virtual WebKit::WebSpeechInputController* speechInputController( |
144 WebKit::WebSpeechInputListener*); | 145 WebKit::WebSpeechInputListener*); |
145 | 146 |
146 // WebKit::WebWidgetClient | 147 // WebKit::WebWidgetClient |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 std::string edit_command_name_; | 440 std::string edit_command_name_; |
440 std::string edit_command_value_; | 441 std::string edit_command_value_; |
441 | 442 |
442 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 443 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
443 MockSpellCheck mock_spellcheck_; | 444 MockSpellCheck mock_spellcheck_; |
444 | 445 |
445 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 446 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
446 }; | 447 }; |
447 | 448 |
448 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 449 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |