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

Issue 454173002: Fixed BubbleBorder sizing problems & added unit tests. (Closed)

Created:
6 years, 4 months ago by bruthig
Modified:
5 years, 8 months ago
Reviewers:
msw, jennyz
CC:
chromium-reviews, msw+watch_chromium.org, alicet1, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixed BubbleBorder sizing problems & added unit tests. BUG=395622 TEST=automated Committed: https://crrev.com/8bbc59b53df13d6e88cb4f97ced210324b745356 Cr-Commit-Position: refs/heads/master@{#292145}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Combined test fixtures and rewrote tests to be more easily maintained. #

Total comments: 22

Patch Set 3 : Reworked BubbleBorderTests to be data driven. #

Total comments: 48

Patch Set 4 : Simplified BubbleBorderTests. #

Total comments: 9

Patch Set 5 : Reverted BubbleBorderTest.GetBoundsOriginTest. #

Total comments: 8

Patch Set 6 : Minor nit fixes. #

Total comments: 2

Patch Set 7 : Merge with tot. #

Patch Set 8 : Replaced kMidAnchor? with kAnchor.CenterPoint()?(). #

Patch Set 9 : Fixed construction order of the TrayBubbleView/TrayBubbleWrapper in WebNotificationBubbleWrapper co… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -69 lines) Patch
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 1 comment Download
M ui/views/bubble/bubble_border.h View 1 2 3 2 chunks +39 lines, -3 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 5 6 6 chunks +9 lines, -31 lines 0 comments Download
M ui/views/bubble/bubble_border_unittest.cc View 1 2 3 4 5 6 7 2 chunks +208 lines, -33 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
bruthig
msw@ can you please review this :)
6 years, 4 months ago (2014-08-08 21:14:00 UTC) #1
msw
You can replace all the TEST= lines with TEST=automated. https://codereview.chromium.org/454173002/diff/1/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/454173002/diff/1/ui/views/bubble/bubble_border.cc#newcode281 ui/views/bubble/bubble_border.cc:281: ...
6 years, 4 months ago (2014-08-11 22:26:33 UTC) #2
bruthig
msw@, can you take another look :) https://chromiumcodereview.appspot.com/454173002/diff/1/ui/views/bubble/bubble_border_unittest.cc File ui/views/bubble/bubble_border_unittest.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/1/ui/views/bubble/bubble_border_unittest.cc#newcode206 ui/views/bubble/bubble_border_unittest.cc:206: class BubbleBorderGetBoundsSizeTest ...
6 years, 4 months ago (2014-08-19 19:02:13 UTC) #3
msw
I truly appreciate your help with this fix and your rigorous testing. Unfortunately, I have ...
6 years, 4 months ago (2014-08-19 21:35:40 UTC) #4
bruthig
Responded to some comments, will wait for some agreement on approach before fixing all comments. ...
6 years, 4 months ago (2014-08-20 15:01:28 UTC) #5
msw
Thanks again for working on this testing. https://chromiumcodereview.appspot.com/454173002/diff/20001/ui/views/bubble/bubble_border.h File ui/views/bubble/bubble_border.h (right): https://chromiumcodereview.appspot.com/454173002/diff/20001/ui/views/bubble/bubble_border.h#newcode161 ui/views/bubble/bubble_border.h:161: // Get ...
6 years, 4 months ago (2014-08-20 20:41:02 UTC) #6
bruthig
msw@ Tests have been reworked can you take another look :) https://chromiumcodereview.appspot.com/454173002/diff/20001/ui/views/bubble/bubble_border.h File ui/views/bubble/bubble_border.h (right): ...
6 years, 4 months ago (2014-08-22 19:45:05 UTC) #7
msw
https://chromiumcodereview.appspot.com/454173002/diff/40001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/40001/ui/views/bubble/bubble_border.cc#newcode10 ui/views/bubble/bubble_border.cc:10: #include "base/memory/scoped_ptr.h" nit: remove this it should be added ...
6 years, 4 months ago (2014-08-22 20:54:46 UTC) #8
bruthig
msw@, I addressed most comments, a little unsure about the simplification for the BubbleBorderTest.GetBoundsOriginTest. Please ...
6 years, 4 months ago (2014-08-22 22:55:04 UTC) #9
msw
https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc#newcode338 ui/views/bubble/bubble_border.cc:338: return images_; nit: indent only 2 spaces. https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc#newcode341 ui/views/bubble/bubble_border.cc:341: ...
6 years, 4 months ago (2014-08-23 00:29:12 UTC) #10
bruthig
Just looking for clarification on one comment. Stay tuned for other fixes. https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc ...
6 years, 4 months ago (2014-08-23 00:39:45 UTC) #11
msw
https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc#newcode341 ui/views/bubble/bubble_border.cc:341: void BubbleBackground::Paint(gfx::Canvas* canvas, views::View* view) const { On 2014/08/23 ...
6 years, 4 months ago (2014-08-23 00:59:23 UTC) #12
bruthig
msw@, can you take another look? https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/60001/ui/views/bubble/bubble_border.cc#newcode338 ui/views/bubble/bubble_border.cc:338: return images_; On ...
6 years, 4 months ago (2014-08-25 14:47:28 UTC) #13
msw
It's a shame that GetBoundsOriginTest is so complex, but this lgtm with nits. https://chromiumcodereview.appspot.com/454173002/diff/80001/ui/views/bubble/bubble_border_unittest.cc File ...
6 years, 3 months ago (2014-08-25 18:01:46 UTC) #14
bruthig
Minor nit fixes, no review required. https://chromiumcodereview.appspot.com/454173002/diff/80001/ui/views/bubble/bubble_border_unittest.cc File ui/views/bubble/bubble_border_unittest.cc (right): https://chromiumcodereview.appspot.com/454173002/diff/80001/ui/views/bubble/bubble_border_unittest.cc#newcode340 ui/views/bubble/bubble_border_unittest.cc:340: const int kMidAnchorWidth ...
6 years, 3 months ago (2014-08-25 18:22:22 UTC) #15
bruthig
The CQ bit was checked by bruthig@chromium.org
6 years, 3 months ago (2014-08-25 18:22:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/454173002/100001
6 years, 3 months ago (2014-08-25 18:23:57 UTC) #17
bruthig
The CQ bit was unchecked by bruthig@chromium.org
6 years, 3 months ago (2014-08-25 18:36:54 UTC) #18
msw
https://codereview.chromium.org/454173002/diff/80001/ui/views/bubble/bubble_border_unittest.cc File ui/views/bubble/bubble_border_unittest.cc (right): https://codereview.chromium.org/454173002/diff/80001/ui/views/bubble/bubble_border_unittest.cc#newcode340 ui/views/bubble/bubble_border_unittest.cc:340: const int kMidAnchorWidth = kAnchor.width() / 2; On 2014/08/25 ...
6 years, 3 months ago (2014-08-25 18:48:17 UTC) #19
bruthig
- Merged with tip of tree - Replaced kMidAnchorX and kMidAnchorY - Fixed line wrappings ...
6 years, 3 months ago (2014-08-25 20:15:03 UTC) #20
msw
lgtm
6 years, 3 months ago (2014-08-25 20:41:23 UTC) #21
bruthig
The CQ bit was checked by bruthig@chromium.org
6 years, 3 months ago (2014-08-25 21:15:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/454173002/140001
6 years, 3 months ago (2014-08-25 21:15:43 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-25 22:52:22 UTC) #24
bruthig
The CQ bit was unchecked by bruthig@chromium.org
6 years, 3 months ago (2014-08-25 23:20:48 UTC) #25
bruthig
bruthig@chromium.org changed reviewers: + jennyz@chromium.org
6 years, 3 months ago (2014-08-26 18:54:28 UTC) #26
bruthig
jennyz@, can you review changes in web_notification_tray.cc? https://codereview.chromium.org/454173002/diff/160001/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (right): https://codereview.chromium.org/454173002/diff/160001/ash/system/web_notification/web_notification_tray.cc#newcode95 ash/system/web_notification/web_notification_tray.cc:95: bubble_view->SetArrowPaintType(views::BubbleBorder::PAINT_NONE); My ...
6 years, 3 months ago (2014-08-26 18:54:28 UTC) #27
jennyz
lgtm
6 years, 3 months ago (2014-08-26 22:29:02 UTC) #28
bruthig
The CQ bit was checked by bruthig@chromium.org
6 years, 3 months ago (2014-08-27 13:36:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/454173002/160001
6 years, 3 months ago (2014-08-27 13:36:55 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (160001) as 8ecab891fc6b510d526ec5592f4c0554b95bdb7f
6 years, 3 months ago (2014-08-27 14:32:49 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:51:26 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8bbc59b53df13d6e88cb4f97ced210324b745356
Cr-Commit-Position: refs/heads/master@{#292145}

Powered by Google App Engine
This is Rietveld 408576698