Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Issue 2083923002: MacViews: Fix WidgetObserverTest.WidgetBoundsChangedNative after r400463 (Closed)

Created:
4 years, 6 months ago by tapted
Modified:
4 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M ui/views/widget/widget_unittest.cc View 1 2 3 2 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
tapted
Hi sky, please take a look. My goal is to get views_unittests running on all ...
4 years, 6 months ago (2016-06-23 12:17:01 UTC) #6
sky
LGTM
4 years, 6 months ago (2016-06-23 15:50:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083923002/60001
4 years, 6 months ago (2016-06-23 23:16:23 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-23 23:22:12 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 23:24:38 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/061e7a03a36519fc21c5987e84709310b505244b
Cr-Commit-Position: refs/heads/master@{#401752}

Powered by Google App Engine
This is Rietveld 408576698