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

Issue 2099513003: mus: Use the new drag API to implement tab dragging in chrome. (Closed)

Created:
4 years, 6 months ago by Elliot Glaysher
Modified:
4 years, 5 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, kalyank, sadrul, dcheng, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@dragging-part-1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Use the new drag API to implement tab dragging in chrome. BUG=622900, 622575 Committed: https://crrev.com/6ed29f61913c5429093ff5b22667a15c425914b4 Cr-Commit-Position: refs/heads/master@{#404473}

Patch Set 1 #

Patch Set 2 : Integrate win compile fix #

Total comments: 4

Patch Set 3 : Rebase to tot, address comments. #

Patch Set 4 : Merge on top of part 1 #

Patch Set 5 : I accidentally fixed http://crbug.com/622575 #

Patch Set 6 : Minor pruning #

Total comments: 12

Patch Set 7 : Use WindowTreeHostObserver instead. #

Total comments: 2

Patch Set 8 : Experimental change to move code from OnBoundsChanged to OnHostResized #

Patch Set 9 : Add some comments to window finder interface. #

Total comments: 2

Patch Set 10 : Add some more comments #

Total comments: 2

Patch Set 11 : Remove redundant setbounds #

Total comments: 1

Patch Set 12 : sadrul nit #

Patch Set 13 : Rebase to tot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -29 lines) Patch
M ash/mus/frame/move_event_handler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -0 lines 0 comments Download
M ash/mus/frame/move_event_handler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +44 lines, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/window_finder.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/tabs/window_finder_mus.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/tabs/window_finder_mus.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +38 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +51 lines, -21 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (12 generated)
sky
I started on this and then realized I have questions about the other view. So, ...
4 years, 6 months ago (2016-06-24 19:42:02 UTC) #2
Elliot Glaysher
https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc File chrome/browser/ui/views/tabs/window_finder_mus.cc (right): https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc#newcode20 chrome/browser/ui/views/tabs/window_finder_mus.cc:20: // TODO(erg): Needs to deal with stacking order here. ...
4 years, 5 months ago (2016-06-29 22:41:57 UTC) #4
sky
https://codereview.chromium.org/2099513003/diff/100001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2099513003/diff/100001/ash/mus/window_manager.cc#newcode239 ash/mus/window_manager.cc:239: WmWindowMus* child_window = WmWindowMus::Get(window); DCHECK there isn't a drag ...
4 years, 5 months ago (2016-06-30 00:18:32 UTC) #5
Elliot Glaysher
https://codereview.chromium.org/2099513003/diff/100001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2099513003/diff/100001/ash/mus/window_manager.cc#newcode251 ash/mus/window_manager.cc:251: handler->RevertDrag(); On 2016/06/30 00:18:31, sky wrote: > What happens ...
4 years, 5 months ago (2016-06-30 19:48:25 UTC) #6
sky
https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc File chrome/browser/ui/views/tabs/window_finder_mus.cc (right): https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc#newcode20 chrome/browser/ui/views/tabs/window_finder_mus.cc:20: // TODO(erg): Needs to deal with stacking order here. ...
4 years, 5 months ago (2016-06-30 23:23:54 UTC) #7
Elliot Glaysher
https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc File chrome/browser/ui/views/tabs/window_finder_mus.cc (right): https://codereview.chromium.org/2099513003/diff/100001/chrome/browser/ui/views/tabs/window_finder_mus.cc#newcode20 chrome/browser/ui/views/tabs/window_finder_mus.cc:20: // TODO(erg): Needs to deal with stacking order here. ...
4 years, 5 months ago (2016-07-01 00:09:58 UTC) #8
sky
+sadrul for the changes to NativeWidgetMus::OnBoundsChanged() as I feel we've circled around a bit on ...
4 years, 5 months ago (2016-07-01 16:01:16 UTC) #10
sadrul
https://codereview.chromium.org/2099513003/diff/180001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2099513003/diff/180001/ui/views/mus/native_widget_mus.cc#newcode1368 ui/views/mus/native_widget_mus.cc:1368: content_->SetBounds(new_bounds); Do you need to SetBounds() here? It should ...
4 years, 5 months ago (2016-07-04 20:11:38 UTC) #11
Elliot Glaysher
https://codereview.chromium.org/2099513003/diff/180001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2099513003/diff/180001/ui/views/mus/native_widget_mus.cc#newcode1368 ui/views/mus/native_widget_mus.cc:1368: content_->SetBounds(new_bounds); On 2016/07/04 20:11:38, sadrul wrote: > Do you ...
4 years, 5 months ago (2016-07-07 19:12:06 UTC) #12
sadrul
lgtm
4 years, 5 months ago (2016-07-08 00:23:07 UTC) #13
sadrul
One small nit https://codereview.chromium.org/2099513003/diff/200001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2099513003/diff/200001/ui/views/mus/native_widget_mus.cc#newcode1369 ui/views/mus/native_widget_mus.cc:1369: native_widget_delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); No reason to create |new_bounds| ...
4 years, 5 months ago (2016-07-08 00:24:05 UTC) #14
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/2099513003/220001
4 years, 5 months ago (2016-07-08 17:30:29 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/93575)
4 years, 5 months ago (2016-07-08 18:58:26 UTC) #19
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/2099513003/240001
4 years, 5 months ago (2016-07-08 19:11:01 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/93538) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-08 19:16:18 UTC) #24
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/2099513003/240001
4 years, 5 months ago (2016-07-08 19:28:15 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-08 20:10:53 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 20:11:07 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 20:12:02 UTC) #31
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6ed29f61913c5429093ff5b22667a15c425914b4
Cr-Commit-Position: refs/heads/master@{#404473}

Powered by Google App Engine
This is Rietveld 408576698