OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 ColorChooser* openColorChooser(LocalFrame*, | 129 ColorChooser* openColorChooser(LocalFrame*, |
130 ColorChooserClient*, | 130 ColorChooserClient*, |
131 const Color&) override; | 131 const Color&) override; |
132 DateTimeChooser* openDateTimeChooser( | 132 DateTimeChooser* openDateTimeChooser( |
133 DateTimeChooserClient*, | 133 DateTimeChooserClient*, |
134 const DateTimeChooserParameters&) override; | 134 const DateTimeChooserParameters&) override; |
135 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; | 135 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; |
136 void enumerateChosenDirectory(FileChooser*) override; | 136 void enumerateChosenDirectory(FileChooser*) override; |
137 void setCursor(const Cursor&, LocalFrame*) override; | 137 void setCursor(const Cursor&, LocalFrame*) override; |
138 Cursor lastSetCursorForTesting() const override; | 138 Cursor lastSetCursorForTesting() const override; |
139 void setEventListenerProperties(WebEventListenerClass, | 139 // The client keeps track of which touch/mousewheel event types have handlers, |
140 // 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.
| |
141 // allows the client to know which optimizations can be used for the | |
142 // associated event classes. | |
143 void setEventListenerProperties(LocalFrame*, | |
144 WebEventListenerClass, | |
140 WebEventListenerProperties) override; | 145 WebEventListenerProperties) override; |
141 WebEventListenerProperties eventListenerProperties( | 146 WebEventListenerProperties eventListenerProperties( |
147 LocalFrame*, | |
142 WebEventListenerClass) const override; | 148 WebEventListenerClass) const override; |
143 void setHasScrollEventHandlers(bool hasEventHandlers) override; | 149 // Informs client about the existence of handlers for scroll events so |
144 bool hasScrollEventHandlers() const override; | 150 // appropriate scroll optimizations can be chosen. |
151 void setHasScrollEventHandlers(LocalFrame*, bool hasEventHandlers) override; | |
145 void setTouchAction(LocalFrame*, TouchAction) override; | 152 void setTouchAction(LocalFrame*, TouchAction) override; |
146 | 153 |
147 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override; | 154 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override; |
148 | 155 |
149 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override; | 156 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override; |
150 | 157 |
151 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*, | 158 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*, |
152 LocalFrame*) override; | 159 LocalFrame*) override; |
153 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*, | 160 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*, |
154 LocalFrame*) override; | 161 LocalFrame*) override; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 | 247 |
241 DEFINE_TYPE_CASTS(ChromeClientImpl, | 248 DEFINE_TYPE_CASTS(ChromeClientImpl, |
242 ChromeClient, | 249 ChromeClient, |
243 client, | 250 client, |
244 client->isChromeClientImpl(), | 251 client->isChromeClientImpl(), |
245 client.isChromeClientImpl()); | 252 client.isChromeClientImpl()); |
246 | 253 |
247 } // namespace blink | 254 } // namespace blink |
248 | 255 |
249 #endif | 256 #endif |
OLD | NEW |