| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 virtual void startDragging( | 132 virtual void startDragging( |
| 133 const WebKit::WebPoint& from, const WebKit::WebDragData& data, | 133 const WebKit::WebPoint& from, const WebKit::WebDragData& data, |
| 134 WebKit::WebDragOperationsMask mask); | 134 WebKit::WebDragOperationsMask mask); |
| 135 virtual bool acceptsLoadDrops() { return true; } | 135 virtual bool acceptsLoadDrops() { return true; } |
| 136 virtual void focusNext() {} | 136 virtual void focusNext() {} |
| 137 virtual void focusPrevious() {} | 137 virtual void focusPrevious() {} |
| 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 didAddHistoryItem() {} | 141 virtual void didAddHistoryItem() {} |
| 142 virtual void didUpdateInspectorSettings() {} | |
| 143 virtual void focusAccessibilityObject( | 142 virtual void focusAccessibilityObject( |
| 144 const WebKit::WebAccessibilityObject& object); | 143 const WebKit::WebAccessibilityObject& object); |
| 144 virtual void didUpdateInspectorSettings() {} |
| 145 virtual void queryAutofillSuggestions( |
| 146 const WebKit::WebNode&, const WebKit::WebString& name, |
| 147 const WebKit::WebString& value) {} |
| 148 virtual void removeAutofillSuggestions( |
| 149 const WebKit::WebString& name, const WebKit::WebString& value) {} |
| 145 | 150 |
| 146 // WebKit::WebWidgetClient | 151 // WebKit::WebWidgetClient |
| 147 virtual void didInvalidateRect(const WebKit::WebRect& rect); | 152 virtual void didInvalidateRect(const WebKit::WebRect& rect); |
| 148 virtual void didScrollRect(int dx, int dy, | 153 virtual void didScrollRect(int dx, int dy, |
| 149 const WebKit::WebRect& clip_rect); | 154 const WebKit::WebRect& clip_rect); |
| 150 virtual void didFocus(); | 155 virtual void didFocus(); |
| 151 virtual void didBlur(); | 156 virtual void didBlur(); |
| 152 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); | 157 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); |
| 153 virtual void closeWidgetSoon(); | 158 virtual void closeWidgetSoon(); |
| 154 virtual void show(WebKit::WebNavigationPolicy policy); | 159 virtual void show(WebKit::WebNavigationPolicy policy); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // true if we want to enable selection of trailing whitespaces | 404 // true if we want to enable selection of trailing whitespaces |
| 400 bool select_trailing_whitespace_enabled_; | 405 bool select_trailing_whitespace_enabled_; |
| 401 | 406 |
| 402 // true if we should block any redirects | 407 // true if we should block any redirects |
| 403 bool block_redirects_; | 408 bool block_redirects_; |
| 404 | 409 |
| 405 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 410 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 406 }; | 411 }; |
| 407 | 412 |
| 408 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 413 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |