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

Issue 108313006: [ash] Don't remove an item when associated window is dragged (Closed)

Created:
7 years ago by simonhong
Modified:
6 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, hyojun.im_lge.com
Visibility:
Public.

Description

[ash] Don't remove an item when associated window is dragged LauncherItem adding/removing is repeated when a Window is dragged because it is reparented to DockedContainer during the dragging. ShelfWindowWatcher should prevent this removing when window is dragging. R=sky@chromium.org BUG=NONE TEST=ash_unittests --gtest_filter=ShelfWindowWatcherTest*.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243970

Patch Set 1 #

Patch Set 2 : Add unittest for dragging a window #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Handle removing a window during the dragging #

Patch Set 5 : Handle re-parenting not to default_container #

Total comments: 2

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Total comments: 7

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -10 lines) Patch
M ash/shelf/shelf_window_watcher.h View 1 2 3 4 5 6 7 8 9 3 chunks +34 lines, -0 lines 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 5 6 7 8 9 7 chunks +73 lines, -4 lines 0 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +121 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
simonhong
Dear sky, Please take a look.
7 years ago (2013-12-11 12:21:18 UTC) #1
sky
Can't you check for this state, meaning only do this if in the process of ...
7 years ago (2013-12-12 00:49:59 UTC) #2
simonhong
On 2013/12/12 00:49:59, sky wrote: > Can't you check for this state, meaning only do ...
7 years ago (2013-12-12 05:30:40 UTC) #3
sky
https://codereview.chromium.org/108313006/diff/40001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/40001/ash/shelf/shelf_window_watcher.cc#newcode150 ash/shelf/shelf_window_watcher.cc:150: if (observed_windows_.IsObserving(window)) If you do this, it means you ...
7 years ago (2013-12-12 16:41:43 UTC) #4
simonhong
Dear sky, Please check again! https://codereview.chromium.org/108313006/diff/40001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/40001/ash/shelf/shelf_window_watcher.cc#newcode150 ash/shelf/shelf_window_watcher.cc:150: if (observed_windows_.IsObserving(window)) On 2013/12/12 ...
7 years ago (2013-12-13 02:03:45 UTC) #5
sky
https://codereview.chromium.org/108313006/diff/70001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/70001/ash/shelf/shelf_window_watcher.cc#newcode170 ash/shelf/shelf_window_watcher.cc:170: if (HasLauncherItemForWindow(window) && !IsDragging(window)) If the window is deleted ...
7 years ago (2013-12-14 00:17:20 UTC) #6
simonhong
Dear sky, Please check again. https://codereview.chromium.org/108313006/diff/70001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/70001/ash/shelf/shelf_window_watcher.cc#newcode170 ash/shelf/shelf_window_watcher.cc:170: if (HasLauncherItemForWindow(window) && !IsDragging(window)) ...
7 years ago (2013-12-16 02:24:15 UTC) #7
sky
On Sun, Dec 15, 2013 at 6:24 PM, <simonhong@chromium.org> wrote: > Dear sky, > Please ...
7 years ago (2013-12-16 21:11:53 UTC) #8
simonhong
Dear sky, Re-parenting to container which should not have an item is handled in OnWindowParentChanged(). ...
7 years ago (2013-12-17 04:43:36 UTC) #9
sky
https://codereview.chromium.org/108313006/diff/110001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/110001/ash/shelf/shelf_window_watcher.cc#newcode201 ash/shelf/shelf_window_watcher.cc:201: (parent == docked_container && IsDragging(window))) Can you just check ...
7 years ago (2013-12-17 15:49:56 UTC) #10
simonhong
Dear sky, I created RemovedWindowObserver to handle removed window from default container. This observer handles ...
7 years ago (2013-12-18 07:13:41 UTC) #11
simonhong
kindly ping..
7 years ago (2013-12-19 19:14:43 UTC) #12
sky
I'm gone until the 6th. If you can't wait you'll need to get another reviewer. ...
7 years ago (2013-12-20 00:05:35 UTC) #13
simonhong
kindly ping..
6 years, 11 months ago (2014-01-07 12:55:06 UTC) #14
sky
https://codereview.chromium.org/108313006/diff/220001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/220001/ash/shelf/shelf_window_watcher.cc#newcode190 ash/shelf/shelf_window_watcher.cc:190: observed_removed_windows_.Add(window); Is there a reason this doesn't remove from ...
6 years, 11 months ago (2014-01-08 15:01:49 UTC) #15
simonhong
Dear sky, Please check again. https://codereview.chromium.org/108313006/diff/220001/ash/shelf/shelf_window_watcher.cc File ash/shelf/shelf_window_watcher.cc (right): https://codereview.chromium.org/108313006/diff/220001/ash/shelf/shelf_window_watcher.cc#newcode190 ash/shelf/shelf_window_watcher.cc:190: observed_removed_windows_.Add(window); On 2014/01/08 15:01:49, ...
6 years, 11 months ago (2014-01-09 01:00:08 UTC) #16
sky
LGTM
6 years, 11 months ago (2014-01-09 16:00:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhong@chromium.org/108313006/290001
6 years, 11 months ago (2014-01-09 17:05:55 UTC) #18
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 20:43:12 UTC) #19
Message was sent while issue was closed.
Change committed as 243970

Powered by Google App Engine
This is Rietveld 408576698