| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); | 207 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); |
| 208 virtual int GetHistoryBackListCount(); | 208 virtual int GetHistoryBackListCount(); |
| 209 virtual int GetHistoryForwardListCount(); | 209 virtual int GetHistoryForwardListCount(); |
| 210 | 210 |
| 211 // WebWidgetDelegate | 211 // WebWidgetDelegate |
| 212 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); | 212 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); |
| 213 virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& rect); | 213 virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& rect); |
| 214 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 214 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
| 215 const gfx::Rect& clip_rect); | 215 const gfx::Rect& clip_rect); |
| 216 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); | 216 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); |
| 217 virtual void ShowWithItems(WebWidget* webwidget, |
| 218 const gfx::Rect& bounds, |
| 219 int item_height, |
| 220 int selected_index, |
| 221 const std::vector<MenuItem>& items); |
| 217 virtual void CloseWidgetSoon(WebWidget* webwidget); | 222 virtual void CloseWidgetSoon(WebWidget* webwidget); |
| 218 virtual void Focus(WebWidget* webwidget); | 223 virtual void Focus(WebWidget* webwidget); |
| 219 virtual void Blur(WebWidget* webwidget); | 224 virtual void Blur(WebWidget* webwidget); |
| 220 virtual void SetCursor(WebWidget* webwidget, | 225 virtual void SetCursor(WebWidget* webwidget, |
| 221 const WebCursor& cursor); | 226 const WebCursor& cursor); |
| 222 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); | 227 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); |
| 223 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect); | 228 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect); |
| 224 virtual void GetRootWindowRect(WebWidget *, gfx::Rect *); | 229 virtual void GetRootWindowRect(WebWidget *, gfx::Rect *); |
| 225 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect); | 230 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect); |
| 226 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); | 231 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // cursor. | 331 // cursor. |
| 327 GdkCursorType cursor_type_; | 332 GdkCursorType cursor_type_; |
| 328 #endif | 333 #endif |
| 329 | 334 |
| 330 CapturedContextMenuEvents captured_context_menu_events_; | 335 CapturedContextMenuEvents captured_context_menu_events_; |
| 331 | 336 |
| 332 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 337 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 333 }; | 338 }; |
| 334 | 339 |
| 335 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 340 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |