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

Issue 2414103003: Added common layout framework for system menu rows. (Closed)

Created:
4 years, 2 months ago by bruthig
Modified:
4 years, 2 months ago
Reviewers:
tdanderson, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added common layout framework for system menu rows. Currently most of the system menu rows define their own layouts even though many rows should have the same layout. Additionally we have to support two separate layout schemes while material design is being implemented. Thus this CL lays the ground work to make it easier to support multiple layout schemes and a centralized layout source. Follow-up TODO: - wire in the new layouts to the system menu rows BUG=657669 Committed: https://crrev.com/d7d592f487f9e03222d66c449b3ca772210b2b0b Cr-Commit-Position: refs/heads/master@{#426626}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added tests #

Patch Set 3 : Merge branch 'master' into md_system_menu_layout_mgr #

Total comments: 51

Patch Set 4 : Addressed review comments and fixed some build errors. #

Patch Set 5 : Removed VIEWS_EXPORT from TestLayoutManager and replaced TestView with StaticSizedView. #

Total comments: 10

Patch Set 6 : Addressed review comments. #

Patch Set 7 : Moved |layout_manager_| destruction order in ~View(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1353 lines, -7 lines) Patch
M ash/BUILD.gn View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
A ash/common/system/tray/size_range_layout.h View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
A ash/common/system/tray/size_range_layout.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
A ash/common/system/tray/size_range_layout_unittest.cc View 1 2 3 1 chunk +182 lines, -0 lines 0 comments Download
A ash/common/system/tray/three_view_layout.h View 1 2 3 4 5 1 chunk +158 lines, -0 lines 0 comments Download
A ash/common/system/tray/three_view_layout.cc View 1 2 3 1 chunk +190 lines, -0 lines 0 comments Download
A ash/common/system/tray/three_view_layout_unittest.cc View 1 2 3 4 5 1 chunk +342 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_constants.h View 1 chunk +12 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 2 chunks +16 lines, -0 lines 0 comments Download
A ash/common/system/tray/tray_popup_layout_factory.h View 1 chunk +55 lines, -0 lines 0 comments Download
A ash/common/system/tray/tray_popup_layout_factory.cc View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A ui/views/test/test_layout_manager.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A ui/views/test/test_layout_manager.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M ui/views/test/test_views.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/test/test_views.cc View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M ui/views/view.cc View 1 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (27 generated)
bruthig
tdanderson@, can you please take a look? sky@, I have a couple of specific questions ...
4 years, 2 months ago (2016-10-14 14:51:25 UTC) #2
sky
You are literally the third person in a week to bring up layout managers. Do ...
4 years, 2 months ago (2016-10-14 16:24:26 UTC) #3
bruthig
On 2016/10/14 16:24:26, sky wrote: > You are literally the third person in a week ...
4 years, 2 months ago (2016-10-14 17:07:01 UTC) #4
sky
https://codereview.chromium.org/2414103003/diff/1/ash/common/system/tray/size_range_layout.h File ash/common/system/tray/size_range_layout.h (right): https://codereview.chromium.org/2414103003/diff/1/ash/common/system/tray/size_range_layout.h#newcode41 ash/common/system/tray/size_range_layout.h:41: class SizeRangeLayout : public views::LayoutManager { Unless I'm missing ...
4 years, 2 months ago (2016-10-14 22:11:13 UTC) #5
sky
On 2016/10/14 17:07:01, bruthig wrote: > On 2016/10/14 16:24:26, sky wrote: > > You are ...
4 years, 2 months ago (2016-10-14 22:25:18 UTC) #6
bruthig
Thanks Scott, the alignment/anchor layout manager sounds interesting and possibly applicable to my use cases. ...
4 years, 2 months ago (2016-10-17 15:53:12 UTC) #7
sky
On 2016/10/17 15:53:12, bruthig wrote: > Thanks Scott, the alignment/anchor layout manager sounds interesting and ...
4 years, 2 months ago (2016-10-17 16:20:54 UTC) #8
bruthig
On 2016/10/17 16:20:54, sky wrote: > On 2016/10/17 15:53:12, bruthig wrote: > > Thanks Scott, ...
4 years, 2 months ago (2016-10-17 16:27:57 UTC) #9
tdanderson
On 2016/10/17 16:27:57, bruthig wrote: > On 2016/10/17 16:20:54, sky wrote: > > On 2016/10/17 ...
4 years, 2 months ago (2016-10-17 17:47:13 UTC) #10
bruthig
Terry, this is ready for full review, can you please take a look?
4 years, 2 months ago (2016-10-18 22:59:53 UTC) #14
tdanderson
Nice, I'm looking forward to seeing this in action. ash/ parts LGTM with some questions ...
4 years, 2 months ago (2016-10-19 18:31:00 UTC) #17
bruthig
tdanderson@, I've made some changes, can you take a second look? sky@, can you take ...
4 years, 2 months ago (2016-10-20 04:40:13 UTC) #23
sky
https://codereview.chromium.org/2414103003/diff/80001/ui/views/test/test_layout_manager.h File ui/views/test/test_layout_manager.h (right): https://codereview.chromium.org/2414103003/diff/80001/ui/views/test/test_layout_manager.h#newcode34 ui/views/test/test_layout_manager.h:34: gfx::Size preferred_size_ = gfx::Size(0, 0); Why the = gfx::Size(0, ...
4 years, 2 months ago (2016-10-20 15:59:11 UTC) #28
tdanderson
https://chromiumcodereview.appspot.com/2414103003/diff/40001/ash/common/system/tray/size_range_layout.cc File ash/common/system/tray/size_range_layout.cc (right): https://chromiumcodereview.appspot.com/2414103003/diff/40001/ash/common/system/tray/size_range_layout.cc#newcode95 ash/common/system/tray/size_range_layout.cc:95: if (layout_manager_) On 2016/10/20 04:40:12, bruthig wrote: > On ...
4 years, 2 months ago (2016-10-20 18:16:49 UTC) #29
bruthig
sky@, can you please take another look? https://codereview.chromium.org/2414103003/diff/40001/ash/common/system/tray/tray_popup_layout_factory.h File ash/common/system/tray/tray_popup_layout_factory.h (right): https://codereview.chromium.org/2414103003/diff/40001/ash/common/system/tray/tray_popup_layout_factory.h#newcode43 ash/common/system/tray/tray_popup_layout_factory.h:43: static void ...
4 years, 2 months ago (2016-10-20 19:01:34 UTC) #32
sky
https://codereview.chromium.org/2414103003/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/2414103003/diff/80001/ui/views/view.cc#newcode131 ui/views/view.cc:131: // Some layout managers hold a reference to the ...
4 years, 2 months ago (2016-10-20 20:42:22 UTC) #35
bruthig
sky@, can you please take another look? https://codereview.chromium.org/2414103003/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/2414103003/diff/80001/ui/views/view.cc#newcode131 ui/views/view.cc:131: // Some ...
4 years, 2 months ago (2016-10-20 21:00:48 UTC) #37
sky
LGTM
4 years, 2 months ago (2016-10-20 22:35:09 UTC) #41
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/2414103003/120001
4 years, 2 months ago (2016-10-20 22:36:06 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-20 22:50:21 UTC) #46
Peter Kasting
A revert of this CL (patchset #7 id:120001) has been created in https://chromiumcodereview.appspot.com/2441923004/ by pkasting@chromium.org. ...
4 years, 2 months ago (2016-10-21 02:18:55 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:23:51 UTC) #49
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d7d592f487f9e03222d66c449b3ca772210b2b0b
Cr-Commit-Position: refs/heads/master@{#426626}

Powered by Google App Engine
This is Rietveld 408576698