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

Issue 397343003: Introduce centered view and bottom view for home card. (Closed)

Created:
6 years, 5 months ago by Jun Mukai
Modified:
6 years, 5 months ago
Reviewers:
oshima, sadrul, xiyuan
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Project:
chromium
Visibility:
Public.

Description

Introduce centered view and bottom view for home card. We use experimental app-list view for centered layout, and then use athena's own view for bottom view. BUG=387227 R=oshima@chromium.org, sadrul@chromium.org, xiyuan@chromium.org TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284275

Patch Set 1 #

Patch Set 2 : polish #

Total comments: 15

Patch Set 3 : fix #

Total comments: 3

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -108 lines) Patch
M athena/athena.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A athena/home/bottom_home_view.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A athena/home/bottom_home_view.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M athena/home/home_card_impl.cc View 1 2 3 4 11 chunks +132 lines, -88 lines 0 comments Download
M athena/home/minimized_home.h View 2 chunks +3 lines, -8 lines 0 comments Download
M athena/home/minimized_home.cc View 1 2 3 4 2 chunks +4 lines, -11 lines 0 comments Download
M athena/main/athena_main.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/app_list/views/tile_item_view.h View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Jun Mukai
xiyuan -- I added you for APP_LIST_EXPORT of app_list::TileItemView. I don't think we should use ...
6 years, 5 months ago (2014-07-17 19:57:32 UTC) #1
xiyuan
ui/app_list/views/tile_item_view.h LGTM
6 years, 5 months ago (2014-07-17 20:03:01 UTC) #2
oshima
https://codereview.chromium.org/397343003/diff/20001/athena/home/bottom_home_view.cc File athena/home/bottom_home_view.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/bottom_home_view.cc#newcode20 athena/home/bottom_home_view.cc:20: set_background(views::Background::CreateSolidBackground(255, 255, 255)); SkColor_WHITE? https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc#newcode268 ...
6 years, 5 months ago (2014-07-17 21:47:33 UTC) #3
sadrul
https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc#newcode188 athena/home/home_card_impl.cc:188: return kint32max; Looks like this is deprecated in favour ...
6 years, 5 months ago (2014-07-17 22:01:39 UTC) #4
Jun Mukai
https://codereview.chromium.org/397343003/diff/20001/athena/home/bottom_home_view.cc File athena/home/bottom_home_view.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/bottom_home_view.cc#newcode20 athena/home/bottom_home_view.cc:20: set_background(views::Background::CreateSolidBackground(255, 255, 255)); On 2014/07/17 21:47:33, oshima wrote: > ...
6 years, 5 months ago (2014-07-17 22:03:44 UTC) #5
oshima
https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_impl.cc#newcode289 athena/home/home_card_impl.cc:289: original_state_ = VISIBLE_BOTTOM; you can record "previous state" in ...
6 years, 5 months ago (2014-07-17 22:11:59 UTC) #6
Jun Mukai
https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc#newcode188 athena/home/home_card_impl.cc:188: return kint32max; On 2014/07/17 22:01:39, sadrul wrote: > Looks ...
6 years, 5 months ago (2014-07-17 22:12:56 UTC) #7
sadrul
LGTM https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc#newcode310 athena/home/home_card_impl.cc:310: app_list::switches::kEnableExperimentalAppList); On 2014/07/17 22:01:38, sadrul wrote: > Should ...
6 years, 5 months ago (2014-07-18 15:32:37 UTC) #8
Jun Mukai
https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/20001/athena/home/home_card_impl.cc#newcode310 athena/home/home_card_impl.cc:310: app_list::switches::kEnableExperimentalAppList); On 2014/07/18 15:32:36, sadrul wrote: > On 2014/07/17 ...
6 years, 5 months ago (2014-07-18 20:27:40 UTC) #9
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 5 months ago (2014-07-18 23:01:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/397343003/80001
6 years, 5 months ago (2014-07-18 23:03:31 UTC) #11
commit-bot: I haz the power
Change committed as 284275
6 years, 5 months ago (2014-07-19 01:52:44 UTC) #12
oshima
https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_impl.cc File athena/home/home_card_impl.cc (right): https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_impl.cc#newcode289 athena/home/home_card_impl.cc:289: original_state_ = VISIBLE_BOTTOM; On 2014/07/17 22:11:59, oshima (OOO) until ...
6 years, 5 months ago (2014-07-19 04:00:13 UTC) #13
Jun Mukai
6 years, 5 months ago (2014-07-21 17:30:52 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_im...
File athena/home/home_card_impl.cc (right):

https://codereview.chromium.org/397343003/diff/40001/athena/home/home_card_im...
athena/home/home_card_impl.cc:289: original_state_ = VISIBLE_BOTTOM;
On 2014/07/19 04:00:13, oshima (OOO) until July 21) wrote:
> On 2014/07/17 22:11:59, oshima (OOO) until July 21) wrote:
> > you can record "previous state" in SetState, and you shouldn't have to do
> this,
> > i think.
> 
> you probably missed this comment.

Oops, sorry.
Well, however, I don't think keeping 'previous state' at SetState doesn't work,
because SetState is called in various situation.

For example:
- in MINIMIZED state
- the user press Ctrl-L, state switch to CENTERED
- focus on the search box, the virtual keyboard appears
- close the virtual keyboard
In this situation, we should NOT switch back to MINIMIZED.

original_state_ is, as I added the comment, actually a temporary value only for
the virtual keyboard action, so it needs to be recorded here.

Powered by Google App Engine
This is Rietveld 408576698