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

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

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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
OLDNEW
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords, 168 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords,
169 const gfx::Display& dst_display); 169 const gfx::Display& dst_display);
170 170
171 // Returns the target bounds of the window. If the window's layer is 171 // Returns the target bounds of the window. If the window's layer is
172 // not animating, it simply returns the current bounds. 172 // not animating, it simply returns the current bounds.
173 gfx::Rect GetTargetBounds() const; 173 gfx::Rect GetTargetBounds() const;
174 174
175 // Marks the a portion of window as needing to be painted. 175 // Marks the a portion of window as needing to be painted.
176 void SchedulePaintInRect(const gfx::Rect& rect); 176 void SchedulePaintInRect(const gfx::Rect& rect);
177 177
178 // Marks a portion of the window as having been damaged (and already painted).
179 void NotifyDamage(const gfx::Rect& rect);
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 the specified child of this window at the bottom of the z-order. 189 // Stacks the specified child of this window at the bottom of the z-order.
187 void StackChildAtBottom(Window* child); 190 void StackChildAtBottom(Window* child);
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 }; 538 };
536 539
537 std::map<const void*, Value> prop_map_; 540 std::map<const void*, Value> prop_map_;
538 541
539 DISALLOW_COPY_AND_ASSIGN(Window); 542 DISALLOW_COPY_AND_ASSIGN(Window);
540 }; 543 };
541 544
542 } // namespace aura 545 } // namespace aura
543 546
544 #endif // UI_AURA_WINDOW_H_ 547 #endif // UI_AURA_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698