Chromium Code Reviews| 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 {} |