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

Issue 12742005: Added text line limits to collapsed and expanded notifications. (Closed)

Created:
7 years, 9 months ago by dharcourt
Modified:
7 years, 9 months ago
Reviewers:
dewittj
CC:
Jun Mukai, miket_OOO, chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Added text line limits to collapsed and expanded notifications. This is done through a new BoundedLabel views::Label subclass that supports a max_lines value. This class comes with unit tests covering its basic functionality. Also, the Notifications Galore! test app was updated to include test notifications with long titles, long messages, and long items which can be used for manual tests of the line limits. As with the rest of the collapse/expand functionality currently committed, this only applies to the notification center. Notification toasts are currently still always expanded and text line limits have not been tested for them. There are some known issues with incorrect notification card sizes in the notification center after some sequence of create/destroy operations, and these will be addressed in a separate change list. BUG=161098, 168939, 168940 R=dewittj@chromium.org TBR=mukai@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188637

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Rebase #

Total comments: 3

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : Fixed build break on windows. #

Patch Set 7 : Fixed Mac build problem. #

Patch Set 8 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -56 lines) Patch
M chrome/test/data/extensions/api_test/notifications/galore/app/data/27.0.0.0.json View 4 chunks +19 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/api_test/notifications/galore/app/data/27.0.1432.2.json View 4 chunks +19 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/api_test/notifications/galore/app/data/27.0.1433.1.json View 4 chunks +19 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/api_test/notifications/galore/app/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/message_center.gyp View 1 2 3 4 5 6 2 chunks +19 lines, -5 lines 0 comments Download
A ui/message_center/run_all_unittests.cc View 1 2 3 1 chunk +42 lines, -0 lines 3 comments Download
A ui/message_center/views/bounded_label.h View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
A ui/message_center/views/bounded_label.cc View 1 2 3 4 5 1 chunk +157 lines, -0 lines 0 comments Download
A ui/message_center/views/bounded_label_unittest.cc View 1 chunk +224 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view.h View 2 chunks +3 lines, -6 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 1 2 3 4 8 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dharcourt
At last, the limit-texts-to-2-or-7-lines functionality for notification cards in the notification center! PTAL when you ...
7 years, 9 months ago (2013-03-14 07:39:13 UTC) #1
Jun Mukai
https://codereview.chromium.org/12742005/diff/1/ui/message_center/message_center.gyp File ui/message_center/message_center.gyp (right): https://codereview.chromium.org/12742005/diff/1/ui/message_center/message_center.gyp#newcode85 ui/message_center/message_center.gyp:85: '../views/run_all_unittests.cc', I don't think that's a good idea. Please ...
7 years, 9 months ago (2013-03-14 09:26:47 UTC) #2
dharcourt
Jun, I've addressed your review comments, PTAL, and thanks for the review. Scott, could you ...
7 years, 9 months ago (2013-03-14 20:21:57 UTC) #3
sky
The gyp dependency seems bizarre to me. In particular it seems like the run_all_unittests should ...
7 years, 9 months ago (2013-03-14 20:39:05 UTC) #4
Mark Mentovai
https://codereview.chromium.org/12742005/diff/11003/ui/message_center/message_center.gyp File ui/message_center/message_center.gyp (right): https://codereview.chromium.org/12742005/diff/11003/ui/message_center/message_center.gyp#newcode88 ui/message_center/message_center.gyp:88: '../views/views.gyp:run_all_unittests', No. This says “you need to RUN the ...
7 years, 9 months ago (2013-03-14 20:46:17 UTC) #5
Mark Mentovai
https://codereview.chromium.org/12742005/diff/11003/ui/views/views.gyp File ui/views/views.gyp (right): https://codereview.chromium.org/12742005/diff/11003/ui/views/views.gyp#newcode631 ui/views/views.gyp:631: 'target_name': 'run_all_unittests', Oh, this is a target here? OK, ...
7 years, 9 months ago (2013-03-14 20:48:29 UTC) #6
dharcourt
On 2013/03/14 20:48:29, Mark Mentovai wrote: > https://codereview.chromium.org/12742005/diff/11003/ui/views/views.gyp > File ui/views/views.gyp (right): > > https://codereview.chromium.org/12742005/diff/11003/ui/views/views.gyp#newcode631 ...
7 years, 9 months ago (2013-03-14 21:09:18 UTC) #7
dharcourt
Hi Jun, Could you take a look again? I think I addressed the issues you ...
7 years, 9 months ago (2013-03-15 14:59:46 UTC) #8
dharcourt
Actually, I need to land this before I can update the look of old-style notifications ...
7 years, 9 months ago (2013-03-15 15:19:35 UTC) #9
dewittj
On 2013/03/15 15:19:35, dharcourt wrote: > Actually, I need to land this before I can ...
7 years, 9 months ago (2013-03-15 17:53:30 UTC) #10
dharcourt
On 2013/03/15 17:53:30, dewittj wrote: > On 2013/03/15 15:19:35, dharcourt wrote: > > Actually, I ...
7 years, 9 months ago (2013-03-15 18:16:01 UTC) #11
dewittj
lgtm I'd love to see a comment about the font/compositortest relationship, too. https://codereview.chromium.org/12742005/diff/21001/ui/message_center/views/bounded_label.h File ui/message_center/views/bounded_label.h ...
7 years, 9 months ago (2013-03-15 19:35:16 UTC) #12
dharcourt
On 2013/03/15 19:35:16, dewittj wrote: > lgtm > > I'd love to see a comment ...
7 years, 9 months ago (2013-03-15 21:17:52 UTC) #13
dharcourt
https://codereview.chromium.org/12742005/diff/21001/ui/message_center/views/bounded_label.h File ui/message_center/views/bounded_label.h (right): https://codereview.chromium.org/12742005/diff/21001/ui/message_center/views/bounded_label.h#newcode49 ui/message_center/views/bounded_label.h:49: friend class BoundedLabelTest; On 2013/03/15 19:35:16, dewittj wrote: > ...
7 years, 9 months ago (2013-03-15 21:18:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12742005/37001
7 years, 9 months ago (2013-03-15 21:18:45 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromedriver2_unittests, components_unittests, ...
7 years, 9 months ago (2013-03-15 21:29:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12742005/49001
7 years, 9 months ago (2013-03-15 23:13:55 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=36086
7 years, 9 months ago (2013-03-16 02:56:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/12742005/103001
7 years, 9 months ago (2013-03-17 11:25:56 UTC) #19
commit-bot: I haz the power
Change committed as 188637
7 years, 9 months ago (2013-03-17 12:56:34 UTC) #20
tfarina
https://chromiumcodereview.appspot.com/12742005/diff/103001/ui/message_center/run_all_unittests.cc File ui/message_center/run_all_unittests.cc (right): https://chromiumcodereview.appspot.com/12742005/diff/103001/ui/message_center/run_all_unittests.cc#newcode1 ui/message_center/run_all_unittests.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-17 14:19:12 UTC) #21
dharcourt
7 years, 9 months ago (2013-03-18 07:01:51 UTC) #22
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12742005/diff/103001/ui/message_center...
File ui/message_center/run_all_unittests.cc (right):

https://chromiumcodereview.appspot.com/12742005/diff/103001/ui/message_center...
ui/message_center/run_all_unittests.cc:1: // Copyright (c) 2013 The Chromium
Authors. All rights reserved.
On 2013/03/17 14:19:12, tfarina wrote:
> no (c)

Thanks for the suggestions. Done & done, but in a separate change list
(http://crrev.com/12880004), because this one has sailed :-)... and been
reverted :-(...

Powered by Google App Engine
This is Rietveld 408576698