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

Issue 15071002: WIP - loop in LayoutManager for preferred size changes (Closed)

Created:
7 years, 7 months ago by Evan Stade
Modified:
5 years, 3 months ago
Reviewers:
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

WIP - loop in LayoutManager for preferred size changes BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : scoped layouter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -19 lines) Patch
M ui/message_center/views/message_center_view.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M ui/message_center/views/message_popup_bubble.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/menu/submenu_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/layout/box_layout.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/layout/box_layout.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/layout/layout_manager.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/layout/layout_manager.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 3 chunks +13 lines, -2 lines 0 comments Download
M ui/views/view.cc View 1 3 chunks +18 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Evan Stade
Scott, what do you think of this change? It seems like the responsibility for knowing ...
7 years, 7 months ago (2013-05-08 22:31:42 UTC) #1
sky
Do you have a use case as to what you're trying to accomplish?
7 years, 7 months ago (2013-05-09 14:54:15 UTC) #2
Evan Stade
On 2013/05/09 14:54:15, sky wrote: > Do you have a use case as to what ...
7 years, 7 months ago (2013-05-09 18:14:49 UTC) #3
sky
On Thu, May 9, 2013 at 11:14 AM, <estade@chromium.org> wrote: > On 2013/05/09 14:54:15, sky ...
7 years, 7 months ago (2013-05-09 19:29:18 UTC) #4
Evan Stade
On 2013/05/09 19:29:18, sky wrote: > On Thu, May 9, 2013 at 11:14 AM, <mailto:estade@chromium.org> ...
7 years, 7 months ago (2013-05-09 22:08:39 UTC) #5
sky
On Thu, May 9, 2013 at 3:08 PM, <estade@chromium.org> wrote: > On 2013/05/09 19:29:18, sky ...
7 years, 7 months ago (2013-05-09 22:29:23 UTC) #6
Evan Stade
I think I will have to come back to this after io.
7 years, 7 months ago (2013-05-10 02:01:45 UTC) #7
Evan Stade
7 years, 7 months ago (2013-05-23 21:26:43 UTC) #8
ok, thought about this some more. This CL is still a WIP but it does a few
things

1. as before, the layout manager can react to ChildPreferredSizeChanged.

2. PreferredSizeChanged additionally calls Layout() (but avoids calling it if
the size changed propagation has already caused a layout).

3. I created a scoping object to use in place of InvalidateLayout(), but then I
decided it was less useful than just doing a deferred layout. This CL has the
scoping object approach, https://codereview.chromium.org/15912007/ has the
deferred layouts.

This patch passes unit and manual tests, although I should probably add more
unit tests. WDYT?

Powered by Google App Engine
This is Rietveld 408576698