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

Side by Side Diff: cc/layer.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revision as per comments, animate scrollbars, fix slow-path PZ scrolling. Created 7 years, 9 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer.cc » ('j') | cc/layer_tree_host.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYER_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 LayerAnimationController* layerAnimationController() { return m_layerAnimati onController.get(); } 266 LayerAnimationController* layerAnimationController() { return m_layerAnimati onController.get(); }
267 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); 267 void setLayerAnimationController(scoped_refptr<LayerAnimationController>);
268 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); 268 scoped_refptr<LayerAnimationController> releaseLayerAnimationController();
269 269
270 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } 270 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD elegate) { m_layerAnimationDelegate = layerAnimationDelegate; }
271 271
272 bool hasActiveAnimation() const; 272 bool hasActiveAnimation() const;
273 273
274 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT ime); 274 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT ime);
275 virtual void notifyAnimationFinished(double wallClockTime); 275 virtual void notifyAnimationFinished(double wallClockTime);
276 virtual void notifyAnimationPropertyUpdate(const AnimationEvent& event);
276 277
277 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb server); 278 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb server);
278 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio nObserver); 279 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio nObserver);
279 280
280 virtual Region visibleContentOpaqueRegion() const; 281 virtual Region visibleContentOpaqueRegion() const;
281 282
282 virtual ScrollbarLayer* toScrollbarLayer(); 283 virtual ScrollbarLayer* toScrollbarLayer();
283 284
284 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
285 286
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 WebKit::WebLayerScrollClient* m_layerScrollClient; 406 WebKit::WebLayerScrollClient* m_layerScrollClient;
406 407
407 DrawProperties<Layer, RenderSurface> m_drawProperties; 408 DrawProperties<Layer, RenderSurface> m_drawProperties;
408 }; 409 };
409 410
410 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 411 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
411 412
412 } // namespace cc 413 } // namespace cc
413 414
414 #endif // CC_LAYER_H_ 415 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer.cc » ('j') | cc/layer_tree_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698