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

Side by Side Diff: ui/aura/window.h

Issue 8477019: Adds Window::MoveChildToFront, with surrounding changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 years, 1 month 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/views/hung_renderer_view.cc ('k') | ui/aura/window.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_AURA_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Sets the contents of the window. 143 // Sets the contents of the window.
144 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin); 144 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin);
145 145
146 // Sets the parent window of the window. If NULL, the window is parented to 146 // Sets the parent window of the window. If NULL, the window is parented to
147 // the desktop's window. 147 // the desktop's window.
148 void SetParent(Window* parent); 148 void SetParent(Window* parent);
149 149
150 // Move the specified child of this Window to the front of the z-order. 150 // Move the specified child of this Window to the front of the z-order.
151 void MoveChildToFront(Window* child); 151 void MoveChildToFront(Window* child);
152 152
153 // Moves |other| to be above |child|. Does nothing if |child| is already above
154 // |other|.
155 void MoveChildAbove(Window* child, Window* other);
156
153 // Returns true if this window can be activated. 157 // Returns true if this window can be activated.
154 bool CanActivate() const; 158 bool CanActivate() const;
155 159
156 // Tree operations. 160 // Tree operations.
157 // TODO(beng): Child windows are currently not owned by the hierarchy. We 161 // TODO(beng): Child windows are currently not owned by the hierarchy. We
158 // should change this. 162 // should change this.
159 void AddChild(Window* child); 163 void AddChild(Window* child);
160 void RemoveChild(Window* child); 164 void RemoveChild(Window* child);
161 165
162 const Windows& children() const { return children_; } 166 const Windows& children() const { return children_; }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // TODO(oshima): Consolidcate ViewProp and aura::window property 353 // TODO(oshima): Consolidcate ViewProp and aura::window property
350 // implementation. 354 // implementation.
351 std::map<const char*, void*> prop_map_; 355 std::map<const char*, void*> prop_map_;
352 356
353 DISALLOW_COPY_AND_ASSIGN(Window); 357 DISALLOW_COPY_AND_ASSIGN(Window);
354 }; 358 };
355 359
356 } // namespace aura 360 } // namespace aura
357 361
358 #endif // UI_AURA_WINDOW_H_ 362 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698