| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 virtual int GetHistoryBackListCount(); | 210 virtual int GetHistoryBackListCount(); |
| 211 virtual int GetHistoryForwardListCount(); | 211 virtual int GetHistoryForwardListCount(); |
| 212 | 212 |
| 213 // WebWidgetDelegate | 213 // WebWidgetDelegate |
| 214 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); | 214 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); |
| 215 virtual void DidInvalidateRect(WebWidget* webwidget, | 215 virtual void DidInvalidateRect(WebWidget* webwidget, |
| 216 const WebKit::WebRect& rect); | 216 const WebKit::WebRect& rect); |
| 217 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 217 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
| 218 const WebKit::WebRect& clip_rect); | 218 const WebKit::WebRect& clip_rect); |
| 219 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); | 219 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); |
| 220 virtual void ShowWithItems(WebWidget* webwidget, | 220 virtual void ShowAsPopupWithItems(WebWidget* webwidget, |
| 221 const WebKit::WebRect& bounds, | 221 const WebKit::WebRect& bounds, |
| 222 int item_height, | 222 int item_height, |
| 223 int selected_index, | 223 int selected_index, |
| 224 const std::vector<MenuItem>& items); | 224 const std::vector<WebMenuItem>& items); |
| 225 virtual void CloseWidgetSoon(WebWidget* webwidget); | 225 virtual void CloseWidgetSoon(WebWidget* webwidget); |
| 226 virtual void Focus(WebWidget* webwidget); | 226 virtual void Focus(WebWidget* webwidget); |
| 227 virtual void Blur(WebWidget* webwidget); | 227 virtual void Blur(WebWidget* webwidget); |
| 228 virtual void SetCursor(WebWidget* webwidget, | 228 virtual void SetCursor(WebWidget* webwidget, |
| 229 const WebCursor& cursor); | 229 const WebCursor& cursor); |
| 230 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); | 230 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); |
| 231 virtual void SetWindowRect(WebWidget* webwidget, | 231 virtual void SetWindowRect(WebWidget* webwidget, |
| 232 const WebKit::WebRect& rect); | 232 const WebKit::WebRect& rect); |
| 233 virtual void GetRootWindowRect(WebWidget *, WebKit::WebRect *); | 233 virtual void GetRootWindowRect(WebWidget *, WebKit::WebRect *); |
| 234 virtual void GetRootWindowResizerRect(WebWidget* webwidget, | 234 virtual void GetRootWindowResizerRect(WebWidget* webwidget, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // cursor. | 347 // cursor. |
| 348 GdkCursorType cursor_type_; | 348 GdkCursorType cursor_type_; |
| 349 #endif | 349 #endif |
| 350 | 350 |
| 351 CapturedContextMenuEvents captured_context_menu_events_; | 351 CapturedContextMenuEvents captured_context_menu_events_; |
| 352 | 352 |
| 353 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 353 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 354 }; | 354 }; |
| 355 | 355 |
| 356 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 356 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |