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

Unified Diff: Source/WebKit/chromium/public/WebWidgetClient.h

Issue 8714006: Add autoresize capability for Chromium. (Closed) Base URL: http://git.chromium.org/external/WebKit_trimmed.git@master
Patch Set: Current patch Created 9 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
Index: Source/WebKit/chromium/public/WebWidgetClient.h
diff --git a/Source/WebKit/chromium/public/WebWidgetClient.h b/Source/WebKit/chromium/public/WebWidgetClient.h
index b4fb217f9a2e0f0819a4603230064dc3a0d15a18..9634287a9c5f0096e7b038752497d618536ea46c 100644
--- a/Source/WebKit/chromium/public/WebWidgetClient.h
+++ b/Source/WebKit/chromium/public/WebWidgetClient.h
@@ -41,6 +41,7 @@ namespace WebKit {
class WebString;
class WebWidget;
struct WebCursorInfo;
+struct WebSize;
class WebWidgetClient {
public:
@@ -104,6 +105,10 @@ public:
virtual WebRect windowRect() { return WebRect(); }
virtual void setWindowRect(const WebRect&) { }
+ // Called to indicate that the Widget has changed size as a result of an
+ // auto size.
+ virtual void setSize(const WebSize&) { }
darin (slow to review) 2011/11/30 23:29:05 didResize or didChangeSize seems better to me.
levin 2011/12/01 20:23:45 Made it didAutoResize to reflect the fact that it
+
// Called when a tooltip should be shown at the current cursor position.
virtual void setToolTipText(const WebString&, WebTextDirection hint) { }

Powered by Google App Engine
This is Rietveld 408576698