Chromium Code Reviews
DescriptionRemove RWHV::SetBounds() from the public API, and make comments clearer.
RenderWidgetHostView::SetBounds() is only being called from a single
call point within libcontent (within RWHImpl). It's purpose is to
position/size top-level windows for pop-up windows, in response to a
page calling window.resizeTo() or window.moveTo(). Therefore, this
change moves the base declaration of this method to RWHVBase.
Furthermore, SetBounds() can be ambiguous since: 1) it doesn't
necessarily set the size/position of the view, but maybe its top-level
window instead; 2) the coordinate system is that of the screen and not
the native view; 3) it's also acceptable for the platform implementation
to ignore the request in some circumstances. Therefore, this change
accounts for all this by renaming the method to
RequestTopLevelBoundsInScreen().
To be clear, there are no functional or behavior changes being made by
this change.
BUG=73362, 693953
TEST=Explicit unit test coverage from RWHVAura unit tests and SitePerProcess browser tests; and implicit coverage via many others.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Patch Set 1 #
Total comments: 4
Patch Set 2 : Resolve Android compile issue (missed one rename). #
Total comments: 4
Patch Set 3 : Platform-agnostic ResizeWebContents() impl. #Patch Set 4 : Fix BUILD/link issue on mac (due to making web_contents_sizer.cc for all platforms). #Patch Set 5 : Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). #Messages
Total messages: 38 (24 generated)
|