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

Issue 2735723003: MacViews: Don't switch Spaces when calling ShowInactive() for a child Widget. (Closed)

Created:
3 years, 9 months ago by snake
Modified:
3 years, 9 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Don't switch Spaces when calling ShowInactive() for a child Widget. StatusBubbleViews::StatusView could accidentally switch a Space. It will call Widget::ShowInactive(), which will invoke [window_ orderWindow:NSWindowAbove relativeTo:parent_window_number], which will in turn switch the Space (if Chromium is the frontmost application). Transient collection behaviour stops NSWindows from triggering this. BUG=697829 Review-Url: https://codereview.chromium.org/2735723003 Cr-Commit-Position: refs/heads/master@{#455003} Committed: https://chromium.googlesource.com/chromium/src/+/c4668427a0d5fdd3b376adc871108f14803c6738

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
snake
3 years, 9 months ago (2017-03-06 18:23:20 UTC) #3
snake
MacViews build is waiting the compilation fix: https://codereview.chromium.org/2737523002/
3 years, 9 months ago (2017-03-06 19:00:58 UTC) #8
tapted
lgtm - thanks! (I'm assuming you verified manually that NSWindowCollectionBehaviorTransient does indeed suppress the Spaces ...
3 years, 9 months ago (2017-03-06 22:22:42 UTC) #9
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/2735723003/1
3 years, 9 months ago (2017-03-06 23:54:48 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/c4668427a0d5fdd3b376adc871108f14803c6738
3 years, 9 months ago (2017-03-07 00:00:18 UTC) #14
themblsha
3 years, 9 months ago (2017-03-07 12:27:58 UTC) #15
Message was sent while issue was closed.
On 2017/03/06 22:22:42, tapted wrote:
> lgtm - thanks!
> 
> (I'm assuming you verified manually that NSWindowCollectionBehaviorTransient
> does indeed suppress the Spaces switching - I can't think of any way to test
> that automatically)

Yep, NSWindowCollectionBehaviorTransient worked, but
NSWindowCollectionBehaviorMoveToActiveSpace didn't.

Powered by Google App Engine
This is Rietveld 408576698