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

Issue 2831023003: Refactor AddScrollListItem() in system menu detailed views (Closed)

Created:
3 years, 8 months ago by mohsen
Modified:
3 years, 8 months ago
Reviewers:
tdanderson
CC:
aboxhall+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dougt+watch_chromium.org, dtseng+watch_chromium.org, fukino, je_julie, kalyank, nektar+watch_chromium.org, sadrul, yuzo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor AddScrollListItem() in system menu detailed views Most of system menu detailed views have a scrollable list of items with very similar layouts. This CL adds a few functions in TrayDetailsView to create such items. Among different detailed views, network and VPN are not using these common functions, yet, as they need to be cleaned up first. That will be done in follow-up CLs. BUG=686343 TEST=TrayDetailsViewTest.ScrollContentsTest and *TrayAccessibilityTest.CheckMarksOnDetailMenu* in ash_unittests Review-Url: https://codereview.chromium.org/2831023003 Cr-Commit-Position: refs/heads/master@{#467147} Committed: https://chromium.googlesource.com/chromium/src/+/0b6712fcc4a9d0cd07624db4b3fac5c67edb2bac

Patch Set 1 #

Patch Set 2 : Fixed padding and test #

Patch Set 3 : Cleanup #

Patch Set 4 : Cleanup #

Total comments: 29

Patch Set 5 : Addressed review comments #

Patch Set 6 : Rebased #

Total comments: 6

Patch Set 7 : Addressed review comments #

Patch Set 8 : Used function overloading #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -300 lines) Patch
M ash/system/audio/audio_detailed_view.h View 1 2 2 chunks +2 lines, -14 lines 0 comments Download
M ash/system/audio/audio_detailed_view.cc View 1 2 3 4 5 6 7 5 chunks +28 lines, -67 lines 0 comments Download
M ash/system/bluetooth/tray_bluetooth.cc View 1 2 3 4 5 6 7 10 chunks +45 lines, -98 lines 0 comments Download
M ash/system/cast/tray_cast.cc View 3 chunks +2 lines, -14 lines 0 comments Download
M ash/system/ime_menu/ime_list_view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/ime_menu/ime_list_view.cc View 4 chunks +9 lines, -4 lines 0 comments Download
M ash/system/network/network_list.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/system/network/vpn_list_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/hover_highlight_view.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/tray/hover_highlight_view.cc View 1 2 3 4 2 chunks +15 lines, -9 lines 0 comments Download
M ash/system/tray/tray_details_view.h View 1 2 3 4 5 6 7 5 chunks +30 lines, -2 lines 0 comments Download
M ash/system/tray/tray_details_view.cc View 1 2 3 4 5 6 7 8 3 chunks +60 lines, -0 lines 0 comments Download
M ash/system/tray/tray_details_view_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/tray/tray_popup_utils.h View 1 2 3 4 1 chunk +12 lines, -7 lines 0 comments Download
M ash/system/tray/tray_popup_utils.cc View 1 2 3 4 6 7 8 2 chunks +10 lines, -9 lines 0 comments Download
M ash/system/tray_accessibility.h View 1 5 chunks +1 line, -17 lines 0 comments Download
M ash/system/tray_accessibility.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -57 lines 0 comments Download

Messages

Total messages: 50 (40 generated)
mohsen
Please take a look...
3 years, 8 months ago (2017-04-21 04:24:26 UTC) #15
tdanderson
Hi Mohsen, thanks - I'm glad this code is being refactored! I have left a ...
3 years, 8 months ago (2017-04-24 15:43:40 UTC) #18
mohsen
https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc File ash/system/audio/audio_detailed_view.cc (left): https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc#oldcode88 ash/system/audio/audio_detailed_view.cc:88: TriView* header = TrayPopupUtils::CreateDefaultRowView(); On 2017/04/24 at 15:43:39, tdanderson ...
3 years, 8 months ago (2017-04-25 05:10:02 UTC) #27
tdanderson
https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc File ash/system/audio/audio_detailed_view.cc (left): https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc#oldcode88 ash/system/audio/audio_detailed_view.cc:88: TriView* header = TrayPopupUtils::CreateDefaultRowView(); On 2017/04/25 05:10:01, mohsen wrote: ...
3 years, 8 months ago (2017-04-25 14:32:48 UTC) #28
mohsen
https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc File ash/system/audio/audio_detailed_view.cc (left): https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc#oldcode88 ash/system/audio/audio_detailed_view.cc:88: TriView* header = TrayPopupUtils::CreateDefaultRowView(); On 2017/04/25 at 14:32:48, tdanderson ...
3 years, 8 months ago (2017-04-25 19:23:48 UTC) #33
mohsen
+cc fukino@ (FYI, changes in tray_bluetooth.cc)
3 years, 8 months ago (2017-04-25 19:26:12 UTC) #34
tdanderson
lgtm with the comments addressed https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc File ash/system/audio/audio_detailed_view.cc (left): https://codereview.chromium.org/2831023003/diff/60001/ash/system/audio/audio_detailed_view.cc#oldcode88 ash/system/audio/audio_detailed_view.cc:88: TriView* header = TrayPopupUtils::CreateDefaultRowView(); ...
3 years, 8 months ago (2017-04-25 21:00:27 UTC) #35
mohsen
https://codereview.chromium.org/2831023003/diff/100001/ash/system/tray/tray_details_view.h File ash/system/tray/tray_details_view.h (right): https://codereview.chromium.org/2831023003/diff/100001/ash/system/tray/tray_details_view.h#newcode81 ash/system/tray/tray_details_view.h:81: HoverHighlightView* AddScrollListCheckableItem(const gfx::VectorIcon& icon, On 2017/04/25 at 21:00:27, tdanderson ...
3 years, 8 months ago (2017-04-25 21:54:52 UTC) #40
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/2831023003/160001
3 years, 8 months ago (2017-04-25 22:36:26 UTC) #47
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 22:44:16 UTC) #50
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0b6712fcc4a9d0cd07624db4b3fa...

Powered by Google App Engine
This is Rietveld 408576698