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

Side by Side Diff: cc/LayerChromium.h

Issue 10940002: Add wrapper container for a vector of OwnPtr<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/ScrollbarLayerChromiumTest.cpp » ('j') | no next file with comments »
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 5
6 #ifndef LayerChromium_h 6 #ifndef LayerChromium_h
7 #define LayerChromium_h 7 #define LayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual const WebKit::WebTransformationMatrix& transform() const OVERRIDE { return m_transform; } 60 virtual const WebKit::WebTransformationMatrix& transform() const OVERRIDE { return m_transform; }
61 61
62 LayerChromium* rootLayer(); 62 LayerChromium* rootLayer();
63 LayerChromium* parent() const; 63 LayerChromium* parent() const;
64 void addChild(PassRefPtr<LayerChromium>); 64 void addChild(PassRefPtr<LayerChromium>);
65 void insertChild(PassRefPtr<LayerChromium>, size_t index); 65 void insertChild(PassRefPtr<LayerChromium>, size_t index);
66 void replaceChild(LayerChromium* reference, PassRefPtr<LayerChromium> newLay er); 66 void replaceChild(LayerChromium* reference, PassRefPtr<LayerChromium> newLay er);
67 void removeFromParent(); 67 void removeFromParent();
68 void removeAllChildren(); 68 void removeAllChildren();
69 void setChildren(const Vector<RefPtr<LayerChromium> >&); 69 void setChildren(const Vector<RefPtr<LayerChromium> >&);
70
70 const Vector<RefPtr<LayerChromium> >& children() const { return m_children; } 71 const Vector<RefPtr<LayerChromium> >& children() const { return m_children; }
71 72
72 void setAnchorPoint(const FloatPoint&); 73 void setAnchorPoint(const FloatPoint&);
73 FloatPoint anchorPoint() const { return m_anchorPoint; } 74 FloatPoint anchorPoint() const { return m_anchorPoint; }
74 75
75 void setAnchorPointZ(float); 76 void setAnchorPointZ(float);
76 float anchorPointZ() const { return m_anchorPointZ; } 77 float anchorPointZ() const { return m_anchorPointZ; }
77 78
78 void setBackgroundColor(SkColor); 79 void setBackgroundColor(SkColor);
79 SkColor backgroundColor() const { return m_backgroundColor; } 80 SkColor backgroundColor() const { return m_backgroundColor; }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 373 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
373 WebKit::WebLayerScrollClient* m_layerScrollClient; 374 WebKit::WebLayerScrollClient* m_layerScrollClient;
374 }; 375 };
375 376
376 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 377 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
377 378
378 } 379 }
379 #endif // USE(ACCELERATED_COMPOSITING) 380 #endif // USE(ACCELERATED_COMPOSITING)
380 381
381 #endif 382 #endif
OLDNEW
« no previous file with comments | « cc/CCTiledLayerImplTest.cpp ('k') | cc/ScrollbarLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698