|
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
Total comments: 4
|
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
|
Total messages: 10 (0 generated)
|