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

Issue 11065050: The center of a rect is x+width/2, y+height/2 (Closed)

Created:
8 years, 2 months ago by danakj
Modified:
8 years, 2 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, ben+watch_chromium.org, jamesr, enne (OOO), oshima, rjkroege, tfarina, piman, backer
Visibility:
Public.

Description

The center of a rect is x+width/2, y+height/2 If a rect is (0, 0, 5, 5) the center should be 2.5, 2.5, not 2, 2. Tests: ui_unittests:RectTest.CenterPoint ui_unittests:RectTest.CenterPointF BUG=147395 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160976

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -12 lines) Patch
M ash/tooltips/tooltip_controller_unittest.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/rect_base_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/rect_unittest.cc View 1 2 3 1 chunk +60 lines, -0 lines 1 comment Download

Messages

Total messages: 31 (0 generated)
danakj
8 years, 2 months ago (2012-10-05 20:52:32 UTC) #1
sky
Add a test otherwise with justification as to why it is the way it is ...
8 years, 2 months ago (2012-10-05 21:07:03 UTC) #2
oshima
Peter should review this as he made this change in http://codereview.chromium.org/6474016/
8 years, 2 months ago (2012-10-05 21:07:23 UTC) #3
Peter Kasting
On 2012/10/05 21:07:23, oshima wrote: > Peter should review this as he made this change ...
8 years, 2 months ago (2012-10-05 21:11:05 UTC) #4
tfarina
http://codereview.chromium.org/11065050/diff/1/ash/tooltips/tooltip_controller_unittest.cc File ash/tooltips/tooltip_controller_unittest.cc (right): http://codereview.chromium.org/11065050/diff/1/ash/tooltips/tooltip_controller_unittest.cc#newcode197 ash/tooltips/tooltip_controller_unittest.cc:197: for (int i = 0; i < 49; i++) ...
8 years, 2 months ago (2012-10-05 21:25:23 UTC) #5
danakj
fix aura_unittests
8 years, 2 months ago (2012-10-05 21:35:36 UTC) #6
danakj
On 2012/10/05 21:11:05, Peter Kasting wrote: > On 2012/10/05 21:07:23, oshima wrote: > > Peter ...
8 years, 2 months ago (2012-10-05 21:40:13 UTC) #7
danakj
swap left and right in that last sentence.
8 years, 2 months ago (2012-10-05 21:40:48 UTC) #8
Peter Kasting
On 2012/10/05 21:40:13, danakj wrote: > On 2012/10/05 21:11:05, Peter Kasting wrote: > > On ...
8 years, 2 months ago (2012-10-05 22:00:19 UTC) #9
sky
Can't you write a unit test for this? On Fri, Oct 5, 2012 at 2:40 ...
8 years, 2 months ago (2012-10-05 22:55:21 UTC) #10
Peter Kasting
On Fri, Oct 5, 2012 at 3:55 PM, Scott Violet <sky@chromium.org> wrote: > Can't you ...
8 years, 2 months ago (2012-10-05 22:58:05 UTC) #11
sky
I meant for rect_base. I agree that testing the arrow in the info bar doesn't ...
8 years, 2 months ago (2012-10-05 22:59:24 UTC) #12
danakj
tests added
8 years, 2 months ago (2012-10-06 17:08:50 UTC) #13
danakj
On 2012/10/05 22:00:19, Peter Kasting wrote: > The way to test is that you build ...
8 years, 2 months ago (2012-10-06 17:20:22 UTC) #14
danakj
On 2012/10/06 17:20:22, danakj wrote: > On 2012/10/05 22:00:19, Peter Kasting wrote: > > The ...
8 years, 2 months ago (2012-10-06 17:26:25 UTC) #15
Peter Kasting
On 2012/10/06 17:26:25, danakj wrote: > On 2012/10/06 17:20:22, danakj wrote: > > On 2012/10/05 ...
8 years, 2 months ago (2012-10-06 18:07:07 UTC) #16
danakj
On Sat, Oct 6, 2012 at 2:07 PM, <pkasting@chromium.org> wrote: > Right, screenshot that on ...
8 years, 2 months ago (2012-10-06 18:12:58 UTC) #17
Peter Kasting
On Sat, Oct 6, 2012 at 11:12 AM, Dana Jansens <danakj@chromium.org> wrote: > On Sat, ...
8 years, 2 months ago (2012-10-06 18:24:45 UTC) #18
danakj
On 2012/10/06 18:24:45, Peter Kasting wrote: > On Sat, Oct 6, 2012 at 11:12 AM, ...
8 years, 2 months ago (2012-10-06 18:26:53 UTC) #19
Peter Kasting
I could probably test this next week sometime if you need.
8 years, 2 months ago (2012-10-06 22:10:53 UTC) #20
danakj
On 2012/10/06 22:10:53, Peter Kasting wrote: > I could probably test this next week sometime ...
8 years, 2 months ago (2012-10-06 22:16:12 UTC) #21
sadrul
On 2012/10/06 22:16:12, danakj wrote: > On 2012/10/06 22:10:53, Peter Kasting wrote: > > I ...
8 years, 2 months ago (2012-10-07 01:53:21 UTC) #22
Peter Kasting
On 2012/10/06 22:16:12, danakj wrote: > On 2012/10/06 22:10:53, Peter Kasting wrote: > > I ...
8 years, 2 months ago (2012-10-07 05:49:48 UTC) #23
danakj
On 2012/10/07 01:53:21, sadrul wrote: > On 2012/10/06 22:16:12, danakj wrote: > > On 2012/10/06 ...
8 years, 2 months ago (2012-10-07 18:24:01 UTC) #24
danakj
Ping for review?
8 years, 2 months ago (2012-10-09 04:21:54 UTC) #25
sky
LGTM - but you still need to make sure windows is ok. https://codereview.chromium.org/11065050/diff/14002/ui/gfx/rect_unittest.cc File ui/gfx/rect_unittest.cc ...
8 years, 2 months ago (2012-10-09 15:55:50 UTC) #26
rjkroege
fwiw: the gesture recognizer unit test lgtm
8 years, 2 months ago (2012-10-09 15:57:08 UTC) #27
sky
Your test for ChromeOS should cover windows. So, no need to test there.
8 years, 2 months ago (2012-10-09 21:05:52 UTC) #28
danakj
On 2012/10/09 21:05:52, sky wrote: > Your test for ChromeOS should cover windows. So, no ...
8 years, 2 months ago (2012-10-09 21:06:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11065050/14002
8 years, 2 months ago (2012-10-09 21:07:25 UTC) #30
commit-bot: I haz the power
8 years, 2 months ago (2012-10-09 23:22:11 UTC) #31
Change committed as 160976

Powered by Google App Engine
This is Rietveld 408576698