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

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

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Plumb pseudo touch-event-rects for OOPIFs to compositor. 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..227a1057c107a520452d73b2a0858394b008cde1 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.h
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.h
@@ -136,12 +136,20 @@ 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
+ // 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;
+ void updateTouchRectsForSubframeIfNecessary(LocalFrame*);
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698