Chromium Code Reviews
DescriptionSimplify WindowManager::OnWmSetBounds
If a top level window requests a change in bounds, that request will get plumbed
into the window manager. At that point, the window manager can veto the bounds
change.
This change simplifies the control flow about by having the window manager
always responding "no" (false) to the client while also setting the window
bounds itself based on the request.
By giving a response of false to the client, it will revert the currently
pending InFlightBoundsChange. If the bounds change initiated by the window
manager arrives first to the client, then the inflight change's revert will
be updated, and when the negative response arrives, it's a noop.
BUG=672151
Review-Url: https://codereview.chromium.org/2778823002
Cr-Commit-Position: refs/heads/master@{#459928}
Committed: https://chromium.googlesource.com/chromium/src/+/69875b5a5f926383fe0e2d476bf6c42c30b8b741
Patch Set 1 #
Total comments: 4
Patch Set 2 : Updated comment to reflect reality #Patch Set 3 : Fix Mus Demo Build #Patch Set 4 : Addressed Scott's comment #
Total comments: 1
Patch Set 5 : More cleanup #
Total comments: 2
Patch Set 6 : Add comment in WmSetBoundsResponse #Patch Set 7 : Update expectations for DragTestInteractive.DragTest #
Messages
Total messages: 40 (26 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||