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

Issue 2942143002: Add progress notification support to new-style notification. (Closed)

Created:
3 years, 6 months ago by tetsui
Modified:
3 years, 6 months ago
Reviewers:
yoshiki, sadrul, fukino
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add progress notification support to new-style notification. CompactTitleMessageView is added to follow Android's behavior showing notification title and message in single line when it has progress bar. Also, added constructor option allow_round_corner to views::ProgressBar so that progress bar style follows Material Design mock. BUG=726245 TEST=manually tested by progress notification with * short title, short message * short title, long message * long title, long message Review-Url: https://codereview.chromium.org/2942143002 Cr-Commit-Position: refs/heads/master@{#481439} Committed: https://chromium.googlesource.com/chromium/src/+/1046503e7e4f933250371d4af0742a463e6b4f77

Patch Set 1 #

Patch Set 2 : Not to round progress bar corner. #

Patch Set 3 : Implement appropriate eliding. #

Total comments: 7

Patch Set 4 : Resolve review comments. #

Total comments: 2

Patch Set 5 : Resolve review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -13 lines) Patch
M ui/message_center/views/notification_view_md.h View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view_md.cc View 1 2 3 4 9 chunks +132 lines, -3 lines 0 comments Download
M ui/views/controls/progress_bar.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/controls/progress_bar.cc View 1 6 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
tetsui
PTAL. Thanks!
3 years, 6 months ago (2017-06-16 06:19:25 UTC) #4
fukino
https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc#newcode184 ui/message_center/views/notification_view_md.cc:184: // Elides title and message. The behavior is based ...
3 years, 6 months ago (2017-06-19 04:44:52 UTC) #13
tetsui
On 2017/06/19 04:44:52, fukino wrote: > https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc > File ui/message_center/views/notification_view_md.cc (right): > > https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc#newcode184 > ...
3 years, 6 months ago (2017-06-20 01:49:26 UTC) #14
yoshiki
lgtm wih nit https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2942143002/diff/40001/ui/message_center/views/notification_view_md.cc#newcode426 ui/message_center/views/notification_view_md.cc:426: delete title_view_; nit: left_content_->RemoveChildView(title_view_); should be ...
3 years, 6 months ago (2017-06-21 00:39:59 UTC) #15
tetsui
Thanks! I got an advice from Sebastien that the implementation is correct in general but ...
3 years, 6 months ago (2017-06-21 01:52:59 UTC) #16
tetsui
sadrul@: PTAL for OWNERS review ui/views/controls. Thanks!
3 years, 6 months ago (2017-06-21 04:06:21 UTC) #20
yoshiki
btw, did you check the layout in RTL languages?
3 years, 6 months ago (2017-06-21 07:32:30 UTC) #23
sadrul
lgtm
3 years, 6 months ago (2017-06-21 20:10:32 UTC) #24
fukino
I'm sorry for a late response. lgtm with a nit. https://codereview.chromium.org/2942143002/diff/60001/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2942143002/diff/60001/ui/message_center/views/notification_view_md.cc#newcode247 ...
3 years, 6 months ago (2017-06-22 00:27:10 UTC) #25
tetsui
yoshiki@: Thanks! I tested it with Hebrew and it worked properly. sadrul@: Thanks! fukino@: Thanks! ...
3 years, 6 months ago (2017-06-22 02:09:23 UTC) #26
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/2942143002/80001
3 years, 6 months ago (2017-06-22 02:09:47 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/101248)
3 years, 6 months ago (2017-06-22 03:05:02 UTC) #31
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/2942143002/80001
3 years, 6 months ago (2017-06-22 03:25:25 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 04:51:22 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1046503e7e4f933250371d4af074...

Powered by Google App Engine
This is Rietveld 408576698