Chromium Code Reviews| 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; |