| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 virtual void Focus(WebWidget* webwidget); | 224 virtual void Focus(WebWidget* webwidget); |
| 225 virtual void Blur(WebWidget* webwidget); | 225 virtual void Blur(WebWidget* webwidget); |
| 226 virtual void SetCursor(WebWidget* webwidget, | 226 virtual void SetCursor(WebWidget* webwidget, |
| 227 const WebCursor& cursor); | 227 const WebCursor& cursor); |
| 228 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); | 228 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); |
| 229 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect); | 229 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect); |
| 230 virtual void GetRootWindowRect(WebWidget *, gfx::Rect *); | 230 virtual void GetRootWindowRect(WebWidget *, gfx::Rect *); |
| 231 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect); | 231 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect); |
| 232 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); | 232 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); |
| 233 virtual void RunModal(WebWidget* webwidget); | 233 virtual void RunModal(WebWidget* webwidget); |
| 234 virtual bool IsHidden(); | 234 virtual bool IsHidden(WebWidget* webwidget); |
| 235 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget); |
| 235 virtual void AddRef() { | 236 virtual void AddRef() { |
| 236 base::RefCounted<TestWebViewDelegate>::AddRef(); | 237 base::RefCounted<TestWebViewDelegate>::AddRef(); |
| 237 } | 238 } |
| 238 virtual void Release() { | 239 virtual void Release() { |
| 239 base::RefCounted<TestWebViewDelegate>::Release(); | 240 base::RefCounted<TestWebViewDelegate>::Release(); |
| 240 } | 241 } |
| 241 | 242 |
| 242 // Additional accessors | 243 // Additional accessors |
| 243 WebFrame* top_loading_frame() { return top_loading_frame_; } | 244 WebFrame* top_loading_frame() { return top_loading_frame_; } |
| 244 #if defined(OS_WIN) | 245 #if defined(OS_WIN) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // cursor. | 333 // cursor. |
| 333 GdkCursorType cursor_type_; | 334 GdkCursorType cursor_type_; |
| 334 #endif | 335 #endif |
| 335 | 336 |
| 336 CapturedContextMenuEvents captured_context_menu_events_; | 337 CapturedContextMenuEvents captured_context_menu_events_; |
| 337 | 338 |
| 338 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 339 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 339 }; | 340 }; |
| 340 | 341 |
| 341 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 342 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |