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

Issue 23737003: Mac: Fix window raising for multiple desktops (Closed)

Created:
7 years, 3 months ago by davidben
Modified:
7 years, 3 months ago
Reviewers:
jackhou1, Nico, tapted
CC:
chromium-reviews
Visibility:
Public.

Description

Mac: Fix window raising for multiple desktops When raising a set of windows in response to a dock icon click, only raise the ones on the currently active space. We currently raise all of them and switch spaces haphazardly. Also tidy up the applicationShouldHandleReopen:hasVisibileWindows: callback. We should return NO since we've reacted and don't need AppKit to deminiaturize for us. (Although it seems to not make much difference, probably because we've already picked a window to deminiaturize, so AppKit won't pick a second.) Also remove the tabbed/popup check. As of r192264, those are the only browser window types. BUG=281674 TEST=Open a browser window in Desktop 1 and one in Desktop 2. Switch to Desktop 2. Open another application in Desktop 2 and make it foreground. Click the dock icon for Chrome. Should remain on Desktop 2. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221495

Patch Set 1 #

Patch Set 2 : Fix PlatformAppReopenWithWindows test #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Manually switch spaces for app shims #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -18 lines) Patch
M apps/app_shim/extension_app_shim_handler_mac.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/app_controller_mac_browsertest.mm View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ui/base/cocoa/focus_window_set.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/base/cocoa/focus_window_set.mm View 1 2 3 1 chunk +37 lines, -6 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
davidben
Alright, this is kind of hairy. So, I spent some time trying to figure out ...
7 years, 3 months ago (2013-08-29 20:08:09 UTC) #1
jackhou1
> I put this in FocusWindowSet instead of the AppController callback because it > looks ...
7 years, 3 months ago (2013-08-30 03:52:46 UTC) #2
davidben
On 2013/08/30 03:52:46, jackhou1 wrote: > > I put this in FocusWindowSet instead of the ...
7 years, 3 months ago (2013-08-30 22:55:28 UTC) #3
jackhou1
Unfortunately, we don't yet know exactly why that bug happens. I patched this CL to ...
7 years, 3 months ago (2013-09-02 06:07:23 UTC) #4
davidben
Does this version work better for app shims? (I can't test them myself because of ...
7 years, 3 months ago (2013-09-03 20:01:53 UTC) #5
jackhou1
On 2013/09/03 20:01:53, David Benjamin wrote: > Does this version work better for app shims? ...
7 years, 3 months ago (2013-09-04 01:19:40 UTC) #6
davidben
Oh, apparently I need more OWNERS now. tapted, thakis, could you guys take a look ...
7 years, 3 months ago (2013-09-04 14:21:55 UTC) #7
Nico
https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm File ui/base/cocoa/focus_window_set.mm (right): https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm#newcode28 ui/base/cocoa/focus_window_set.mm:28: // we deminiaturize the browser, and that triggers switching ...
7 years, 3 months ago (2013-09-04 15:50:09 UTC) #8
Nico
But if you want to address this in a follow-up, this lgtm too since it ...
7 years, 3 months ago (2013-09-04 15:50:57 UTC) #9
davidben
https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm File ui/base/cocoa/focus_window_set.mm (right): https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm#newcode28 ui/base/cocoa/focus_window_set.mm:28: // we deminiaturize the browser, and that triggers switching ...
7 years, 3 months ago (2013-09-04 16:05:58 UTC) #10
davidben
https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm File ui/base/cocoa/focus_window_set.mm (right): https://codereview.chromium.org/23737003/diff/21001/ui/base/cocoa/focus_window_set.mm#newcode28 ui/base/cocoa/focus_window_set.mm:28: // we deminiaturize the browser, and that triggers switching ...
7 years, 3 months ago (2013-09-04 16:19:16 UTC) #11
tapted
lgtm
7 years, 3 months ago (2013-09-05 00:07:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/23737003/21001
7 years, 3 months ago (2013-09-05 13:56:26 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 19:38:51 UTC) #14
Message was sent while issue was closed.
Change committed as 221495

Powered by Google App Engine
This is Rietveld 408576698