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

Side by Side Diff: public/platform/WebLayer.h

Issue 206603002: Add EventHandlerRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests now seem to pass. Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 178 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
179 virtual void setScrollClipLayer(WebLayer*) = 0; 179 virtual void setScrollClipLayer(WebLayer*) = 0;
180 virtual bool scrollable() const = 0; 180 virtual bool scrollable() const = 0;
181 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; 181 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
182 virtual bool userScrollableHorizontal() const = 0; 182 virtual bool userScrollableHorizontal() const = 0;
183 virtual bool userScrollableVertical() const = 0; 183 virtual bool userScrollableVertical() const = 0;
184 184
185 virtual void setHaveWheelEventHandlers(bool) = 0; 185 virtual void setHaveWheelEventHandlers(bool) = 0;
186 virtual bool haveWheelEventHandlers() const = 0; 186 virtual bool haveWheelEventHandlers() const = 0;
187 187
188 virtual void setHaveScrollEventHandlers(bool) = 0;
189 virtual bool haveScrollEventHandlers() const = 0;
190
188 virtual void setShouldScrollOnMainThread(bool) = 0; 191 virtual void setShouldScrollOnMainThread(bool) = 0;
189 virtual bool shouldScrollOnMainThread() const = 0; 192 virtual bool shouldScrollOnMainThread() const = 0;
190 193
191 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 194 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
192 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 195 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
193 196
194 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 197 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
195 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 198 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
196 199
197 virtual void setIsContainerForFixedPositionLayers(bool) = 0; 200 virtual void setIsContainerForFixedPositionLayers(bool) = 0;
(...skipping 17 matching lines...) Expand all
215 218
216 // True if the layer is not part of a tree attached to a WebLayerTreeView. 219 // True if the layer is not part of a tree attached to a WebLayerTreeView.
217 virtual bool isOrphan() const = 0; 220 virtual bool isOrphan() const = 0;
218 221
219 virtual void setWebLayerClient(WebLayerClient*) = 0; 222 virtual void setWebLayerClient(WebLayerClient*) = 0;
220 }; 223 };
221 224
222 } // namespace blink 225 } // namespace blink
223 226
224 #endif // WebLayer_h 227 #endif // WebLayer_h
OLDNEW
« Source/web/tests/WebViewTest.cpp ('K') | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698