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

Issue 2507403002: Remove Widget::OnRootViewLayout(). (Closed)

Created:
4 years, 1 month ago by tapted
Modified:
4 years, 1 month ago
Reviewers:
Elliot Glaysher, sadrul
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Widget::OnRootViewLayout(). It was added early on in the development for Linux Aura (r222386) to propagate min/max window size properties to the window server. However, it never really worked right because mapping the x11 window is asynchronous: there's no guarantee a layout would occur after the window was mapped. This was fixed in r325538 (and moved around in r388040 and r389572). Furthermore, calls to SetBounds() will also update the min and max size properties. This is since r283945 (and a fix for that in r350338), so the associated OnRootViewLayout() call is redundant. Mac was also using OnRootViewLayout() but r368141 added OnWidgetInitDone() which is a better place to trigger this. Mac stopped using OnRootViewLayout() in r432821. BUG=665280 TEST=Should be covered by WidgetTest.MinimumSizeConstraints added in r325538 Committed: https://crrev.com/37ff93058a11ab26e575152d207b849c009a4a00 Cr-Commit-Position: refs/heads/master@{#433462}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -47 lines) Patch
M ui/views/mus/desktop_window_tree_host_mus.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/root_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/root_view.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/widget/widget.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/widget/widget.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (12 generated)
tapted
Hi Elliot, WDYT? This needs crrev/2502813003 to land first (where Mac stops relying on OnRootViewLayout()), ...
4 years, 1 month ago (2016-11-17 07:59:03 UTC) #7
Elliot Glaysher
lgtm Given the changes in how we deal with async x11 mapping over the last ...
4 years, 1 month ago (2016-11-17 21:52:28 UTC) #8
tapted
+sadrul for OWNERS - thanks!
4 years, 1 month ago (2016-11-17 22:16:22 UTC) #10
sadrul
lgtm
4 years, 1 month ago (2016-11-18 19:04:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507403002/1
4 years, 1 month ago (2016-11-20 22:51:02 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-20 23:47:30 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-20 23:49:07 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/37ff93058a11ab26e575152d207b849c009a4a00
Cr-Commit-Position: refs/heads/master@{#433462}

Powered by Google App Engine
This is Rietveld 408576698