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

Side by Side Diff: ui/gfx/compositor/layer.h

Issue 9003010: Implements DockInfo for aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 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 | « chrome/browser/ui/tabs/dock_info_aura.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_H_ 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_
6 #define UI_GFX_COMPOSITOR_LAYER_H_ 6 #define UI_GFX_COMPOSITOR_LAYER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // layer. 84 // layer.
85 void StackBelow(Layer* child, Layer* other); 85 void StackBelow(Layer* child, Layer* other);
86 86
87 // Returns the child Layers. 87 // Returns the child Layers.
88 const std::vector<Layer*>& children() const { return children_; } 88 const std::vector<Layer*>& children() const { return children_; }
89 89
90 // The parent. 90 // The parent.
91 const Layer* parent() const { return parent_; } 91 const Layer* parent() const { return parent_; }
92 Layer* parent() { return parent_; } 92 Layer* parent() { return parent_; }
93 93
94 LayerType type() const { return type_; }
95
94 // Returns true if this Layer contains |other| somewhere in its children. 96 // Returns true if this Layer contains |other| somewhere in its children.
95 bool Contains(const Layer* other) const; 97 bool Contains(const Layer* other) const;
96 98
97 // The layer's animator is responsible for causing automatic animations when 99 // The layer's animator is responsible for causing automatic animations when
98 // properties are set. It also manages a queue of pending animations and 100 // properties are set. It also manages a queue of pending animations and
99 // handles blending of animations. The layer takes ownership of the animator. 101 // handles blending of animations. The layer takes ownership of the animator.
100 void SetAnimator(LayerAnimator* animator); 102 void SetAnimator(LayerAnimator* animator);
101 103
102 // Returns the layer's animator. Creates a default animator of one has not 104 // Returns the layer's animator. Creates a default animator of one has not
103 // been set. Will not return NULL. 105 // been set. Will not return NULL.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 bool web_layer_is_accelerated_; 350 bool web_layer_is_accelerated_;
349 bool show_debug_borders_; 351 bool show_debug_borders_;
350 #endif 352 #endif
351 353
352 DISALLOW_COPY_AND_ASSIGN(Layer); 354 DISALLOW_COPY_AND_ASSIGN(Layer);
353 }; 355 };
354 356
355 } // namespace ui 357 } // namespace ui
356 358
357 #endif // UI_GFX_COMPOSITOR_LAYER_H_ 359 #endif // UI_GFX_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698