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

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

Issue 8620002: s/Move/Stack/ in names of stacking-related methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a test Created 9 years 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 | « ui/aura_shell/toplevel_window_event_filter.cc ('k') | ui/gfx/compositor/layer.cc » ('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 (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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 LayerDelegate* delegate() { return delegate_; } 63 LayerDelegate* delegate() { return delegate_; }
64 void set_delegate(LayerDelegate* delegate) { delegate_ = delegate; } 64 void set_delegate(LayerDelegate* delegate) { delegate_ = delegate; }
65 65
66 // Adds a new Layer to this Layer. 66 // Adds a new Layer to this Layer.
67 void Add(Layer* child); 67 void Add(Layer* child);
68 68
69 // Removes a Layer from this Layer. 69 // Removes a Layer from this Layer.
70 void Remove(Layer* child); 70 void Remove(Layer* child);
71 71
72 // Moves a child to the end of the child list. 72 // Stacks |child| above all other children.
73 void MoveToFront(Layer* child); 73 void StackAtTop(Layer* child);
74 74
75 // Moves |child| to be above |other|. Does nothing if |other| is already above 75 // Stacks |child| above |other|, both of which must be children of this layer.
76 // |child|. 76 // Does nothing if |other| is already above |child|.
77 void MoveAbove(Layer* child, Layer* other); 77 void StackAbove(Layer* child, Layer* other);
78 78
79 // Returns the child Layers. 79 // Returns the child Layers.
80 const std::vector<Layer*>& children() const { return children_; } 80 const std::vector<Layer*>& children() const { return children_; }
81 81
82 // The parent. 82 // The parent.
83 const Layer* parent() const { return parent_; } 83 const Layer* parent() const { return parent_; }
84 Layer* parent() { return parent_; } 84 Layer* parent() { return parent_; }
85 85
86 // Returns true if this Layer contains |other| somewhere in its children. 86 // Returns true if this Layer contains |other| somewhere in its children.
87 bool Contains(const Layer* other) const; 87 bool Contains(const Layer* other) const;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 WebKit::WebLayer web_layer_; 333 WebKit::WebLayer web_layer_;
334 bool web_layer_is_accelerated_; 334 bool web_layer_is_accelerated_;
335 #endif 335 #endif
336 336
337 DISALLOW_COPY_AND_ASSIGN(Layer); 337 DISALLOW_COPY_AND_ASSIGN(Layer);
338 }; 338 };
339 339
340 } // namespace ui 340 } // namespace ui
341 341
342 #endif // UI_GFX_COMPOSITOR_LAYER_H_ 342 #endif // UI_GFX_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/toplevel_window_event_filter.cc ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698