Chromium Code Reviews
Help | Chromium Project | Sign in
(1)

Issue 2962018: Respect Spaces when dragging tabs on OS X (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 10 months ago by David Benjamin
Modified:
3 years, 11 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Respect Spaces when dragging tabs on OS X For 10.6 and above, we can simply filter windows out with isOnActiveSpace. For 10.5, there is another API in CoreGraphics that gives us the same information. It is slow and causes noticeable CPU usage during a drag, so cache it per-drag. R=pinkerton BUG=32796 TEST=open windows on separate spaces, drag a tab over where a window is on the other space Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52960

Patch Set 1 #

Patch Set 2 : Don't cache the dragWindow so that switching spaces mid-drag works #

Total comments: 20

Patch Set 3 : Address Mark's comments #

Total comments: 4

Patch Set 4 : Fix up comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -0 lines) Patch
M chrome/browser/cocoa/tab_view.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_view.mm View 1 2 3 5 chunks +67 lines, -0 lines 2 comments Download
Trybot results:  mac 
Commit: CQ not working?

Messages

Total messages: 10 (0 generated)
David Benjamin
This was annoying me, so I went and gave it a go. :-) I don't ...
4 years, 10 months ago (2010-07-14 23:56:09 UTC) #1
rohitrao (OOO until 6-22)
+pink, because he was just complaining that he didn't have enough reviews. This is great. ...
4 years, 10 months ago (2010-07-15 14:45:12 UTC) #2
David Benjamin
On 2010/07/15 14:45:12, rohitrao wrote: > I do worry about the slow version though, because ...
4 years, 10 months ago (2010-07-15 16:33:20 UTC) #3
Mark Mentovai - out til August
http://codereview.chromium.org/2962018/diff/3001/4001 File chrome/browser/cocoa/tab_view.h (right): http://codereview.chromium.org/2962018/diff/3001/4001#newcode9 chrome/browser/cocoa/tab_view.h:9: #include <CoreGraphics/CGWindow.h> Overly-specific. Just use <CoreGraphics/CoreGraphics.h>. That’s how we ...
4 years, 10 months ago (2010-07-15 17:00:26 UTC) #4
David Benjamin
http://codereview.chromium.org/2962018/diff/3001/4001 File chrome/browser/cocoa/tab_view.h (right): http://codereview.chromium.org/2962018/diff/3001/4001#newcode9 chrome/browser/cocoa/tab_view.h:9: #include <CoreGraphics/CGWindow.h> On 2010/07/15 17:00:27, Mark Mentovai wrote: > ...
4 years, 10 months ago (2010-07-15 17:37:24 UTC) #5
pink
almost there! http://codereview.chromium.org/2962018/diff/11001/12002 File chrome/browser/cocoa/tab_view.mm (right): http://codereview.chromium.org/2962018/diff/11001/12002#newcode176 chrome/browser/cocoa/tab_view.mm:176: // We don't care the workspace of ...
4 years, 10 months ago (2010-07-19 13:32:46 UTC) #6
David Benjamin
http://codereview.chromium.org/2962018/diff/11001/12002 File chrome/browser/cocoa/tab_view.mm (right): http://codereview.chromium.org/2962018/diff/11001/12002#newcode176 chrome/browser/cocoa/tab_view.mm:176: // We don't care the workspace of |dragWindow| because ...
4 years, 10 months ago (2010-07-19 17:06:15 UTC) #7
pink
LGTM with comment fix. Who wants to try to land this? http://codereview.chromium.org/2962018/diff/14002/16002 File chrome/browser/cocoa/tab_view.mm (right): ...
4 years, 10 months ago (2010-07-19 17:14:35 UTC) #8
David Benjamin
> Who wants to try to land this? Er, I should have bits to land ...
4 years, 10 months ago (2010-07-19 17:25:16 UTC) #9
pink
4 years, 10 months ago (2010-07-19 17:26:49 UTC) #10
On Mon, Jul 19, 2010 at 1:25 PM,  <davidben@chromium.org> wrote:
>> Who wants to try to land this?
>
> Er, I should have bits to land it myself, or did you mean "It needs another
> LGTM, who wants to okay it?"

Sorry, didn't catch you had a chromium account already.

-- 
Mike Pinkerton
Mac Weenie
pinkerton@google.com
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be