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

Issue 2807693002: Make LogoutButtonTray a regular View (Closed)

Created:
3 years, 8 months ago by mohsen
Modified:
3 years, 8 months ago
Reviewers:
James Cook
CC:
chromium-reviews, dfaden+virtualkb_google.com, groby+virtualkb_chromium.org, kalyank, nona+watch_chromium.org, oka+watchvk_chromium.org, oshima+watch_chromium.org, sadrul, shuchen+watch_chromium.org, stevenjb+watch_chromium.org, yhanada+watchvk_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make LogoutButtonTray a regular View Currently, LogoutButtonTray is a TrayBackgroundView, however, it does not use most of its functionality (e.g., drawing and animating background, handling bubbles, drawing separators and focus rings). This CL makes LogoutButtonTray directly inherit from View and just adds the padding using TrayContainer class. This CL also removes shelf alignment caching in TrayBackgroundView, TrayContainer, and StatusAreaWidgetDelegate and cleaned up some related shelf alignment code. BUG=698134, 635963 TEST=StatusAreaWidgetTest.Basic in ash_unittests Review-Url: https://codereview.chromium.org/2807693002 Cr-Commit-Position: refs/heads/master@{#465918} Committed: https://chromium.googlesource.com/chromium/src/+/e6704a0c2b29585fab489399ba0396104cff7d85

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Rebased #

Total comments: 16

Patch Set 4 : Addressed review comments #

Patch Set 5 : Rebased #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -382 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 chunks +11 lines, -10 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ash/system/date/tray_system_info.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/date/tray_system_info.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/network/tray_vpn.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/system/network/tray_vpn.cc View 1 2 3 4 3 chunks +8 lines, -18 lines 0 comments Download
M ash/system/overview/overview_button_tray.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 3 4 3 chunks +9 lines, -20 lines 0 comments Download
M ash/system/palette/palette_tray.h View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M ash/system/palette/palette_tray.cc View 1 2 3 4 3 chunks +2 lines, -8 lines 0 comments Download
M ash/system/session/logout_button_tray.h View 1 2 1 chunk +18 lines, -18 lines 0 comments Download
M ash/system/session/logout_button_tray.cc View 1 2 3 4 5 3 chunks +38 lines, -57 lines 0 comments Download
M ash/system/status_area_widget.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/status_area_widget.cc View 1 2 3 4 5 chunks +11 lines, -14 lines 0 comments Download
M ash/system/status_area_widget_delegate.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M ash/system/status_area_widget_delegate.cc View 1 2 3 4 5 4 chunks +6 lines, -5 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 chunks +8 lines, -14 lines 0 comments Download
M ash/system/tray/system_tray_item.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray_item.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 1 2 5 chunks +8 lines, -45 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 5 12 chunks +21 lines, -96 lines 0 comments Download
A ash/system/tray/tray_container.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A ash/system/tray/tray_container.cc View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
M ash/system/tray/tray_item_view.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/system/user/tray_user.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ash/system/virtual_keyboard/virtual_keyboard_tray.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M ash/system/virtual_keyboard/virtual_keyboard_tray.cc View 1 2 4 chunks +9 lines, -19 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 7 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 39 (31 generated)
mohsen
PTAL (Let's try this instead of crrev/2795363002)
3 years, 8 months ago (2017-04-13 18:14:05 UTC) #15
James Cook
LGTM assuming shelf alignment still works OK if you log in with a non-bottom alignment. ...
3 years, 8 months ago (2017-04-17 16:54:35 UTC) #16
mohsen
https://codereview.chromium.org/2807693002/diff/40001/ash/system/palette/palette_tray.cc File ash/system/palette/palette_tray.cc (right): https://codereview.chromium.org/2807693002/diff/40001/ash/system/palette/palette_tray.cc#newcode25 ash/system/palette/palette_tray.cc:25: #include "ash/system/tray/tray_container.h" On 2017/04/17 at 16:54:35, James Cook wrote: ...
3 years, 8 months ago (2017-04-19 22:59:08 UTC) #21
James Cook
LGTM! Thanks for taking care of all the shelf alignment caching.
3 years, 8 months ago (2017-04-19 23:17:23 UTC) #24
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/2807693002/80001
3 years, 8 months ago (2017-04-20 04:57:20 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/416083)
3 years, 8 months ago (2017-04-20 05:02:58 UTC) #33
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/2807693002/100001
3 years, 8 months ago (2017-04-20 05:30:36 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 06:30:37 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e6704a0c2b29585fab489399ba03...

Powered by Google App Engine
This is Rietveld 408576698