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

Unified Diff: third_party/WebKit/public/web/WebViewClient.h

Issue 2143643002: Remove didAutoResize from WebWidgetClient and move it to WebViewClient.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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: third_party/WebKit/public/web/WebViewClient.h
diff --git a/third_party/WebKit/public/web/WebViewClient.h b/third_party/WebKit/public/web/WebViewClient.h
index a2bb2f922075199c9950ce9d324e29aa6ad7564c..3bd997cf485ee3d290443da64b0dc434f3e4c32a 100644
--- a/third_party/WebKit/public/web/WebViewClient.h
+++ b/third_party/WebKit/public/web/WebViewClient.h
@@ -110,6 +110,9 @@ public:
// Called when PageImportanceSignals for the WebView is updated.
virtual void pageImportanceSignalsChanged() { }
+ // Called when the View has changed size as a result of an auto-resize.
+ virtual void didAutoResize(const WebSize& newSize) {}
dcheng 2016/07/13 14:17:24 Nit: I think this probably belongs under the "UI"
lfg 2016/07/13 17:29:27 Done.
+
// Editing -------------------------------------------------------------
// These methods allow the client to intercept and overrule editing
@@ -254,7 +257,6 @@ public:
void closeWidgetSoon() override {}
void convertViewportToWindow(WebRect* rect) override {}
void convertWindowToViewport(WebFloatRect* rect) override {}
- void didAutoResize(const WebSize& newSize) override {}
void didChangeCursor(const WebCursorInfo&) override {}
void didFocus() override {}
void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled) override {}

Powered by Google App Engine
This is Rietveld 408576698