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

Issue 328993002: Ensure that the size passed down to the SetDragImageOnDataObject function called from drag_utils::S… (Closed)

Created:
6 years, 6 months ago by ananta
Modified:
6 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, dcheng
Visibility:
Public.

Description

Ensure that size passed into drag_utils_win.cc's SetDragImageOnDataObject function is in pixels and is obtained from the SkBitmap instance. This is needed for the drag image to show up without being clipped. Removed the size parameter from the drag_utils::SetDragImageOnDataObject functions as it is not needed. We can get the size from the ImageSkia object as needed. BUG=381611 R=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276725

Patch Set 1 #

Patch Set 2 : Fixed comments in the drag_utils.h file #

Patch Set 3 : Fixed compile errors #

Total comments: 2

Patch Set 4 : Removed the size parameter from the SetDragImageOnDataObject functions #

Patch Set 5 : Removed parentheses and fixed alignment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -32 lines) Patch
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/dragdrop/drag_utils.h View 1 2 3 1 chunk +4 lines, -8 lines 0 comments Download
M ui/base/dragdrop/drag_utils.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M ui/base/dragdrop/drag_utils_aura.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/dragdrop/drag_utils_mac.mm View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ui/base/dragdrop/drag_utils_win.cc View 1 2 3 4 chunks +8 lines, -5 lines 0 comments Download
M ui/views/button_drag_utils.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
ananta
6 years, 6 months ago (2014-06-11 02:55:37 UTC) #1
sky
https://codereview.chromium.org/328993002/diff/40001/ui/base/dragdrop/drag_utils.cc File ui/base/dragdrop/drag_utils.cc (right): https://codereview.chromium.org/328993002/diff/40001/ui/base/dragdrop/drag_utils.cc#newcode106 ui/base/dragdrop/drag_utils.cc:106: gfx::ToCeiledSize(gfx::ScaleSize(size_in_dips, canvas.image_scale())), With few exceptions every where should take ...
6 years, 6 months ago (2014-06-11 15:57:17 UTC) #2
ananta
https://codereview.chromium.org/328993002/diff/40001/ui/base/dragdrop/drag_utils.cc File ui/base/dragdrop/drag_utils.cc (right): https://codereview.chromium.org/328993002/diff/40001/ui/base/dragdrop/drag_utils.cc#newcode106 ui/base/dragdrop/drag_utils.cc:106: gfx::ToCeiledSize(gfx::ScaleSize(size_in_dips, canvas.image_scale())), On 2014/06/11 15:57:17, sky wrote: > With ...
6 years, 6 months ago (2014-06-11 18:54:03 UTC) #3
sky
LGTM
6 years, 6 months ago (2014-06-11 19:56:03 UTC) #4
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 6 months ago (2014-06-12 11:59:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/328993002/80001
6 years, 6 months ago (2014-06-12 12:02:05 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 17:20:46 UTC) #7
Message was sent while issue was closed.
Change committed as 276725

Powered by Google App Engine
This is Rietveld 408576698