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

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

Issue 558203002: Propagate window transformed notification to child hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 3 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
« no previous file with comments | « no previous file | 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) 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // during the call (by an observer), otherwise true. 438 // during the call (by an observer), otherwise true.
439 bool NotifyWindowVisibilityChangedAtReceiver(aura::Window* target, 439 bool NotifyWindowVisibilityChangedAtReceiver(aura::Window* target,
440 bool visible); 440 bool visible);
441 // Notifies this window and its child hierarchy. Returns false if 441 // Notifies this window and its child hierarchy. Returns false if
442 // |this| was deleted during the call (by an observer), otherwise 442 // |this| was deleted during the call (by an observer), otherwise
443 // true. 443 // true.
444 bool NotifyWindowVisibilityChangedDown(aura::Window* target, bool visible); 444 bool NotifyWindowVisibilityChangedDown(aura::Window* target, bool visible);
445 // Notifies this window and its parent hierarchy. 445 // Notifies this window and its parent hierarchy.
446 void NotifyWindowVisibilityChangedUp(aura::Window* target, bool visible); 446 void NotifyWindowVisibilityChangedUp(aura::Window* target, bool visible);
447 447
448 // Notifies this window and its child hierarchy of a transform applied to
449 // |source|.
450 void NotifyAncestorWindowTransformed(Window* source);
451
448 // Invoked when the bounds of the window changes. This may be invoked directly 452 // Invoked when the bounds of the window changes. This may be invoked directly
449 // by us, or from the closure returned by PrepareForLayerBoundsChange() after 453 // by us, or from the closure returned by PrepareForLayerBoundsChange() after
450 // the bounds of the layer has changed. |old_bounds| is the previous bounds. 454 // the bounds of the layer has changed. |old_bounds| is the previous bounds.
451 void OnWindowBoundsChanged(const gfx::Rect& old_bounds); 455 void OnWindowBoundsChanged(const gfx::Rect& old_bounds);
452 456
453 // Overridden from ui::LayerDelegate: 457 // Overridden from ui::LayerDelegate:
454 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 458 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
455 virtual void OnDelegatedFrameDamage( 459 virtual void OnDelegatedFrameDamage(
456 const gfx::Rect& damage_rect_in_dip) OVERRIDE; 460 const gfx::Rect& damage_rect_in_dip) OVERRIDE;
457 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; 461 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 }; 541 };
538 542
539 std::map<const void*, Value> prop_map_; 543 std::map<const void*, Value> prop_map_;
540 544
541 DISALLOW_COPY_AND_ASSIGN(Window); 545 DISALLOW_COPY_AND_ASSIGN(Window);
542 }; 546 };
543 547
544 } // namespace aura 548 } // namespace aura
545 549
546 #endif // UI_AURA_WINDOW_H_ 550 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698