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