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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords, | 150 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords, |
151 const gfx::Display& dst_display); | 151 const gfx::Display& dst_display); |
152 | 152 |
153 // Returns the target bounds of the window. If the window's layer is | 153 // Returns the target bounds of the window. If the window's layer is |
154 // not animating, it simply returns the current bounds. | 154 // not animating, it simply returns the current bounds. |
155 gfx::Rect GetTargetBounds() const; | 155 gfx::Rect GetTargetBounds() const; |
156 | 156 |
157 // Marks the a portion of window as needing to be painted. | 157 // Marks the a portion of window as needing to be painted. |
158 void SchedulePaintInRect(const gfx::Rect& rect); | 158 void SchedulePaintInRect(const gfx::Rect& rect); |
159 | 159 |
160 // Assigns a new external texture to the window's layer. | |
161 void SetExternalTexture(ui::Texture* texture); | |
162 | |
163 // Places this window per |root_window|'s stacking client. The final location | 160 // Places this window per |root_window|'s stacking client. The final location |
164 // may be a RootWindow other than the one passed in. |root_window| may not be | 161 // may be a RootWindow other than the one passed in. |root_window| may not be |
165 // NULL. |bounds_in_screen| may be empty; it is more optional context that | 162 // NULL. |bounds_in_screen| may be empty; it is more optional context that |
166 // may, but isn't necessarily used. | 163 // may, but isn't necessarily used. |
167 void SetDefaultParentByRootWindow(RootWindow* root_window, | 164 void SetDefaultParentByRootWindow(RootWindow* root_window, |
168 const gfx::Rect& bounds_in_screen); | 165 const gfx::Rect& bounds_in_screen); |
169 | 166 |
170 // Stacks the specified child of this Window at the front of the z-order. | 167 // Stacks the specified child of this Window at the front of the z-order. |
171 void StackChildAtTop(Window* child); | 168 void StackChildAtTop(Window* child); |
172 | 169 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 }; | 513 }; |
517 | 514 |
518 std::map<const void*, Value> prop_map_; | 515 std::map<const void*, Value> prop_map_; |
519 | 516 |
520 DISALLOW_COPY_AND_ASSIGN(Window); | 517 DISALLOW_COPY_AND_ASSIGN(Window); |
521 }; | 518 }; |
522 | 519 |
523 } // namespace aura | 520 } // namespace aura |
524 | 521 |
525 #endif // UI_AURA_WINDOW_H_ | 522 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |