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

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

Created:
10 years, 5 months ago by davidben
Modified:
9 years, 6 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

Messages

Total messages: 10 (0 generated)
davidben
This was annoying me, so I went and gave it a go. :-) I don't ...
10 years, 5 months ago (2010-07-14 23:56:09 UTC) #1
rohitrao (ping after 24h)
+pink, because he was just complaining that he didn't have enough reviews. This is great. ...
10 years, 5 months ago (2010-07-15 14:45:12 UTC) #2
davidben
On 2010/07/15 14:45:12, rohitrao wrote: > I do worry about the slow version though, because ...
10 years, 5 months ago (2010-07-15 16:33:20 UTC) #3
Mark Mentovai
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 ...
10 years, 5 months ago (2010-07-15 17:00:26 UTC) #4
davidben
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: > ...
10 years, 5 months ago (2010-07-15 17:37:24 UTC) #5
pink (ping after 24hrs)
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 ...
10 years, 5 months ago (2010-07-19 13:32:46 UTC) #6
davidben
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 ...
10 years, 5 months ago (2010-07-19 17:06:15 UTC) #7
pink (ping after 24hrs)
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): ...
10 years, 5 months ago (2010-07-19 17:14:35 UTC) #8
davidben
> Who wants to try to land this? Er, I should have bits to land ...
10 years, 5 months ago (2010-07-19 17:25:16 UTC) #9
pink (ping after 24hrs)
10 years, 5 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

Powered by Google App Engine
This is Rietveld 408576698