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

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

Issue 2762553002: Add canUpdateLayout & canHandleGestureEvent to WebViewClient. (Closed)
Patch Set: Fix merge issues. Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d755f760e84967c4f82f374070c64c95d74c664..1e09aa4c5d70378a2e57bafdf4604ffd7b24cb73 100644
--- a/third_party/WebKit/public/web/WebViewClient.h
+++ b/third_party/WebKit/public/web/WebViewClient.h
@@ -62,6 +62,7 @@ struct WebWindowFeatures;
// easily reused as part of an implementation of WebViewClient.
class WebViewClient : protected WebWidgetClient {
public:
+ ~WebViewClient() override {}
// Factory methods -----------------------------------------------------
// Create a new related WebView. This method must clone its session storage
@@ -168,6 +169,9 @@ class WebViewClient : protected WebWidgetClient {
virtual void focusedNodeChanged(const WebNode& fromNode,
const WebNode& toNode) {}
+ // Called to check if layout update should be processed.
+ virtual bool canUpdateLayout() { return false; }
+
// Indicates two things:
// 1) This view may have a new layout now.
// 2) Calling layout() is a no-op.
@@ -258,6 +262,8 @@ class WebViewClient : protected WebWidgetClient {
// Informs the browser that the draggable regions have been updated.
virtual void draggableRegionsChanged() {}
+ virtual bool canHandleGestureEvent() { return false; }
+
// TODO(lfg): These methods are only exposed through WebViewClient while we
// refactor WebView to not inherit from WebWidget.
// WebWidgetClient overrides.
@@ -281,7 +287,6 @@ class WebViewClient : protected WebWidgetClient {
virtual WebWidgetClient* widgetClient() { return this; }
protected:
- ~WebViewClient() override {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698