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

Issue 559873002: MacViews: Ensure the RootView is in place before the first call to ReorderNativeViews (Closed)

Created:
6 years, 3 months ago by tapted
Modified:
6 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@20140909-MacViews-Everything-Compiles
Project:
chromium
Visibility:
Public.

Description

MacViews: Ensure the RootView is in place before the first call to ReorderNativeViews This gets 3 views_unittests passing: - ViewTargeterTest.HitTestCallsOnView, - ViewTest.CanProcessEventsWithinSubtree, - ViewTest.GetEventHandlerForRect. These were failing because the size of the RootView was being reset to the Widget size when first added. This happened because NativeWidgetMac was not ensuring the RootView was set up properly immediately after a call to Widget::Init() for all Widget types (i.e. those without a NonClientView). When there _is_ a NonClientView, Widget::Init() calls SetContentsView() which would eventually trickle down to NativeWidgetMac::ReorderNativeViews(), which is where NativeWidgetMac would set up the root view. BUG=378134 Committed: https://crrev.com/f1d241a504fb4cdc18501ffb7b0369aa0135cc9d Cr-Commit-Position: refs/heads/master@{#294296}

Patch Set 1 #

Total comments: 2

Patch Set 2 : kTestRect -> test_rect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M ui/views/widget/native_widget_mac.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
tapted
Hi sky - please take a look. This is a piece from the earlier NativeWidgetHostMac ...
6 years, 3 months ago (2014-09-10 06:43:19 UTC) #2
sky
LGTM https://codereview.chromium.org/559873002/diff/1/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/559873002/diff/1/ui/views/widget/widget_unittest.cc#newcode3106 ui/views/widget/widget_unittest.cc:3106: const gfx::Rect kTestRect(0, 0, 500, 500); nit: k ...
6 years, 3 months ago (2014-09-10 14:48:36 UTC) #3
tapted
https://codereview.chromium.org/559873002/diff/1/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/559873002/diff/1/ui/views/widget/widget_unittest.cc#newcode3106 ui/views/widget/widget_unittest.cc:3106: const gfx::Rect kTestRect(0, 0, 500, 500); On 2014/09/10 14:48:36, ...
6 years, 3 months ago (2014-09-11 00:17:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/559873002/20001
6 years, 3 months ago (2014-09-11 00:19:27 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 05d86a9adc1789af6ff9c694e54166827e21c4d0
6 years, 3 months ago (2014-09-11 02:09:24 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 03:09:15 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f1d241a504fb4cdc18501ffb7b0369aa0135cc9d
Cr-Commit-Position: refs/heads/master@{#294296}

Powered by Google App Engine
This is Rietveld 408576698