Chromium Code Reviews
DescriptionMacViews: Fix WidgetObserverTest.WidgetBoundsChangedNative after r400463
If a Widget bounds is outside the work area when shown, OSX will move it
inside when the widget is Show()n.
r400463 added a handler for -[NSWindowDelegate windowDidMove:], invoking
OnNativeWidgetMove(). There was only test coverage for movement done in
combination with a resize, so this wasn't noticed earlier.
WidgetBoundsChangedNative regressed on Mac, because the Widget now
correctly observes the movement into the work area that OSX enforces. To
cover the same codepaths as before, use an origin that's inside the work
area, rather than (0,0).
Add coverage that would have picked up the the missing
OnNativeWidgetMove() call. Currently this fails on Mus, but not other
native widget types.
BUG=621419
Committed: https://crrev.com/061e7a03a36519fc21c5987e84709310b505244b
Cr-Commit-Position: refs/heads/master@{#401752}
Patch Set 1 #Patch Set 2 : Test moving #Patch Set 3 : See if desktop widgets are any different #Patch Set 4 : More focused #Messages
Total messages: 13 (8 generated)
|