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

Issue 11358240: ui: Add methods to Rect classes to get points at each of the rect's corners. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
sky, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

ui: Add methods to Rect classes to get points at each of the rect's corners. This adds the following methods: RectBase::TopRight() RectBase::BottomLeft() RectBase::BottomRight() RectBase::origin() still provides the rect's top-left corner. Tests: ui_unittests:RectTest.Cornders BUG=147395 R=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168859

Patch Set 1 #

Total comments: 4

Patch Set 2 : hackercase #

Patch Set 3 : Remove top_left() #

Patch Set 4 : update cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -40 lines) Patch
M cc/cc.gyp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D cc/geometry.h View 1 chunk +0 lines, -25 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M cc/layer_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/page_scale_animation.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M cc/tiled_layer.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/rect_base.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/rect_unittest.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
+enne for cc/
8 years, 1 month ago (2012-11-14 20:02:26 UTC) #1
sky
https://codereview.chromium.org/11358240/diff/1/ui/gfx/rect_base.h File ui/gfx/rect_base.h (right): https://codereview.chromium.org/11358240/diff/1/ui/gfx/rect_base.h#newcode50 ui/gfx/rect_base.h:50: PointClass TopLeft() const { return PointClass(x(), y()); } This ...
8 years, 1 month ago (2012-11-14 22:23:43 UTC) #2
danakj
https://codereview.chromium.org/11358240/diff/1/ui/gfx/rect_base.h File ui/gfx/rect_base.h (right): https://codereview.chromium.org/11358240/diff/1/ui/gfx/rect_base.h#newcode50 ui/gfx/rect_base.h:50: PointClass TopLeft() const { return PointClass(x(), y()); } On ...
8 years, 1 month ago (2012-11-14 22:36:34 UTC) #3
sky
On Wed, Nov 14, 2012 at 2:36 PM, <danakj@chromium.org> wrote: > > https://codereview.chromium.org/11358240/diff/1/ui/gfx/rect_base.h > File ...
8 years, 1 month ago (2012-11-14 23:24:59 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 1 month ago (2012-11-20 05:14:25 UTC) #5
danakj
Oh, woops. PTAL. I've removed the top_left() in preference for origin().
8 years, 1 month ago (2012-11-20 05:15:01 UTC) #6
enne (OOO)
cc lgtm
8 years, 1 month ago (2012-11-20 05:28:00 UTC) #7
sky
LGTM
8 years, 1 month ago (2012-11-20 16:39:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11358240/12001
8 years, 1 month ago (2012-11-20 16:43:57 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-20 20:28:08 UTC) #10
Change committed as 168859

Powered by Google App Engine
This is Rietveld 408576698