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

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)

Created:
3 years, 8 months ago by danakj
Modified:
3 years, 8 months ago
CC:
chromium-reviews, dcheng, enne (OOO)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup ash-based code for Windows drag-and-drop graphics. This moves the windows-specific implementation into the window OSExchangeData::Provider. Since there's no ash that code does not need to handle both anymore. On windows+mus we use a OSExchangeDataProviderMus in the UI process instead, which will do the right thing (the same thing that drag_utils used to do instead of calling to the OSExchangeData::Provider). Changes the return type of GetDrawImage{Offset} to be more friendly to implementations that do not return a ref to a member variable. R=sadrul@chromium.org Review-Url: https://codereview.chromium.org/2792183002 Cr-Commit-Position: refs/heads/master@{#465653} Committed: https://chromium.googlesource.com/chromium/src/+/e100d023fafad14a1a1eff16c68c8328c4a78770

Patch Set 1 #

Total comments: 9

Patch Set 2 : ashdrag: . #

Patch Set 3 : ashdrag: linux #

Patch Set 4 : ashdrag: rm-dragutils #

Patch Set 5 : ashdrag: fixcompile #

Patch Set 6 : ashdrag: fixgn #

Patch Set 7 : ashdrag: addheaders #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -202 lines) Patch
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ui/app_list/views/app_list_item_view.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/mus/os_exchange_data_provider_mus.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/mus/os_exchange_data_provider_mus.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 4 chunks +0 lines, -14 lines 0 comments Download
D ui/base/dragdrop/drag_utils.h View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
D ui/base/dragdrop/drag_utils.cc View 1 2 3 1 chunk +0 lines, -19 lines 0 comments Download
M ui/base/dragdrop/drag_utils_win.cc View 1 2 3 1 chunk +0 lines, -87 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data.h View 1 2 3 1 chunk +2 lines, -2 lines 2 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aura.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aura.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aurax11.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aurax11.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_mac.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_mac.mm View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_win.h View 1 2 3 4 5 6 1 chunk +3 lines, -7 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_win.cc View 1 2 3 4 5 6 3 chunks +71 lines, -9 lines 0 comments Download
M ui/views/button_drag_utils.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 78 (48 generated)
danakj
https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc File ui/base/dragdrop/drag_utils_win.cc (left): https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc#oldcode26 ui/base/dragdrop/drag_utils_win.cc:26: static void SetDragImageOnDataObject(HBITMAP hbitmap, Since these have one caller, ...
3 years, 8 months ago (2017-04-03 22:34:02 UTC) #1
Peter Kasting
https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc File ui/base/dragdrop/drag_utils_win.cc (right): https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc#newcode47 ui/base/dragdrop/drag_utils_win.cc:47: base::win::ScopedGetDC screen_dc(NULL); On 2017/04/03 22:34:01, danakj wrote: > I ...
3 years, 8 months ago (2017-04-04 00:31:14 UTC) #7
sadrul
https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/os_exchange_data.h File ui/base/dragdrop/os_exchange_data.h (right): https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/os_exchange_data.h#newcode133 ui/base/dragdrop/os_exchange_data.h:133: #if (defined(USE_AURA) && !defined(OS_WIN)) || defined(OS_MACOSX) On 2017/04/04 00:31:14, ...
3 years, 8 months ago (2017-04-04 04:16:14 UTC) #8
danakj
https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc File ui/base/dragdrop/drag_utils_win.cc (right): https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc#newcode47 ui/base/dragdrop/drag_utils_win.cc:47: base::win::ScopedGetDC screen_dc(NULL); On 2017/04/04 00:31:14, Peter Kasting wrote: > ...
3 years, 8 months ago (2017-04-04 15:25:33 UTC) #9
danakj
PTAL https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/os_exchange_data.h File ui/base/dragdrop/os_exchange_data.h (right): https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/os_exchange_data.h#newcode133 ui/base/dragdrop/os_exchange_data.h:133: #if (defined(USE_AURA) && !defined(OS_WIN)) || defined(OS_MACOSX) On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 15:33:37 UTC) #12
danakj
E:\b\c\b\win_clang\src\ui\aura\mus\os_exchange_data_provider_mus.h(91,57): error: only virtual member functions can be marked 'override' const gfx::Vector2d& cursor_offset) override; ^~~~~~~~ ...
3 years, 8 months ago (2017-04-04 17:34:05 UTC) #15
danakj
On 2017/04/04 17:34:05, danakj wrote: > E:\b\c\b\win_clang\src\ui\aura\mus\os_exchange_data_provider_mus.h(91,57): > error: only virtual member functions can be ...
3 years, 8 months ago (2017-04-05 22:14:16 UTC) #16
danakj
On 2017/04/05 22:14:16, danakj wrote: > On 2017/04/04 17:34:05, danakj wrote: > > E:\b\c\b\win_clang\src\ui\aura\mus\os_exchange_data_provider_mus.h(91,57): > ...
3 years, 8 months ago (2017-04-05 22:16:27 UTC) #17
Peter Kasting
On 2017/04/04 17:34:05, danakj wrote: > E:\b\c\b\win_clang\src\ui\aura\mus\os_exchange_data_provider_mus.h(91,57): > error: only virtual member functions can be ...
3 years, 8 months ago (2017-04-05 23:18:47 UTC) #18
Peter Kasting
On 2017/04/04 15:25:33, danakj wrote: > https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc > File ui/base/dragdrop/drag_utils_win.cc (right): > > https://codereview.chromium.org/2792183002/diff/1/ui/base/dragdrop/drag_utils_win.cc#newcode47 > ...
3 years, 8 months ago (2017-04-05 23:19:10 UTC) #19
sadrul
On 2017/04/05 22:16:27, danakj wrote: > On 2017/04/05 22:14:16, danakj wrote: > > On 2017/04/04 ...
3 years, 8 months ago (2017-04-06 04:39:31 UTC) #20
danakj
On Thu, Apr 6, 2017 at 12:39 AM, <sadrul@chromium.org> wrote: > On 2017/04/05 22:16:27, danakj ...
3 years, 8 months ago (2017-04-07 21:57:04 UTC) #22
sadrul
lgtm
3 years, 8 months ago (2017-04-10 18:24:14 UTC) #26
danakj
E:\b\c\goma_client/gomacc.exe ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes /FC @obj/ui/aura/aura/drag_drop_controller_mus.obj.rsp /c ../../ui/aura/mus/drag_drop_controller_mus.cc /Foobj/ui/aura/aura/drag_drop_controller_mus.obj /Fd"obj/ui/aura/aura_cc.pdb" E:\b\c\b\win_clang\src\ui\aura\mus\drag_drop_controller_mus.cc(161,24): error: no member named ...
3 years, 8 months ago (2017-04-18 15:54:24 UTC) #33
danakj
On 2017/04/18 15:54:24, danakj wrote: > E:\b\c\goma_client/gomacc.exe > ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo > /showIncludes /FC @obj/ui/aura/aura/drag_drop_controller_mus.obj.rsp /c ...
3 years, 8 months ago (2017-04-18 15:56:46 UTC) #36
danakj
If that isn't a bug then we need to define those methods for AURA I ...
3 years, 8 months ago (2017-04-18 15:57:36 UTC) #37
Peter Kasting
Mus assuming Ash sounds like a bug to me. I would rope in sky/msw and ...
3 years, 8 months ago (2017-04-18 17:02:29 UTC) #40
sadrul
+erg@ for drag-and-drop code in mus, and how it is expected to work on Windows ...
3 years, 8 months ago (2017-04-18 17:03:35 UTC) #42
Elliot Glaysher
On 2017/04/18 17:03:35, sadrul wrote: > +erg@ for drag-and-drop code in mus, and how it ...
3 years, 8 months ago (2017-04-18 18:27:39 UTC) #43
danakj
On Tue, Apr 18, 2017 at 2:27 PM, <erg@chromium.org> wrote: > On 2017/04/18 17:03:35, sadrul ...
3 years, 8 months ago (2017-04-18 18:51:17 UTC) #44
Elliot Glaysher
On 2017/04/18 18:51:17, danakj wrote: > On Tue, Apr 18, 2017 at 2:27 PM, <mailto:erg@chromium.org> ...
3 years, 8 months ago (2017-04-18 19:15:16 UTC) #45
danakj
On 2017/04/18 19:15:16, Elliot Glaysher wrote: > On 2017/04/18 18:51:17, danakj wrote: > > On ...
3 years, 8 months ago (2017-04-18 19:20:29 UTC) #46
Elliot Glaysher
On 2017/04/18 19:20:29, danakj wrote: > Ok cool. So then while I'm here, I don't ...
3 years, 8 months ago (2017-04-18 19:52:54 UTC) #47
danakj
OK Thanks. It looks like OSExchangeDataProviderWin would only be used when you wanted the native ...
3 years, 8 months ago (2017-04-18 20:43:19 UTC) #51
sky
LGTM
3 years, 8 months ago (2017-04-18 22:32:57 UTC) #62
danakj
PTAL sadrul, u can CQ if you're ok with it? Thanks!
3 years, 8 months ago (2017-04-19 14:00:53 UTC) #69
sadrul
still lgtm https://codereview.chromium.org/2792183002/diff/120001/ui/base/dragdrop/os_exchange_data.h File ui/base/dragdrop/os_exchange_data.h (left): https://codereview.chromium.org/2792183002/diff/120001/ui/base/dragdrop/os_exchange_data.h#oldcode137 ui/base/dragdrop/os_exchange_data.h:137: virtual const gfx::Vector2d& GetDragImageOffset() const = 0; ...
3 years, 8 months ago (2017-04-19 17:04:50 UTC) #70
danakj
Updated the message. Thanks! https://codereview.chromium.org/2792183002/diff/120001/ui/base/dragdrop/os_exchange_data.h File ui/base/dragdrop/os_exchange_data.h (left): https://codereview.chromium.org/2792183002/diff/120001/ui/base/dragdrop/os_exchange_data.h#oldcode137 ui/base/dragdrop/os_exchange_data.h:137: virtual const gfx::Vector2d& GetDragImageOffset() const ...
3 years, 8 months ago (2017-04-19 17:20:23 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2792183002/120001
3 years, 8 months ago (2017-04-19 17:21:08 UTC) #75
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 17:27:03 UTC) #78
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e100d023fafad14a1a1eff16c68c...

Powered by Google App Engine
This is Rietveld 408576698