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

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
tfarina, sky, jamesr
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. Covered by existing unit tests. R=sky BUG=160158 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167077

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : nits #

Patch Set 4 : dchecks #

Patch Set 5 : rebase #

Patch Set 6 : fix/rebase #

Patch Set 7 : mac #

Patch Set 8 : rebase #

Patch Set 9 : rebase2 #

Patch Set 10 : macagain #

Patch Set 11 : rebaseTOGO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -77 lines) Patch
M ash/display/multi_display_manager.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M cc/contents_scaling_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 4 chunks +6 lines, -9 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M cc/page_scale_animation.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/status/network_menu_icon.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_icon_image.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/thumbnails/render_widget_snapshot_taker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/thumbnails/thumbnail_tab_helper.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/backing_store_aura.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/renderer_host/backing_store_mac.mm View 1 2 3 4 5 6 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/dip_util.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin_backing_store.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
content/renderer/disambiguation_popup_helper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/disambiguation_popup_helper_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ui/compositor/dip_util.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/compositor/layer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/canvas.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/display.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/image/image_skia_operations.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/rect_f.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/size.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M ui/gfx/size_f.h View 2 chunks +10 lines, -4 lines 0 comments Download
M ui/gfx/size_f.cc View 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/glue/webcursor_aurax11.cc View 1 1 chunk +1 line, -1 line 0 comments Download
webkit/plugins/ppapi/ppb_graphics_2d_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
danakj
8 years, 1 month ago (2012-11-09 01:51:31 UTC) #1
tfarina
https://codereview.chromium.org/11377068/diff/2001/ui/gfx/rect_f.h File ui/gfx/rect_f.h (left): https://codereview.chromium.org/11377068/diff/2001/ui/gfx/rect_f.h#oldcode31 ui/gfx/rect_f.h:31: /// Scales the rectangle by |scale|. nit: just two ...
8 years, 1 month ago (2012-11-09 13:05:37 UTC) #2
tfarina
https://codereview.chromium.org/11377068/diff/2001/ui/gfx/size_f.h File ui/gfx/size_f.h (right): https://codereview.chromium.org/11377068/diff/2001/ui/gfx/size_f.h#newcode41 ui/gfx/size_f.h:41: UI_EXPORT SizeF ScaleSize(const SizeF& p, float x_scale, float y_scale); ...
8 years, 1 month ago (2012-11-09 13:22:05 UTC) #3
Ian Vollick
On 2012/11/09 13:22:05, tfarina wrote: > https://codereview.chromium.org/11377068/diff/2001/ui/gfx/size_f.h > File ui/gfx/size_f.h (right): > > https://codereview.chromium.org/11377068/diff/2001/ui/gfx/size_f.h#newcode41 > ...
8 years, 1 month ago (2012-11-09 13:33:30 UTC) #4
danakj
On Fri, Nov 9, 2012 at 8:33 AM, <vollick@chromium.org> wrote: > On 2012/11/09 13:22:05, tfarina ...
8 years, 1 month ago (2012-11-09 16:09:33 UTC) #5
danakj
https://codereview.chromium.org/11377068/diff/2001/ui/gfx/rect_f.h File ui/gfx/rect_f.h (left): https://codereview.chromium.org/11377068/diff/2001/ui/gfx/rect_f.h#oldcode31 ui/gfx/rect_f.h:31: /// Scales the rectangle by |scale|. On 2012/11/09 13:05:37, ...
8 years, 1 month ago (2012-11-09 16:11:38 UTC) #6
tfarina
On Fri, Nov 9, 2012 at 2:11 PM, <danakj@chromium.org> wrote: > https://codereview.chromium.org/11377068/diff/2001/ui/gfx/rect_f.h#oldcode39 > ui/gfx/rect_f.h:39: SizeF ...
8 years, 1 month ago (2012-11-09 17:47:33 UTC) #7
danakj
On Fri, Nov 9, 2012 at 12:47 PM, Thiago Farina <tfarina@chromium.org> wrote: > On Fri, ...
8 years, 1 month ago (2012-11-09 18:18:03 UTC) #8
danakj
+jamesr for cc/ and webkit/
8 years, 1 month ago (2012-11-09 21:17:31 UTC) #9
danakj
(oh, and content/renderer please)
8 years, 1 month ago (2012-11-09 21:18:12 UTC) #10
jamesr
lgtm
8 years, 1 month ago (2012-11-09 21:49:54 UTC) #11
danakj
ping for sky, in case it got lost in the patch flood.
8 years, 1 month ago (2012-11-09 22:27:22 UTC) #12
sky
LGTM
8 years, 1 month ago (2012-11-09 23:01:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/8032
8 years, 1 month ago (2012-11-09 23:08:07 UTC) #14
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-09 23:08:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/11001
8 years, 1 month ago (2012-11-09 23:47:15 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-10 00:07:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/9004
8 years, 1 month ago (2012-11-10 00:16:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/72
8 years, 1 month ago (2012-11-10 05:26:08 UTC) #19
commit-bot: I haz the power
Failed to apply patch for cc/draw_quad_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-10 05:26:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/14006
8 years, 1 month ago (2012-11-10 05:30:21 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-10 06:13:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11377068/17005
8 years, 1 month ago (2012-11-10 06:28:01 UTC) #23
commit-bot: I haz the power
8 years, 1 month ago (2012-11-10 09:34:31 UTC) #24
Change committed as 167077

Powered by Google App Engine
This is Rietveld 408576698