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

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

Issue 23464035: Create Pinch Virtual Viewport scrollbar layers in Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Change when viewport layers are registered. Created 7 years, 3 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 | Annotate | Revision Log
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // The following functions suspend and resume all animations. The given time 157 // The following functions suspend and resume all animations. The given time
158 // is assumed to use the same time base as monotonicallyIncreasingTime(). 158 // is assumed to use the same time base as monotonicallyIncreasingTime().
159 virtual void suspendAnimations(double monotonicTime) = 0; 159 virtual void suspendAnimations(double monotonicTime) = 0;
160 virtual void resumeAnimations(double monotonicTime) = 0; 160 virtual void resumeAnimations(double monotonicTime) = 0;
161 161
162 // Returns true if this layer has any active animations - useful for tests. 162 // Returns true if this layer has any active animations - useful for tests.
163 virtual bool hasActiveAnimation() = 0; 163 virtual bool hasActiveAnimation() = 0;
164 164
165 // Scrolling 165 // Scrolling
166 // FIXME: Remove default implementation when CC-side implementation lands.
enne (OOO) 2013/09/12 18:51:21 Or just land the cc side first?
wjmaclean 2013/09/12 19:01:56 OK, I had just thought this way it would be one le
167 virtual void setScrollClipLayer(WebLayer*) { }
168
166 virtual void setScrollPosition(WebPoint) = 0; 169 virtual void setScrollPosition(WebPoint) = 0;
167 virtual WebPoint scrollPosition() const = 0; 170 virtual WebPoint scrollPosition() const = 0;
168 171
169 virtual void setMaxScrollPosition(WebSize) = 0; 172 virtual void setMaxScrollPosition(WebSize) = 0;
170 virtual WebSize maxScrollPosition() const = 0; 173 virtual WebSize maxScrollPosition() const = 0;
171 174
172 virtual void setScrollable(bool) = 0; 175 virtual void setScrollable(bool) = 0;
173 virtual bool scrollable() const = 0; 176 virtual bool scrollable() const = 0;
174 177
175 virtual void setHaveWheelEventHandlers(bool) = 0; 178 virtual void setHaveWheelEventHandlers(bool) = 0;
(...skipping 29 matching lines...) Expand all
205 208
206 // True if the layer is not part of a tree attached to a WebLayerTreeView. 209 // True if the layer is not part of a tree attached to a WebLayerTreeView.
207 virtual bool isOrphan() const = 0; 210 virtual bool isOrphan() const = 0;
208 211
209 virtual void setWebLayerClient(WebLayerClient*) = 0; 212 virtual void setWebLayerClient(WebLayerClient*) = 0;
210 }; 213 };
211 214
212 } // namespace WebKit 215 } // namespace WebKit
213 216
214 #endif // WebLayer_h 217 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698