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

Issue 884653003: gfx::ShadowValue: offset is a Vector2d, not Point. (Closed)

Created:
5 years, 10 months ago by Matt Giuca
Modified:
5 years, 10 months ago
Reviewers:
danakj, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, sadrul, tfarina, tdanderson+overview_chromium.org, dcheng, estade+watch_chromium.org, kalyank, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gfx::ShadowValue: offset is a Vector2d, not Point. This was semantically incorrect; a Point represents a point in 2D space whereas a Vector2d represents an offset. Therefore, 'offset' should be a Vector2d. BUG=None TBR=sky@chromium.org Committed: https://crrev.com/e8dffb6da90edde7f6aaaeb97f707b785aba8f3d Cr-Commit-Position: refs/heads/master@{#318202}

Patch Set 1 #

Patch Set 2 : Fix offset() to once again return a const ref. #

Patch Set 3 : Rebase. #

Patch Set 4 : Remove include. #

Patch Set 5 : Fix compile on Windows. #

Total comments: 6

Patch Set 6 : Revert formatting changes. #

Patch Set 7 : Fix compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -54 lines) Patch
M ash/shelf/shelf_button.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ash/system/tray/tray_utils.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/touch/touch_hud_debug.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_item.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/message_center/message_center_frame_view.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M ui/app_list/app_list_constants.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ui/app_list/views/app_list_item_view.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M ui/app_list/views/contents_animator.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gfx/shadow_value.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M ui/gfx/shadow_value.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M ui/gfx/shadow_value_unittest.cc View 1 2 3 4 5 2 chunks +8 lines, -7 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/button_drag_utils.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M ui/views/controls/button/blue_button.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/examples/label_example.cc View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Matt Giuca
5 years, 10 months ago (2015-02-24 06:36:17 UTC) #2
danakj
Using a Vector2d LGTM. You'll need OWNERS for all the things though. https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc File ui/gfx/shadow_value_unittest.cc ...
5 years, 10 months ago (2015-02-24 17:26:56 UTC) #3
Matt Giuca
I think since the rest of the changes are mechanical in nature, I will just ...
5 years, 10 months ago (2015-02-24 23:04:21 UTC) #5
danakj
https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc File ui/gfx/shadow_value_unittest.cc (right): https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc#newcode20 ui/gfx/shadow_value_unittest.cc:20: Insets(), 0, {}, On 2015/02/24 23:04:21, Matt Giuca wrote: ...
5 years, 10 months ago (2015-02-24 23:07:17 UTC) #6
Matt Giuca
https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc File ui/gfx/shadow_value_unittest.cc (right): https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc#newcode20 ui/gfx/shadow_value_unittest.cc:20: Insets(), 0, {}, > Accept it and file a ...
5 years, 10 months ago (2015-02-25 04:34:42 UTC) #7
danakj
https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc File ui/gfx/shadow_value_unittest.cc (right): https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc#newcode20 ui/gfx/shadow_value_unittest.cc:20: Insets(), 0, {}, On 2015/02/25 04:34:41, Matt Giuca wrote: ...
5 years, 10 months ago (2015-02-25 19:04:24 UTC) #8
Matt Giuca
https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc File ui/gfx/shadow_value_unittest.cc (right): https://codereview.chromium.org/884653003/diff/80001/ui/gfx/shadow_value_unittest.cc#newcode20 ui/gfx/shadow_value_unittest.cc:20: Insets(), 0, {}, OK done. (I think it's especially ...
5 years, 10 months ago (2015-02-26 03:19:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/884653003/120001
5 years, 10 months ago (2015-02-26 03:20:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/63522)
5 years, 10 months ago (2015-02-26 04:07:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/884653003/140001
5 years, 10 months ago (2015-02-26 04:24:35 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 10 months ago (2015-02-26 06:49:25 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 06:49:57 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e8dffb6da90edde7f6aaaeb97f707b785aba8f3d
Cr-Commit-Position: refs/heads/master@{#318202}

Powered by Google App Engine
This is Rietveld 408576698