OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 // Returns the target bounds of the window. If the window's layer is | 164 // Returns the target bounds of the window. If the window's layer is |
165 // not animating, it simply returns the current bounds. | 165 // not animating, it simply returns the current bounds. |
166 gfx::Rect GetTargetBounds() const; | 166 gfx::Rect GetTargetBounds() const; |
167 | 167 |
168 // Marks the a portion of window as needing to be painted. | 168 // Marks the a portion of window as needing to be painted. |
169 void SchedulePaintInRect(const gfx::Rect& rect); | 169 void SchedulePaintInRect(const gfx::Rect& rect); |
170 | 170 |
171 // Assigns a new external texture to the window's layer. | 171 // Assigns a new external texture to the window's layer. |
172 void SetExternalTexture(ui::Texture* texture); | 172 void SetExternalTexture(ui::Texture* texture); |
173 | 173 |
174 // Sets the parent window of the window. If NULL, the window is parented to | 174 // Sets the parent window of the window. Can not be NULL. |
Ben Goodger (Google)
2012/11/20 23:46:38
Cannot or Must not
| |
175 // the root window. | 175 void SetParentTo(Window* parent); |
176 void SetParent(Window* parent); | 176 |
177 // Attach this window somewhere. | |
178 // | |
179 // |context_root| can never be NULL; since desktop aura and ash can be run at | |
Ben Goodger (Google)
2012/11/20 23:46:38
Don't leak knowledge of downstream components into
| |
180 // the same time in the same process, we always must have some context to | |
181 // determine desktop vs ash semantics. Users shouldn't assume that the window | |
182 // will be rooted to |context_root|. | |
183 void SetDefaultParentByTargetRoot(RootWindow* context_root); | |
177 | 184 |
178 // Stacks the specified child of this Window at the front of the z-order. | 185 // Stacks the specified child of this Window at the front of the z-order. |
179 void StackChildAtTop(Window* child); | 186 void StackChildAtTop(Window* child); |
180 | 187 |
181 // Stacks |child| above |target|. Does nothing if |child| is already above | 188 // Stacks |child| above |target|. Does nothing if |child| is already above |
182 // |target|. Does not stack on top of windows with NULL layer delegates, | 189 // |target|. Does not stack on top of windows with NULL layer delegates, |
183 // see WindowTest.StackingMadrigal for details. | 190 // see WindowTest.StackingMadrigal for details. |
184 void StackChildAbove(Window* child, Window* target); | 191 void StackChildAbove(Window* child, Window* target); |
185 | 192 |
186 // Stacks |child| below |target|. Does nothing if |child| is already below | 193 // Stacks |child| below |target|. Does nothing if |child| is already below |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
500 }; | 507 }; |
501 | 508 |
502 std::map<const void*, Value> prop_map_; | 509 std::map<const void*, Value> prop_map_; |
503 | 510 |
504 DISALLOW_COPY_AND_ASSIGN(Window); | 511 DISALLOW_COPY_AND_ASSIGN(Window); |
505 }; | 512 }; |
506 | 513 |
507 } // namespace aura | 514 } // namespace aura |
508 | 515 |
509 #endif // UI_AURA_WINDOW_H_ | 516 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |