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

Issue 993253002: MacViews: Implement Window-modal dialogs using sheets (Closed)

Created:
5 years, 9 months ago by tapted
Modified:
5 years, 9 months ago
Reviewers:
Andre, sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org, mac-views-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: Implement Window-modal dialogs using sheets These are used, e.g., for the Bookmark -> Edit... dialogs on Cocoa and Views. This gets WidgetTestInteractive.*Window*ModalWindowDestroyedActivationTest passing. WidgetTestInteractive.*System*ModalWindowReleasesCapture is disabled in this CL. System modal windows are not needed on Mac. Currently the implementation on MacViews assumes all modal dialogs are shown using a sheet. On Cocoa, this is not always true for WebContents-Modal dialogs (e.g. cookies and site data), but it is true for some WebContents-Modal dialogs (e.g. certificate information). A follow-up will add logic to ensure WebContents-Modal dialogs are handled appropriately, and have good test coverage. After this all tests pass on the current mac trybot configuration with toolkit_views=1. BUG=403679 Committed: https://crrev.com/3de6ad4c2b4c8f52daa2119a24063cd9309460e6 Cr-Commit-Position: refs/heads/master@{#320977}

Patch Set 1 #

Patch Set 2 : It actually works :o #

Patch Set 3 : Do not try to call endSheet in destructor #

Patch Set 4 : rebase over crrev/994333003 #

Patch Set 5 : rebase to master #

Patch Set 6 : update isolate #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -6 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 1 comment Download
M chrome/interactive_ui_tests.isolate View 1 2 3 4 5 2 chunks +1 line, -1 line 1 comment Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 chunks +33 lines, -2 lines 0 comments Download
M ui/views/cocoa/views_nswindow_delegate.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/cocoa/views_nswindow_delegate.mm View 1 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/examples/widget_example.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/examples/widget_example.cc View 1 3 chunks +17 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 chunks +18 lines, -1 line 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 2 3 4 chunks +23 lines, -2 lines 1 comment Download

Messages

Total messages: 17 (10 generated)
tapted
Hi Andre WDYT of this approach? Note this is based off the WidgetFocusChangeListener change in ...
5 years, 9 months ago (2015-03-11 23:15:15 UTC) #5
Andre
LGTM
5 years, 9 months ago (2015-03-12 00:33:08 UTC) #6
tapted
Hi sky, please take a look for owners (widget_interactive_uitest.cc, views/examples/*, chrome/test/BUILD.gn and interactive_ui_tests.isolate ) Andre ...
5 years, 9 months ago (2015-03-17 10:39:48 UTC) #11
sky
LGTM
5 years, 9 months ago (2015-03-17 19:04:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/993253002/220001
5 years, 9 months ago (2015-03-17 20:30:04 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:220001)
5 years, 9 months ago (2015-03-17 21:28:36 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 21:29:11 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3de6ad4c2b4c8f52daa2119a24063cd9309460e6
Cr-Commit-Position: refs/heads/master@{#320977}

Powered by Google App Engine
This is Rietveld 408576698