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 140323010: Ash:Shelf - Cleanup of Alternate Shelf (part 1) (Closed)

Created:
6 years, 11 months ago by Harry McCleave
Modified:
6 years, 9 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Part 1) of cleaning up the code related to the shelf layout, specifically removing all instances of branching related to the 'alternate shelf layout' as this is now the only option. Removed the about:flags entry relating to alternate shelf layout. A patch will follow to simplify the remaining layout code as it is still a bit of a spaghetti like mess. R=jamescook@chromium.org, skuhne@chromium.org TBR=miket@chromium.org BUG=338429 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254301

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase + remove AlternateShelf from variable names #

Total comments: 35

Patch Set 3 : Suggested changes, Deleted some png's moved a variable to shelf_constants #

Patch Set 4 : ButtonSize and ButtonSpacing moved to shelf_constants #

Total comments: 3

Patch Set 5 : rebase #

Patch Set 6 : #

Patch Set 7 : rebase pt 2 #

Patch Set 8 : . #

Patch Set 9 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -1411 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -4 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -13 lines 0 comments Download
M ash/dip_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -39 lines 0 comments Download
M ash/display/display_controller_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -94 lines 0 comments Download
M ash/resources/ash_resources.grd View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_bottom_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_bottom_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_bottom_running.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_left_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_left_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_left_running.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_right_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_right_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_100_percent/common/launcher/launcher_underline_right_running.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_bottom_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_bottom_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_bottom_running.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_left_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_left_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_left_running.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_right_active.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_right_hover.png View 1 2 Binary file 0 comments Download
D ash/resources/default_200_percent/common/launcher/launcher_underline_right_running.png View 1 2 Binary file 0 comments Download
M ash/shelf/app_list_button.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -5 lines 0 comments Download
M ash/shelf/app_list_button.cc View 1 2 3 4 5 6 7 4 chunks +95 lines, -55 lines 0 comments Download
M ash/shelf/overflow_bubble_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/overflow_button.cc View 1 chunk +27 lines, -48 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 5 6 chunks +9 lines, -43 lines 0 comments Download
M ash/shelf/shelf_constants.h View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M ash/shelf/shelf_constants.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 chunks +15 lines, -46 lines 0 comments Download
M ash/shelf/shelf_model.cc View 1 2 3 4 5 2 chunks +19 lines, -40 lines 0 comments Download
M ash/shelf/shelf_model_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -113 lines 0 comments Download
M ash/shelf/shelf_navigator_unittest.cc View 1 2 3 4 5 5 chunks +0 lines, -65 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 2 3 4 5 2 chunks +0 lines, -11 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 19 chunks +22 lines, -152 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 9 chunks +3 lines, -191 lines 0 comments Download
M ash/system/status_area_widget_delegate.cc View 1 2 3 4 5 2 chunks +0 lines, -13 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 3 chunks +5 lines, -9 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 5 10 chunks +42 lines, -142 lines 0 comments Download
M ash/system/tray/tray_constants.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M ash/system/tray/tray_constants.cc View 1 2 chunks +8 lines, -12 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 5 4 chunks +12 lines, -25 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -8 lines 0 comments Download
M ash/test/shelf_view_test_api.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ash/wm/app_list_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 5 3 chunks +0 lines, -214 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Harry McCleave
ptal https://codereview.chromium.org/140323010/diff/1/ash/system/tray/tray_background_view.cc File ash/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/140323010/diff/1/ash/system/tray/tray_background_view.cc#newcode379 ash/system/tray/tray_background_view.cc:379: background_->set_alpha(hide_background_animator_.alpha() + Should I remove this code now ...
6 years, 11 months ago (2014-01-23 02:06:16 UTC) #1
James Cook
It's so nice to see this getting cleaned up! A few questions. https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.h File ash/shelf/app_list_button.h ...
6 years, 11 months ago (2014-01-23 18:02:34 UTC) #2
Mr4D (OOO till 08-26)
Yeah! Less code! Great! https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc#newcode7 ash/shelf/app_list_button.cc:7: #include "ash/ash_constants.h" Same here as ...
6 years, 11 months ago (2014-01-23 19:25:07 UTC) #3
Harry McCleave
https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc#newcode7 ash/shelf/app_list_button.cc:7: #include "ash/ash_constants.h" On 2014/01/23 19:25:08, Mr4D wrote: > Same ...
6 years, 11 months ago (2014-01-24 22:48:47 UTC) #4
Harry McCleave
On 2014/01/24 22:48:47, Harry McCleave wrote: > https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc > File ash/shelf/app_list_button.cc (right): > > https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.cc#newcode7 ...
6 years, 11 months ago (2014-01-24 23:14:58 UTC) #5
James Cook
LGTM with a couple optional comments https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.h File ash/shelf/app_list_button.h (right): https://codereview.chromium.org/140323010/diff/30001/ash/shelf/app_list_button.h#newcode19 ash/shelf/app_list_button.h:19: class AppListButton : ...
6 years, 11 months ago (2014-01-25 00:12:14 UTC) #6
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/140323010/diff/30001/ash/system/tray/system_tray.cc File ash/system/tray/system_tray.cc (right): https://codereview.chromium.org/140323010/diff/30001/ash/system/tray/system_tray.cc#newcode489 ash/system/tray/system_tray.cc:489: init_params.first_item_has_no_margin = true; Hmm. The Bubble code gets ...
6 years, 11 months ago (2014-01-25 01:37:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/140323010/690001
6 years, 11 months ago (2014-01-28 01:08:06 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=252543
6 years, 11 months ago (2014-01-28 02:01:04 UTC) #9
James Cook
On 2014/01/28 02:01:04, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 10 months ago (2014-02-25 20:36:56 UTC) #10
Harry McCleave
The CQ bit was checked by harrym@chromium.org
6 years, 9 months ago (2014-02-28 21:22:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/140323010/720055
6 years, 9 months ago (2014-02-28 21:23:31 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 21:41:52 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-02-28 21:41:52 UTC) #14
Harry McCleave
The CQ bit was checked by harrym@chromium.org
6 years, 9 months ago (2014-02-28 23:40:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/140323010/740001
6 years, 9 months ago (2014-02-28 23:41:45 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 23:42:01 UTC) #17
commit-bot: I haz the power
Failed to apply patch for ash/system/web_notification/web_notification_tray.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-02-28 23:42:02 UTC) #18
Harry McCleave
The CQ bit was checked by harrym@chromium.org
6 years, 9 months ago (2014-03-01 00:10:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harrym@chromium.org/140323010/750001
6 years, 9 months ago (2014-03-01 00:13:34 UTC) #20
Harry McCleave
The CQ bit was unchecked by harrym@chromium.org
6 years, 9 months ago (2014-03-01 00:46:43 UTC) #21
Harry McCleave
Committed patchset #9 manually as r254301 (presubmit successful).
6 years, 9 months ago (2014-03-01 00:47:36 UTC) #22
dgrogan
A revert of this CL has been created in https://codereview.chromium.org/185143002/ by dgrogan@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-01 01:02:10 UTC) #23
Peter Kasting
This broke the Blink compile too, and looking at the try runs, they show Windows ...
6 years, 9 months ago (2014-03-01 01:03:49 UTC) #24
vmiura
Please look at the Try results, and let CQ do it's work. Both would prevent ...
6 years, 9 months ago (2014-03-01 01:38:23 UTC) #25
Harry McCleave
6 years, 9 months ago (2014-03-01 01:44:54 UTC) #26
Message was sent while issue was closed.
On 2014/03/01 01:38:23, vmiura wrote:
> Please look at the Try results, and let CQ do it's work.
> Both would prevent this build break.

Very sorry everyone, local changes clearly did not make this patch and I was too
hasty to submit /w local build working and couple of quick try bots that passed,
I will split out the binary files to another patch to proceed with a direct CQ
submission and will be more patient in the future.

Powered by Google App Engine
This is Rietveld 408576698