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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 WebFrame* frame, | 215 WebFrame* frame, |
216 const WebKit::WebURLRequest& request, | 216 const WebKit::WebURLRequest& request, |
217 WebKit::WebNavigationType type, | 217 WebKit::WebNavigationType type, |
218 WindowOpenDisposition disposition, | 218 WindowOpenDisposition disposition, |
219 bool is_redirect); | 219 bool is_redirect); |
220 virtual void NavigateBackForwardSoon(int offset); | 220 virtual void NavigateBackForwardSoon(int offset); |
221 virtual int GetHistoryBackListCount(); | 221 virtual int GetHistoryBackListCount(); |
222 virtual int GetHistoryForwardListCount(); | 222 virtual int GetHistoryForwardListCount(); |
223 | 223 |
224 // WebWidgetDelegate | 224 // WebWidgetDelegate |
225 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); | |
226 virtual void DidInvalidateRect(WebWidget* webwidget, | 225 virtual void DidInvalidateRect(WebWidget* webwidget, |
227 const WebKit::WebRect& rect); | 226 const WebKit::WebRect& rect); |
228 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 227 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
229 const WebKit::WebRect& clip_rect); | 228 const WebKit::WebRect& clip_rect); |
230 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); | 229 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); |
231 virtual void ShowAsPopupWithItems(WebWidget* webwidget, | 230 virtual void ShowAsPopupWithItems(WebWidget* webwidget, |
232 const WebKit::WebRect& bounds, | 231 const WebKit::WebRect& bounds, |
233 int item_height, | 232 int item_height, |
234 int selected_index, | 233 int selected_index, |
235 const std::vector<WebMenuItem>& items); | 234 const std::vector<WebMenuItem>& items); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // cursor. | 366 // cursor. |
368 GdkCursorType cursor_type_; | 367 GdkCursorType cursor_type_; |
369 #endif | 368 #endif |
370 | 369 |
371 CapturedContextMenuEvents captured_context_menu_events_; | 370 CapturedContextMenuEvents captured_context_menu_events_; |
372 | 371 |
373 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 372 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
374 }; | 373 }; |
375 | 374 |
376 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 375 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |