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

Issue 2323553002: mash: Use the new mus drag and drop API to get drag working in mash. (Closed)

Created:
4 years, 3 months ago by Elliot Glaysher
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, sadrul, sky
CC:
chromium-reviews, tfarina, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Use the new mus drag and drop API to get drag working in mash. BUG=614037 Committed: https://crrev.com/de431fe87ced556b5fa4411da711ee33453de9a2 Cr-Commit-Position: refs/heads/master@{#421254}

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Patch Set 3 : Merge with parent patch. #

Patch Set 4 : Rebase to tot (maybe final merge?) #

Patch Set 5 : Selectively create DragDropClientMus to fix MenuControllerTest.MenuControllerReplacedDuringDrag #

Patch Set 6 : Rebase to ToT #

Patch Set 7 : Rebase to ToT now that the cancel patch landed #

Patch Set 8 : Patch cleanup #

Total comments: 36

Patch Set 9 : comments #

Patch Set 10 : Remove drag_pointer from the interface and look it up on the server side. #

Patch Set 11 : Disable MenuControllerTest.MenuControllerReplacedDuringDrag in mus and remove hack that made it pas… #

Patch Set 12 : another make unique #

Total comments: 10

Patch Set 13 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -40 lines) Patch
M services/ui/public/cpp/tests/test_window_tree.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/cpp/window.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/cpp/window.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A ui/views/mus/drag_drop_client_mus.h View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A ui/views/mus/drag_drop_client_mus.cc View 1 2 3 4 5 6 7 8 9 1 chunk +92 lines, -0 lines 0 comments Download
A ui/views/mus/drop_target_mus.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +93 lines, -0 lines 0 comments Download
A ui/views/mus/drop_target_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +146 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 2 3 4 5 7 chunks +20 lines, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +65 lines, -18 lines 0 comments Download
M ui/views/mus/os_exchange_data_provider_mus.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/mus/os_exchange_data_provider_mus.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -1 line 0 comments Download
M ui/views/widget/drop_helper.h View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 65 (50 generated)
Elliot Glaysher
sadrul: questions about pointer ids sky: review https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode72 ui/views/mus/drag_drop_client_mus.cc:72: int32_t drag_pointer ...
4 years, 3 months ago (2016-09-22 20:23:20 UTC) #32
sky
Mostly just style stuff. https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode20 ui/views/mus/drag_drop_client_mus.cc:20: DragDropClientMus* g_current_dragging_client = nullptr; My ...
4 years, 2 months ago (2016-09-23 16:14:09 UTC) #35
sadrul
https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode53 ui/views/mus/drag_drop_client_mus.cc:53: base::MessageLoopForUI* loop = base::MessageLoopForUI::current(); Can this be just MessageLoop? ...
4 years, 2 months ago (2016-09-23 16:22:36 UTC) #36
sky
https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode72 ui/views/mus/drag_drop_client_mus.cc:72: int32_t drag_pointer = ui::PointerEvent::kMousePointerId; On 2016/09/22 20:23:20, Elliot Glaysher ...
4 years, 2 months ago (2016-09-23 17:56:28 UTC) #37
Elliot Glaysher
https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode51 ui/views/mus/drag_drop_client_mus.cc:51: aura_window_->ReleaseCapture(); On 2016/09/23 16:14:08, sky wrote: > Please comment ...
4 years, 2 months ago (2016-09-23 21:40:48 UTC) #40
sky
https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode72 ui/views/mus/drag_drop_client_mus.cc:72: int32_t drag_pointer = ui::PointerEvent::kMousePointerId; On 2016/09/23 21:40:48, Elliot Glaysher ...
4 years, 2 months ago (2016-09-26 02:12:59 UTC) #43
Elliot Glaysher
ptal https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc File ui/views/mus/drag_drop_client_mus.cc (right): https://codereview.chromium.org/2323553002/diff/140001/ui/views/mus/drag_drop_client_mus.cc#newcode72 ui/views/mus/drag_drop_client_mus.cc:72: int32_t drag_pointer = ui::PointerEvent::kMousePointerId; On 2016/09/26 02:12:59, sky ...
4 years, 2 months ago (2016-09-26 20:57:29 UTC) #50
sky
https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (left): https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc#oldcode419 services/ui/ws/window_manager_state.cc:419: event_awaiting_input_ack_ = ui::Event::Clone(event); Why do you need to do ...
4 years, 2 months ago (2016-09-26 21:44:41 UTC) #51
Elliot Glaysher
https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (left): https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc#oldcode419 services/ui/ws/window_manager_state.cc:419: event_awaiting_input_ack_ = ui::Event::Clone(event); On 2016/09/26 21:44:41, sky wrote: > ...
4 years, 2 months ago (2016-09-26 22:20:02 UTC) #53
sky
LGTM https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (left): https://codereview.chromium.org/2323553002/diff/220001/services/ui/ws/window_manager_state.cc#oldcode419 services/ui/ws/window_manager_state.cc:419: event_awaiting_input_ack_ = ui::Event::Clone(event); On 2016/09/26 22:20:02, Elliot Glaysher ...
4 years, 2 months ago (2016-09-26 23:06:05 UTC) #55
Elliot Glaysher
tsepez: mojom review which just removes one argument
4 years, 2 months ago (2016-09-26 23:07:58 UTC) #57
Tom Sepez
RS LGTM on mojom removing one argument.
4 years, 2 months ago (2016-09-27 15:49:50 UTC) #60
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/2323553002/240001
4 years, 2 months ago (2016-09-27 17:00:02 UTC) #62
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-09-27 17:39:42 UTC) #63
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 17:41:55 UTC) #65
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/de431fe87ced556b5fa4411da711ee33453de9a2
Cr-Commit-Position: refs/heads/master@{#421254}

Powered by Google App Engine
This is Rietveld 408576698