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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const WebRequest* request, | 198 const WebRequest* request, |
199 WebNavigationType type, | 199 WebNavigationType type, |
200 WindowOpenDisposition disposition, | 200 WindowOpenDisposition disposition, |
201 bool is_redirect); | 201 bool is_redirect); |
202 void SetCustomPolicyDelegate(bool isCustom); | 202 void SetCustomPolicyDelegate(bool isCustom); |
203 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); | 203 virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset); |
204 virtual int GetHistoryBackListCount(); | 204 virtual int GetHistoryBackListCount(); |
205 virtual int GetHistoryForwardListCount(); | 205 virtual int GetHistoryForwardListCount(); |
206 | 206 |
207 // WebWidgetDelegate | 207 // WebWidgetDelegate |
208 virtual gfx::NativeView GetContainingView(WebWidget* webwidget); | 208 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); |
209 virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& rect); | 209 virtual void DidInvalidateRect(WebWidget* webwidget, const gfx::Rect& rect); |
210 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 210 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
211 const gfx::Rect& clip_rect); | 211 const gfx::Rect& clip_rect); |
212 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); | 212 virtual void Show(WebWidget* webview, WindowOpenDisposition disposition); |
213 virtual void CloseWidgetSoon(WebWidget* webwidget); | 213 virtual void CloseWidgetSoon(WebWidget* webwidget); |
214 virtual void Focus(WebWidget* webwidget); | 214 virtual void Focus(WebWidget* webwidget); |
215 virtual void Blur(WebWidget* webwidget); | 215 virtual void Blur(WebWidget* webwidget); |
216 virtual void SetCursor(WebWidget* webwidget, | 216 virtual void SetCursor(WebWidget* webwidget, |
217 const WebCursor& cursor); | 217 const WebCursor& cursor); |
218 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); | 218 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // cursor. | 322 // cursor. |
323 GdkCursorType cursor_type_; | 323 GdkCursorType cursor_type_; |
324 #endif | 324 #endif |
325 | 325 |
326 CapturedContextMenuEvents captured_context_menu_events_; | 326 CapturedContextMenuEvents captured_context_menu_events_; |
327 | 327 |
328 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); | 328 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); |
329 }; | 329 }; |
330 | 330 |
331 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 331 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |