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

Issue 1782793002: Ash: Implement Toasts (Closed)

Created:
4 years, 9 months ago by yoshiki
Modified:
4 years, 9 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ash: Implement Toasts This patch adds the implementation of toast. Currently this is not used from anywhere. The client code will be added in separated patch. BUG=b/25797993 Committed: https://crrev.com/32f516395c1d165053be9b93ef9d2cbdfd94685a Cr-Commit-Position: refs/heads/master@{#383003}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : Addressed comments #

Total comments: 26

Patch Set 4 : Fix build failure and misc #

Patch Set 5 : Addressed comments #

Patch Set 6 : Add comment #

Total comments: 12

Patch Set 7 : Addressed Comments and Added Tests #

Total comments: 20

Patch Set 8 : Addressed the comment and skipped failed tests on win #

Patch Set 9 : Addressed comments and rebased #

Total comments: 2

Patch Set 10 : addressed the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+745 lines, --1 lines) Patch
M ash/ash.gyp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
A + ash/system/toast/OWNER View 0 chunks +-1 lines, --1 lines 0 comments Download
A ash/system/toast/toast_manager.h View 1 2 3 4 5 6 7 1 chunk +53 lines, -0 lines 0 comments Download
A ash/system/toast/toast_manager.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A ash/system/toast/toast_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +264 lines, -0 lines 0 comments Download
A ash/system/toast/toast_overlay.h View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
A ash/system/toast/toast_overlay.cc View 1 2 3 4 5 6 7 8 9 1 chunk +275 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
yoshiki
Oshima-san, PTAL. Thanks.
4 years, 9 months ago (2016-03-10 08:19:09 UTC) #11
oshima
can you use ui/wm/core/window_animations.h instead of implementing your own? https://codereview.chromium.org/1782793002/diff/120001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1782793002/diff/120001/ash/system/toast/toast_manager.cc#newcode62 ash/system/toast/toast_manager.cc:62: ...
4 years, 9 months ago (2016-03-11 02:06:29 UTC) #12
yoshiki
Oshima-san, PTAL. Thanks. https://codereview.chromium.org/1782793002/diff/120001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1782793002/diff/120001/ash/system/toast/toast_manager.cc#newcode62 ash/system/toast/toast_manager.cc:62: base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( On 2016/03/11 02:06:29, oshima wrote: ...
4 years, 9 months ago (2016-03-11 08:40:56 UTC) #16
oshima
I'll check the ownership stuff later. https://codereview.chromium.org/1782793002/diff/200001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/1782793002/diff/200001/ash/shell.h#newcode586 ash/shell.h:586: ToastManager* toast_manager() const ...
4 years, 9 months ago (2016-03-11 09:40:25 UTC) #17
yoshiki
Oshima-san, PTAL. https://codereview.chromium.org/1782793002/diff/200001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/1782793002/diff/200001/ash/shell.h#newcode586 ash/shell.h:586: ToastManager* toast_manager() const { return toast_manager_.get(); } ...
4 years, 9 months ago (2016-03-11 14:30:35 UTC) #18
oshima
looks good. Can you update the bounds computation and test it using --ash-host-window-bounds=1000x500,0+600-100x500 --ash-enable-unified-desktop? https://codereview.chromium.org/1782793002/diff/280001/ash/shell.cc ...
4 years, 9 months ago (2016-03-15 09:07:33 UTC) #20
yoshiki
Oshima-san, PTAL. Thanks. https://codereview.chromium.org/1782793002/diff/280001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/1782793002/diff/280001/ash/shell.cc#newcode765 ash/shell.cc:765: toast_manager_.reset(); On 2016/03/15 09:07:32, oshima wrote: ...
4 years, 9 months ago (2016-03-15 15:04:22 UTC) #21
oshima
very close thank you for adding test. can you look into win bot failure? https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_manager.cc ...
4 years, 9 months ago (2016-03-15 19:03:20 UTC) #22
yoshiki
> thank you for adding test. can you look into win bot failure? The cause ...
4 years, 9 months ago (2016-03-16 15:56:28 UTC) #23
oshima
On 2016/03/16 15:56:28, yoshiki wrote: > > thank you for adding test. can you look ...
4 years, 9 months ago (2016-03-16 18:00:02 UTC) #24
yoshiki
On 2016/03/16 18:00:02, oshima wrote: > On 2016/03/16 15:56:28, yoshiki wrote: > > > thank ...
4 years, 9 months ago (2016-03-17 06:38:07 UTC) #26
yoshiki
https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_manager.cc File ash/system/toast/toast_manager.cc (right): https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_manager.cc#newcode53 ash/system/toast/toast_manager.cc:53: base::Unretained(this), // |this| is never destroyed. On 2016/03/15 19:03:19, ...
4 years, 9 months ago (2016-03-17 07:59:11 UTC) #27
oshima
https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_overlay.cc File ash/system/toast/toast_overlay.cc (right): https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_overlay.cc#newcode227 ash/system/toast/toast_overlay.cc:227: gfx::Rect work_area_bounds = shelf_layout_manager->user_work_area_bounds(); On 2016/03/17 07:59:11, yoshiki wrote: ...
4 years, 9 months ago (2016-03-17 17:50:06 UTC) #28
yoshiki
Oshima-san, PTAL. Thanks. https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_overlay.cc File ash/system/toast/toast_overlay.cc (right): https://codereview.chromium.org/1782793002/diff/300001/ash/system/toast/toast_overlay.cc#newcode227 ash/system/toast/toast_overlay.cc:227: gfx::Rect work_area_bounds = shelf_layout_manager->user_work_area_bounds(); On 2016/03/17 ...
4 years, 9 months ago (2016-03-17 19:43:48 UTC) #29
oshima
lgmt with one nit. https://codereview.chromium.org/1782793002/diff/360001/ash/system/toast/toast_overlay.cc File ash/system/toast/toast_overlay.cc (right): https://codereview.chromium.org/1782793002/diff/360001/ash/system/toast/toast_overlay.cc#newcode240 ash/system/toast/toast_overlay.cc:240: bounds.set_height(widget_size_.height()); nit: you don't need ...
4 years, 9 months ago (2016-03-17 21:47:22 UTC) #30
oshima
On 2016/03/17 21:47:22, oshima wrote: > lgmt with one nit. > > https://codereview.chromium.org/1782793002/diff/360001/ash/system/toast/toast_overlay.cc > File ...
4 years, 9 months ago (2016-03-17 21:47:43 UTC) #31
yoshiki
https://codereview.chromium.org/1782793002/diff/360001/ash/system/toast/toast_overlay.cc File ash/system/toast/toast_overlay.cc (right): https://codereview.chromium.org/1782793002/diff/360001/ash/system/toast/toast_overlay.cc#newcode240 ash/system/toast/toast_overlay.cc:240: bounds.set_height(widget_size_.height()); On 2016/03/17 21:47:22, oshima wrote: > nit: you ...
4 years, 9 months ago (2016-03-24 00:49:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1782793002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1782793002/380001
4 years, 9 months ago (2016-03-24 00:52:22 UTC) #35
commit-bot: I haz the power
Committed patchset #10 (id:380001)
4 years, 9 months ago (2016-03-24 01:24:54 UTC) #37
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 01:26:18 UTC) #39
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/32f516395c1d165053be9b93ef9d2cbdfd94685a
Cr-Commit-Position: refs/heads/master@{#383003}

Powered by Google App Engine
This is Rietveld 408576698