| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WebKit::WebNotificationPresenter* notificationPresenter(); | 141 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
| 142 virtual WebKit::WebGeolocationClient* geolocationClient(); | 142 virtual WebKit::WebGeolocationClient* geolocationClient(); |
| 143 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); | 143 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); |
| 144 virtual WebKit::WebSpeechInputController* speechInputController( | 144 virtual WebKit::WebSpeechInputController* speechInputController( |
| 145 WebKit::WebSpeechInputListener*); | 145 WebKit::WebSpeechInputListener*); |
| 146 | 146 |
| 147 // WebKit::WebWidgetClient | 147 // WebKit::WebWidgetClient |
| 148 #if WEBKIT_USING_PAINTSURFACE |
| 149 virtual WebKit::WebPaintSurface* paintSurface(); |
| 150 #else |
| 148 virtual void didInvalidateRect(const WebKit::WebRect& rect); | 151 virtual void didInvalidateRect(const WebKit::WebRect& rect); |
| 149 virtual void didScrollRect(int dx, int dy, | 152 virtual void didScrollRect(int dx, int dy, |
| 150 const WebKit::WebRect& clip_rect); | 153 const WebKit::WebRect& clip_rect); |
| 154 #endif |
| 151 virtual void scheduleComposite(); | 155 virtual void scheduleComposite(); |
| 152 virtual void scheduleAnimation(); | 156 virtual void scheduleAnimation(); |
| 153 virtual void didFocus(); | 157 virtual void didFocus(); |
| 154 virtual void didBlur(); | 158 virtual void didBlur(); |
| 155 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); | 159 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); |
| 156 virtual void closeWidgetSoon(); | 160 virtual void closeWidgetSoon(); |
| 157 virtual void show(WebKit::WebNavigationPolicy policy); | 161 virtual void show(WebKit::WebNavigationPolicy policy); |
| 158 virtual void runModal(); | 162 virtual void runModal(); |
| 159 virtual WebKit::WebRect windowRect(); | 163 virtual WebKit::WebRect windowRect(); |
| 160 virtual void setWindowRect(const WebKit::WebRect& rect); | 164 virtual void setWindowRect(const WebKit::WebRect& rect); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 std::string edit_command_name_; | 464 std::string edit_command_name_; |
| 461 std::string edit_command_value_; | 465 std::string edit_command_value_; |
| 462 | 466 |
| 463 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 467 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 464 MockSpellCheck mock_spellcheck_; | 468 MockSpellCheck mock_spellcheck_; |
| 465 | 469 |
| 466 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 470 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 467 }; | 471 }; |
| 468 | 472 |
| 469 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 473 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |