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

Issue 260663002: AppListController now responsible for ensuring app list stays centered. (Closed)

Created:
6 years, 7 months ago by Matt Giuca
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, kalyank, sadrul, ben+ash_chromium.org, tfarina
Visibility:
Public.

Description

AppListController now responsible for ensuring app list stays centered. Just a refactor; effectively reverting SVN 266176 and rewriting it so that AppListController re-centers the app list when the screen bounds change (AppListView no longer needs to do this itself). Rationale: This architecture is simpler. On subsequent CLs I was having trouble plumbing more state (specifically, the virtual keyboard state) down into AppListView; this will mean we can do it from AppListController which has easy access to the virtual keyboard. BUG=363928 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267720

Patch Set 1 #

Total comments: 7

Patch Set 2 : Simplify (suggested by varkha). #

Patch Set 3 : Use GetScreenCenter abstraction. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -53 lines) Patch
M ash/wm/app_list_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/app_list_controller.cc View 1 2 4 chunks +17 lines, -5 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 4 chunks +0 lines, -21 lines 0 comments Download
M ui/app_list/views/app_list_view.cc View 6 chunks +1 line, -27 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Matt Giuca
Hey guys, sorry to do this -- you just reviewed the previous CL and now ...
6 years, 7 months ago (2014-04-30 07:44:56 UTC) #1
xiyuan
I like it. LGTM++
6 years, 7 months ago (2014-04-30 16:26:47 UTC) #2
varkha
https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc#newcode174 ash/wm/app_list_controller.cc:174: if (app_list::switches::IsExperimentalAppListPositionEnabled()) { nit: maybe: is_centered_ = app_list::switches::IsExperimentalAppListPositionEnabled(); if ...
6 years, 7 months ago (2014-04-30 16:37:37 UTC) #3
James Cook
LGTM assuming varkha's comments addressed
6 years, 7 months ago (2014-04-30 16:50:05 UTC) #4
tapted
lgtm
6 years, 7 months ago (2014-05-01 00:51:10 UTC) #5
Matt Giuca
https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc#newcode174 ash/wm/app_list_controller.cc:174: if (app_list::switches::IsExperimentalAppListPositionEnabled()) { On 2014/04/30 16:37:38, varkha wrote: > ...
6 years, 7 months ago (2014-05-01 03:54:32 UTC) #6
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-01 03:54:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/260663002/20001
6 years, 7 months ago (2014-05-01 03:55:28 UTC) #8
varkha
https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc#newcode180 ash/wm/app_list_controller.cc:180: Shell::GetScreen()->GetPrimaryDisplay().bounds().CenterPoint(), On 2014/05/01 03:54:32, Matt Giuca wrote: > I ...
6 years, 7 months ago (2014-05-01 03:57:21 UTC) #9
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-01 03:59:41 UTC) #10
Matt Giuca
The CQ bit was unchecked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-01 03:59:58 UTC) #11
Matt Giuca
https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc#newcode180 ash/wm/app_list_controller.cc:180: Shell::GetScreen()->GetPrimaryDisplay().bounds().CenterPoint(), /me hits self over head with hammer. Sorry, ...
6 years, 7 months ago (2014-05-01 04:02:42 UTC) #12
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-01 04:03:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/260663002/40001
6 years, 7 months ago (2014-05-01 04:03:53 UTC) #14
varkha
lgtm. https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc File ash/wm/app_list_controller.cc (right): https://codereview.chromium.org/260663002/diff/1/ash/wm/app_list_controller.cc#newcode180 ash/wm/app_list_controller.cc:180: Shell::GetScreen()->GetPrimaryDisplay().bounds().CenterPoint(), On 2014/05/01 04:02:43, Matt Giuca wrote: > ...
6 years, 7 months ago (2014-05-01 04:04:49 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 05:02:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-01 05:02:32 UTC) #17
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-01 08:24:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/260663002/40001
6 years, 7 months ago (2014-05-01 08:25:02 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 10:20:10 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-01 10:20:11 UTC) #21
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 7 months ago (2014-05-02 00:30:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/260663002/40001
6 years, 7 months ago (2014-05-02 00:31:32 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 01:36:42 UTC) #24
Message was sent while issue was closed.
Change committed as 267720

Powered by Google App Engine
This is Rietveld 408576698