forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make comments more accurate in aura::WindowObserver.
OnWindowBoundsChanged() is called when the bounds of a window change. OnWindowOpacityChanged() and OnWindowTransformed() are called when the opacity or transform of a window is set, even if it didn't change. The reason for this difference is that the opacity and transform can be animated on the impl side of cc. cc sets the property value on the ui::Layer before the first frame of the animation is rendered and when the animation ends, but not during the animation. Most of the time, the value set before the first frame of the animation is rendered is the same as the existing value. We want to notify WindowObservers even if the value didn't change yet so that they are aware that an animation started. This CL also renamed OnWindowOpacityChanged -> OnWindowOpacitySet. Bug: 738387 Change-Id: I75c7c449ae5d20ae5b76e3ca0b6bb041ce8b1439 Reviewed-on: https://chromium-review.googlesource.com/775822 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#519427}
- Loading branch information
Showing
5 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters