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

Issue 1023083002: [MacViews] Implement size constraints for app windows. (Closed)

Created:
5 years, 9 months ago by jackhou1
Modified:
5 years, 8 months ago
Reviewers:
tapted, Nico
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 size constraints for app windows. This works the same way as NativeAppWindowCocoa by setting properties on the NSWindow in OnSizeConstraintsChanged. This also moves some code in common with NativeAppWindowCocoa out to c/b/ui/cocoa/apps/nswindow_util.h. More code will be moved there as they're implemented on MacViews, e.g. CalculateDraggableRegions. BUG=459877 Committed: https://crrev.com/b563202b63c248fa7f3605f802d7649ae7d48562 Cr-Commit-Position: refs/heads/master@{#323429}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Sync and rebase #

Patch Set 3 : Address comments. #

Total comments: 9

Patch Set 4 : Update test. #

Patch Set 5 : Address comments. #

Total comments: 15

Patch Set 6 : Address comments. #

Total comments: 2

Patch Set 7 : Address comments. #

Patch Set 8 : Change nswindow_util to nswindow_frame_controls. #

Patch Set 9 : Sync and rebase #

Patch Set 10 : Update ui/gfx/BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -39 lines) Patch
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 2 3 4 5 6 7 5 chunks +6 lines, -38 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/native_app_window_frame_view_mac.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/apps/native_app_window_frame_view_mac.mm View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A ui/gfx/mac/nswindow_frame_controls.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A ui/gfx/mac/nswindow_frame_controls.mm View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 6 7 3 chunks +18 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 27 (6 generated)
jackhou1
tapted, could you take a look?
5 years, 9 months ago (2015-03-20 04:33:32 UTC) #2
tapted
https://codereview.chromium.org/1023083002/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/1023083002/diff/1/chrome/browser/ui/views/apps/app_window_native_widget_mac.mm#newcode26 chrome/browser/ui/views/apps/app_window_native_widget_mac.mm:26: gfx::Size minimum_size = delegate()->GetMinimumSize(); I think to be consistent ...
5 years, 9 months ago (2015-03-20 12:12:53 UTC) #3
tapted
looking good - I think you're still going (e.g. nswindow_util.h needs some comments), but here ...
5 years, 9 months ago (2015-03-25 18:50:23 UTC) #4
jackhou1
Yeah, I still need to sort out this bug: https://code.google.com/p/chromium/issues/detail?id=362039 If it manifests in the ...
5 years, 9 months ago (2015-03-25 23:32:24 UTC) #5
jackhou1
Looks like that bug doesn't happen on Views, updated the test. https://codereview.chromium.org/1023083002/diff/40001/ui/gfx/mac/nswindow_util.h File ui/gfx/mac/nswindow_util.h (right): ...
5 years, 9 months ago (2015-03-26 03:50:46 UTC) #6
tapted
Sorry again for the delay.. I think I started with an initial draft comment, and ...
5 years, 8 months ago (2015-03-30 06:33:38 UTC) #7
jackhou1
https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.h File chrome/browser/ui/views/apps/native_frame_view_mac.h (right): https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.h#newcode12 chrome/browser/ui/views/apps/native_frame_view_mac.h:12: class NativeFrameViewMac : public views::NativeFrameView { On 2015/03/30 06:33:37, ...
5 years, 8 months ago (2015-03-31 00:50:43 UTC) #8
tapted
lgtm % nit and NativeFrameViewMac renamed https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.mm File chrome/browser/ui/views/apps/native_frame_view_mac.mm (right): https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.mm#newcode22 chrome/browser/ui/views/apps/native_frame_view_mac.mm:22: gfx::Rect NativeFrameViewMac::GetWindowBoundsForClientBounds( On ...
5 years, 8 months ago (2015-03-31 01:06:30 UTC) #9
jackhou1
https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.mm File chrome/browser/ui/views/apps/native_frame_view_mac.mm (right): https://codereview.chromium.org/1023083002/diff/80001/chrome/browser/ui/views/apps/native_frame_view_mac.mm#newcode22 chrome/browser/ui/views/apps/native_frame_view_mac.mm:22: gfx::Rect NativeFrameViewMac::GetWindowBoundsForClientBounds( On 2015/03/31 01:06:30, tapted wrote: > On ...
5 years, 8 months ago (2015-03-31 01:59:48 UTC) #10
jackhou1
thakis, please review for OWNERS in: ui/gfx/mac/
5 years, 8 months ago (2015-03-31 02:00:09 UTC) #12
Nico
We try not to do "_util" files as they tend to end up as dumping ...
5 years, 8 months ago (2015-03-31 16:46:14 UTC) #13
jackhou1
On 2015/03/31 16:46:14, Nico wrote: > We try not to do "_util" files as they ...
5 years, 8 months ago (2015-04-01 04:59:10 UTC) #14
Nico
ui/ lgtm, thanks!
5 years, 8 months ago (2015-04-01 18:30:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023083002/160001
5 years, 8 months ago (2015-04-01 23:27:17 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 8 months ago (2015-04-02 00:21:57 UTC) #19
jackhou1
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1051953003/ by jackhou@chromium.org. ...
5 years, 8 months ago (2015-04-02 00:35:01 UTC) #20
jackhou1
On 2015/04/02 00:35:01, jackhou1 wrote: > A revert of this CL (patchset #9 id:160001) has ...
5 years, 8 months ago (2015-04-02 03:23:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023083002/180001
5 years, 8 months ago (2015-04-02 03:24:22 UTC) #24
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 8 months ago (2015-04-02 04:49:37 UTC) #25
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/9e8ce105ccdb982d1312583af780cf3d5d66161e Cr-Commit-Position: refs/heads/master@{#323376}
5 years, 8 months ago (2015-04-03 20:20:16 UTC) #26
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:22:47 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b563202b63c248fa7f3605f802d7649ae7d48562
Cr-Commit-Position: refs/heads/master@{#323429}

Powered by Google App Engine
This is Rietveld 408576698