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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 WebKit::WebFrame* frame, const WebKit::WebString& message); | 131 WebKit::WebFrame* frame, const WebKit::WebString& message); |
132 virtual void showContextMenu( | 132 virtual void showContextMenu( |
133 WebKit::WebFrame* frame, const WebKit::WebContextMenuData& data); | 133 WebKit::WebFrame* frame, const WebKit::WebContextMenuData& data); |
134 virtual void setStatusText(const WebKit::WebString& text); | 134 virtual void setStatusText(const WebKit::WebString& text); |
135 virtual void startDragging( | 135 virtual void startDragging( |
136 const WebKit::WebDragData& data, WebKit::WebDragOperationsMask mask, | 136 const WebKit::WebDragData& data, WebKit::WebDragOperationsMask mask, |
137 const WebKit::WebImage& image, const WebKit::WebPoint& offset); | 137 const WebKit::WebImage& image, const WebKit::WebPoint& offset); |
138 virtual void navigateBackForwardSoon(int offset); | 138 virtual void navigateBackForwardSoon(int offset); |
139 virtual int historyBackListCount(); | 139 virtual int historyBackListCount(); |
140 virtual int historyForwardListCount(); | 140 virtual int historyForwardListCount(); |
141 virtual void focusAccessibilityObject( | |
142 const WebKit::WebAccessibilityObject& object); | |
143 virtual WebKit::WebNotificationPresenter* notificationPresenter(); | 141 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
144 virtual WebKit::WebGeolocationClient* geolocationClient(); | 142 virtual WebKit::WebGeolocationClient* geolocationClient(); |
145 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); | 143 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); |
146 virtual WebKit::WebSpeechInputController* speechInputController( | 144 virtual WebKit::WebSpeechInputController* speechInputController( |
147 WebKit::WebSpeechInputListener*); | 145 WebKit::WebSpeechInputListener*); |
148 | 146 |
149 // WebKit::WebWidgetClient | 147 // WebKit::WebWidgetClient |
150 virtual void didInvalidateRect(const WebKit::WebRect& rect); | 148 virtual void didInvalidateRect(const WebKit::WebRect& rect); |
151 virtual void didScrollRect(int dx, int dy, | 149 virtual void didScrollRect(int dx, int dy, |
152 const WebKit::WebRect& clip_rect); | 150 const WebKit::WebRect& clip_rect); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 std::string edit_command_name_; | 450 std::string edit_command_name_; |
453 std::string edit_command_value_; | 451 std::string edit_command_value_; |
454 | 452 |
455 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 453 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
456 MockSpellCheck mock_spellcheck_; | 454 MockSpellCheck mock_spellcheck_; |
457 | 455 |
458 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 456 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
459 }; | 457 }; |
460 | 458 |
461 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 459 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |