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 // Places this window per |root_window|'s stacking client. The final location |
175 // the root window. | 175 // may be a RootWindow other than the one passed in. |root_window| may not be |
176 void SetParent(Window* parent); | 176 // NULL. |screen_bounds| may be empty; it is more optional context that may, |
| 177 // but isn't necessarily used. |
| 178 void SetDefaultParentByRootWindow(RootWindow* root_window, |
| 179 const gfx::Rect& screen_bounds); |
177 | 180 |
178 // Stacks the specified child of this Window at the front of the z-order. | 181 // Stacks the specified child of this Window at the front of the z-order. |
179 void StackChildAtTop(Window* child); | 182 void StackChildAtTop(Window* child); |
180 | 183 |
181 // Stacks |child| above |target|. Does nothing if |child| is already above | 184 // Stacks |child| above |target|. Does nothing if |child| is already above |
182 // |target|. Does not stack on top of windows with NULL layer delegates, | 185 // |target|. Does not stack on top of windows with NULL layer delegates, |
183 // see WindowTest.StackingMadrigal for details. | 186 // see WindowTest.StackingMadrigal for details. |
184 void StackChildAbove(Window* child, Window* target); | 187 void StackChildAbove(Window* child, Window* target); |
185 | 188 |
186 // Stacks |child| below |target|. Does nothing if |child| is already below | 189 // 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 }; | 503 }; |
501 | 504 |
502 std::map<const void*, Value> prop_map_; | 505 std::map<const void*, Value> prop_map_; |
503 | 506 |
504 DISALLOW_COPY_AND_ASSIGN(Window); | 507 DISALLOW_COPY_AND_ASSIGN(Window); |
505 }; | 508 }; |
506 | 509 |
507 } // namespace aura | 510 } // namespace aura |
508 | 511 |
509 #endif // UI_AURA_WINDOW_H_ | 512 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |