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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.h

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Address comments. Created 3 years, 11 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/Source/web/ChromeClientImpl.h
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.h b/third_party/WebKit/Source/web/ChromeClientImpl.h
index 4cf59e71fe716ea554225b5339a4e33be0166565..ab0ac052be2fdfd553e091653b7fc6d41e154e4c 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.h
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.h
@@ -136,12 +136,19 @@ class WEB_EXPORT ChromeClientImpl final : public ChromeClient {
void enumerateChosenDirectory(FileChooser*) override;
void setCursor(const Cursor&, LocalFrame*) override;
Cursor lastSetCursorForTesting() const override;
- void setEventListenerProperties(WebEventListenerClass,
+ // The client keeps track of which touch/mousewheel event types have handlers,
+ // and if they do whether the handlers are passive and/or blocking. This
dcheng 2017/01/18 18:30:11 Nit: comma after do
wjmaclean 2017/01/19 19:24:48 Done.
+ // allows the client to know which optimizations can be used for the
+ // associated event classes.
+ void setEventListenerProperties(LocalFrame*,
+ WebEventListenerClass,
WebEventListenerProperties) override;
WebEventListenerProperties eventListenerProperties(
+ LocalFrame*,
WebEventListenerClass) const override;
- void setHasScrollEventHandlers(bool hasEventHandlers) override;
- bool hasScrollEventHandlers() const override;
+ // Informs client about the existence of handlers for scroll events so
+ // appropriate scroll optimizations can be chosen.
+ void setHasScrollEventHandlers(LocalFrame*, bool hasEventHandlers) override;
void setTouchAction(LocalFrame*, TouchAction) override;
void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override;
« no previous file with comments | « third_party/WebKit/Source/core/page/ChromeClient.h ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698