Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: webkit/api/public/WebWidgetClient.h

Issue 346042: Add default implementations for WebViewClient and WebWidgetClient... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/public/WebViewClient.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebWidgetClient.h
===================================================================
--- webkit/api/public/WebWidgetClient.h (revision 30823)
+++ webkit/api/public/WebWidgetClient.h (working copy)
@@ -33,54 +33,54 @@
#include "WebCommon.h"
#include "WebNavigationPolicy.h"
+#include "WebRect.h"
+#include "WebScreenInfo.h"
namespace WebKit {
class WebWidget;
struct WebCursorInfo;
- struct WebRect;
- struct WebScreenInfo;
class WebWidgetClient {
public:
// Called when a region of the WebWidget needs to be re-painted.
- virtual void didInvalidateRect(const WebRect&) = 0;
+ virtual void didInvalidateRect(const WebRect&) { }
// Called when a region of the WebWidget, given by clipRect, should be
// scrolled by the specified dx and dy amounts.
- virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) = 0;
+ virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) { }
// Called when the widget acquires or loses focus, respectively.
- virtual void didFocus() = 0;
- virtual void didBlur() = 0;
+ virtual void didFocus() { }
+ virtual void didBlur() { }
// Called when the cursor for the widget changes.
- virtual void didChangeCursor(const WebCursorInfo&) = 0;
+ virtual void didChangeCursor(const WebCursorInfo&) { }
// Called when the widget should be closed. WebWidget::close() should
// be called asynchronously as a result of this notification.
- virtual void closeWidgetSoon() = 0;
+ virtual void closeWidgetSoon() { }
// Called to show the widget according to the given policy.
- virtual void show(WebNavigationPolicy) = 0;
+ virtual void show(WebNavigationPolicy) { }
// Called to block execution of the current thread until the widget is
// closed.
- virtual void runModal() = 0;
+ virtual void runModal() { }
// Called to get/set the position of the widget in screen coordinates.
- virtual WebRect windowRect() = 0;
- virtual void setWindowRect(const WebRect&) = 0;
+ virtual WebRect windowRect() { return WebRect(); }
+ virtual void setWindowRect(const WebRect&) { }
// Called to get the position of the resizer rect in window coordinates.
- virtual WebRect windowResizerRect() = 0;
+ virtual WebRect windowResizerRect() { return WebRect(); }
// Called to get the position of the root window containing the widget
// in screen coordinates.
- virtual WebRect rootWindowRect() = 0;
+ virtual WebRect rootWindowRect() { return WebRect(); }
// Called to query information about the screen where this widget is
// displayed.
- virtual WebScreenInfo screenInfo() = 0;
+ virtual WebScreenInfo screenInfo() { return WebScreenInfo(); }
protected:
~WebWidgetClient() { }
« no previous file with comments | « webkit/api/public/WebViewClient.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698