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

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

Issue 8714006: Add autoresize capability for Chromium. (Closed) Base URL: http://git.chromium.org/external/WebKit_trimmed.git@master
Patch Set: 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/WebViewClient.h
diff --git a/Source/WebKit/chromium/public/WebViewClient.h b/Source/WebKit/chromium/public/WebViewClient.h
index 62c7b4d49d7f73ad88b69e78e7bbd3d14bd9a695..bad084066786a837fc6868e81f725ec16ae8689b 100644
--- a/Source/WebKit/chromium/public/WebViewClient.h
+++ b/Source/WebKit/chromium/public/WebViewClient.h
@@ -73,6 +73,7 @@ struct WebConsoleMessage;
struct WebContextMenuData;
struct WebPoint;
struct WebPopupMenuInfo;
+struct WebSize;
struct WebWindowFeatures;
// Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient.
@@ -246,6 +247,16 @@ public:
virtual void numberOfWheelEventHandlersChanged(unsigned) { }
+ // Call when the size of the view automatically changed.
+ virtual void autoSizeChanged(const WebSize&) { }
+
+ // Indicates two things:
+ // 1) The view may have a new layout now.
+ // 2) Calling layout() is a no-op.
+ // After calling WebView::layout(), expect to get this notification
+ // for the view unless the view did not need a layout.
+ virtual void didUpdateLayout() { }
+
// Session history -----------------------------------------------------
// Tells the embedder to navigate back or forward in session history by

Powered by Google App Engine
This is Rietveld 408576698