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

Issue 1315043003: [MacViews] Position modal sheets using ModalDialogHost. (Closed)

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

Description

[MacViews] Position modal sheets using ModalDialogHost. This makes ViewsNSWindowDelegate override -[NSWindow window:willPositionSheet:usingRect:] and call the newly added NativeWidgetMac::SheetPositionY(). BrowserFrameMac implements SheetPositionY() using the same ModalDialogHost as Views browsers. Note that on Views, modal dialogs appear below the omnibox whereas on Cocoa they appear below the bookmarks bar, but this can be addressed later as MacViews UX is not finalized. BUG=524847 Committed: https://crrev.com/c5fd2cddccff942e467846c4cf3ba5b9fc089b34 Cr-Commit-Position: refs/heads/master@{#346008}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Total comments: 6

Patch Set 3 : Address comments. #

Patch Set 4 : Missded a comment nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
M chrome/browser/ui/views/frame/browser_frame_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_mac.mm View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M ui/views/cocoa/views_nswindow_delegate.mm View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (3 generated)
jackhou1
tapted, PTAL
5 years, 4 months ago (2015-08-26 02:10:05 UTC) #2
tapted
nits mostly.. https://codereview.chromium.org/1315043003/diff/1/chrome/browser/ui/views/apps/app_window_native_widget_mac.mm File chrome/browser/ui/views/apps/app_window_native_widget_mac.mm (right): https://codereview.chromium.org/1315043003/diff/1/chrome/browser/ui/views/apps/app_window_native_widget_mac.mm#newcode25 chrome/browser/ui/views/apps/app_window_native_widget_mac.mm:25: return NSHeight([ns_window frame]) - NSMaxY([[ns_window contentView] frame]); ...
5 years, 4 months ago (2015-08-26 03:20:41 UTC) #3
jackhou1
https://codereview.chromium.org/1315043003/diff/1/chrome/browser/ui/views/apps/app_window_native_widget_mac.mm File chrome/browser/ui/views/apps/app_window_native_widget_mac.mm (right): https://codereview.chromium.org/1315043003/diff/1/chrome/browser/ui/views/apps/app_window_native_widget_mac.mm#newcode25 chrome/browser/ui/views/apps/app_window_native_widget_mac.mm:25: return NSHeight([ns_window frame]) - NSMaxY([[ns_window contentView] frame]); On 2015/08/26 ...
5 years, 4 months ago (2015-08-26 07:02:09 UTC) #4
tapted
some suggestions... https://codereview.chromium.org/1315043003/diff/20001/chrome/browser/ui/views/frame/browser_frame_mac.mm File chrome/browser/ui/views/frame/browser_frame_mac.mm (right): https://codereview.chromium.org/1315043003/diff/20001/chrome/browser/ui/views/frame/browser_frame_mac.mm#newcode38 chrome/browser/ui/views/frame/browser_frame_mac.mm:38: // ModalDialogHost::GetDialogPosition is relative to the host ...
5 years, 4 months ago (2015-08-26 07:27:49 UTC) #5
jackhou1
https://codereview.chromium.org/1315043003/diff/20001/chrome/browser/ui/views/frame/browser_frame_mac.mm File chrome/browser/ui/views/frame/browser_frame_mac.mm (right): https://codereview.chromium.org/1315043003/diff/20001/chrome/browser/ui/views/frame/browser_frame_mac.mm#newcode38 chrome/browser/ui/views/frame/browser_frame_mac.mm:38: // ModalDialogHost::GetDialogPosition is relative to the host view. On ...
5 years, 3 months ago (2015-08-27 05:38:09 UTC) #6
tapted
lgtm
5 years, 3 months ago (2015-08-27 07:03:13 UTC) #7
jackhou1
sky, please review for OWNERS of c/b/ui/views/frame/
5 years, 3 months ago (2015-08-27 07:11:03 UTC) #9
sky
LGTM
5 years, 3 months ago (2015-08-27 16:49:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315043003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315043003/60001
5 years, 3 months ago (2015-08-27 22:28:33 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-08-27 22:37:57 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-08-27 22:38:43 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c5fd2cddccff942e467846c4cf3ba5b9fc089b34
Cr-Commit-Position: refs/heads/master@{#346008}

Powered by Google App Engine
This is Rietveld 408576698