DescriptionDon't set view_screen_rect_ on RequestMove ACK
In https://codereview.chromium.org/1894333002/ I made the OnRequestMoveAck
method reset the view_screen_rect_ variable to the pending rect. This was a
mistake because the move request is on the *window* rect, not the view rect.
Additionally, it's unnecessary since it's the browser's job to send an
UpdateScreenRects message to the renderer with the new view and window bounds.
This only happens for non-popup windows so popups will now store the view/window
rects immediately. This patch removes the reset in the Ack method.
In addition, the windowRect method confusingly returns the view_screen_rect or
pending_window_rect if there's a pending move. I've changed this to return the
window_screen_rect_ and added a viewRect method for callers that actually
expect the view. I also did some cleanup and replaced the redundant
RootWindowRect with windowRect.
BUG=638671
Committed: https://crrev.com/6b08cd23a5bbe4e1d95bb7e0431fc743e6b0180c
Cr-Commit-Position: refs/heads/master@{#423030}
Patch Set 1 #Patch Set 2 : Fix #Patch Set 3 : Build Fix #Patch Set 4 : None #Patch Set 5 : Store popup size changes #Patch Set 6 : Rebase + picker-common.js changes #Patch Set 7 : Rebase #Patch Set 8 : Update expectations #Patch Set 9 : Rebase #Messages
Total messages: 53 (38 generated)
|