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

Issue 1614663002: MacViews: Bubbles and dialogs behave more like sheets wrt main status (Closed)

Created:
4 years, 11 months ago by tapted
Modified:
4 years, 11 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Bubbles and dialogs behave more like sheets wrt main status Currently dialog boxes do not take main status from the parent window. Change this so that any child window does not become a main window. Also, use the same trick that Cocoa bubbles use to avoid the traffic lights dimming, but only do this for child windows that don't have their own traffic lights. BUG=543689 Committed: https://crrev.com/5243ef97ef67f4525987e40d28e6150f0d852f39 Cr-Commit-Position: refs/heads/master@{#372036}

Patch Set 1 : failed interactive_ui_test attempt: can't seem to query traffic light "enabled" status #

Patch Set 2 : rollback failed test attempt #

Patch Set 3 : Guess I didn't really need that change #

Patch Set 4 : A test!@ #

Total comments: 1

Patch Set 5 : Fix crash - much nicer anyway :) #

Total comments: 4

Patch Set 6 : More robust teardown #

Patch Set 7 : Comprehensive test, respond to comment #

Total comments: 3

Patch Set 8 : DCHECK -> EXPECT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -11 lines) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 2 chunks +24 lines, -9 lines 0 comments Download
M ui/views/cocoa/native_widget_mac_nswindow.mm View 1 2 3 5 2 chunks +11 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac_interactive_uitest.mm View 1 2 3 4 5 6 2 chunks +78 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 4 5 6 7 3 chunks +103 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
tapted
Hiya Robert - could you please take a look?
4 years, 11 months ago (2016-01-21 07:46:10 UTC) #2
tapted
rsesek: PTAL (whoopsies) https://codereview.chromium.org/1614663002/diff/60001/ui/views/cocoa/native_widget_mac_nswindow.mm File ui/views/cocoa/native_widget_mac_nswindow.mm (right): https://codereview.chromium.org/1614663002/diff/60001/ui/views/cocoa/native_widget_mac_nswindow.mm#newcode90 ui/views/cocoa/native_widget_mac_nswindow.mm:90: !views::NativeWidgetMac::GetBridgeForNativeWindow(self)->parent(); oops - this was crashing ...
4 years, 11 months ago (2016-01-21 23:02:27 UTC) #4
Robert Sesek
LGTM w/ a nit https://codereview.chromium.org/1614663002/diff/100001/ui/views/widget/native_widget_mac_interactive_uitest.mm File ui/views/widget/native_widget_mac_interactive_uitest.mm (right): https://codereview.chromium.org/1614663002/diff/100001/ui/views/widget/native_widget_mac_interactive_uitest.mm#newcode157 ui/views/widget/native_widget_mac_interactive_uitest.mm:157: } " // namespace" and ...
4 years, 11 months ago (2016-01-21 23:41:35 UTC) #5
tapted
bleh - jumped the gun trying to sneak in while there's timezone overlap. Although this ...
4 years, 11 months ago (2016-01-22 00:28:06 UTC) #6
tapted
PTAL at Patchset 7. canBecomeMainWindow returns back to how it was in patchset 4, but ...
4 years, 11 months ago (2016-01-22 06:32:48 UTC) #9
tapted
rsesek: ping? (PTAL at the changes after patchset 5)
4 years, 11 months ago (2016-01-27 10:36:37 UTC) #10
Robert Sesek
LGTM sorry, swamped this week https://codereview.chromium.org/1614663002/diff/180001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/1614663002/diff/180001/ui/views/widget/native_widget_mac_unittest.mm#newcode946 ui/views/widget/native_widget_mac_unittest.mm:946: DCHECK(child_closed_); // Otherwise the ...
4 years, 11 months ago (2016-01-27 22:15:13 UTC) #11
tapted
Thanks robert! https://codereview.chromium.org/1614663002/diff/180001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/1614663002/diff/180001/ui/views/widget/native_widget_mac_unittest.mm#newcode946 ui/views/widget/native_widget_mac_unittest.mm:946: DCHECK(child_closed_); // Otherwise the observer wasn't removed. ...
4 years, 11 months ago (2016-01-28 06:58:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1614663002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1614663002/200001
4 years, 11 months ago (2016-01-28 06:59:13 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 11 months ago (2016-01-28 07:04:50 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-28 07:05:53 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5243ef97ef67f4525987e40d28e6150f0d852f39
Cr-Commit-Position: refs/heads/master@{#372036}

Powered by Google App Engine
This is Rietveld 408576698