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

Issue 2914793005: [mus+ash] Fixes minimum browser window size (store / retrieve kPreferredSize property) (Closed)

Created:
3 years, 6 months ago by varkha
Modified:
3 years, 6 months ago
Reviewers:
Tom Sepez, sadrul, sky
CC:
chromium-reviews, kalyank, sadrul, tfarina, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[mus+ash] Fixes minimum browser window size with --mash Store kPreferredSize property in an aura::Window when Chrome browser frame is updated upon BrowserView::Layout(). Retrieve it in CustomFrameViewAsh::GetMinimumSize() to ensure that in Mus the browser window frame honors window size constraints. This only affects chrome browser frame when running with --mash. BUG=728455 TEST=BrowserNonClientFrameViewAshTest.FrameMinSizeIsUpdated CustomFrameViewAshTest.HonorsMinimumSizeProperty Review-Url: https://codereview.chromium.org/2914793005 Cr-Commit-Position: refs/heads/master@{#481716} Committed: https://chromium.googlesource.com/chromium/src/+/1a44d226bb121c7f29cbe2edc3c0215ebc3f7a54

Patch Set 1 #

Patch Set 2 : [mus+ash] Fixes minimum browser window size (store / retrieve kMinimumSize property) #

Total comments: 2

Patch Set 3 : [mus+ash] Fixes minimum browser window size (update kMinimumSize property in Layout()) #

Total comments: 2

Patch Set 4 : [mus+ash] Fixes minimum browser window size (nits / rebase) #

Total comments: 2

Patch Set 5 : [mus+ash] Fixes minimum browser window size (tests) #

Patch Set 6 : [mus+ash] Fixes minimum browser window size (tests) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -2 lines) Patch
M ash/frame/custom_frame_view_ash.cc View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M ash/frame/custom_frame_view_ash_unittest.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M ash/public/cpp/mus_property_mirror_ash.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 2 3 4 5 3 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/top_container_view.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/top_container_view.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/property_converter.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (36 generated)
varkha
sadrul@, can you please take a look? This just demonstrates that mirrored properties indeed can ...
3 years, 6 months ago (2017-06-01 01:12:19 UTC) #4
varkha
Test failures suggest that I should be using a new property but other questions / ...
3 years, 6 months ago (2017-06-01 02:35:06 UTC) #7
sadrul
https://codereview.chromium.org/2914793005/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc (right): https://codereview.chromium.org/2914793005/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc#newcode348 chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc:348: return min_size; This is the only part that I ...
3 years, 6 months ago (2017-06-01 17:14:20 UTC) #16
varkha
https://codereview.chromium.org/2914793005/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc (right): https://codereview.chromium.org/2914793005/diff/60001/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc#newcode348 chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc:348: return min_size; On 2017/06/01 17:14:20, sadrul wrote: > This ...
3 years, 6 months ago (2017-06-19 15:57:36 UTC) #19
varkha
sadrul@, ping?
3 years, 6 months ago (2017-06-21 20:17:51 UTC) #24
sadrul
I think this looks good, yeah! lgtm https://codereview.chromium.org/2914793005/diff/80001/ash/frame/custom_frame_view_ash.cc File ash/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/2914793005/diff/80001/ash/frame/custom_frame_view_ash.cc#newcode389 ash/frame/custom_frame_view_ash.cc:389: std::max(min_size.height(), min_window_size->height())); ...
3 years, 6 months ago (2017-06-21 21:09:57 UTC) #25
varkha
sky@ can you please take a look for OWNERS? Thanks!
3 years, 6 months ago (2017-06-21 22:52:39 UTC) #27
varkha
Thanks for the tip, sadrul@! https://codereview.chromium.org/2914793005/diff/80001/ash/frame/custom_frame_view_ash.cc File ash/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/2914793005/diff/80001/ash/frame/custom_frame_view_ash.cc#newcode389 ash/frame/custom_frame_view_ash.cc:389: std::max(min_size.height(), min_window_size->height())); On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 23:33:27 UTC) #28
sky
This looks right to me, but how about test coverage that CustomFrameViewAsh honors the minimum ...
3 years, 6 months ago (2017-06-22 03:41:10 UTC) #33
varkha
> test coverage that CustomFrameViewAsh honors the minimum and that BrowserView updates the minimum. The ...
3 years, 6 months ago (2017-06-22 17:50:14 UTC) #36
sky
Fair enough, LGTM
3 years, 6 months ago (2017-06-22 20:17:29 UTC) #37
varkha
+tsepez@ for services/ui/public/interfaces/OWNERS (adding a synchronized window property to hold the minimum window size).
3 years, 6 months ago (2017-06-22 20:26:02 UTC) #39
Tom Sepez
mojom lgtm
3 years, 6 months ago (2017-06-22 20:47:17 UTC) #43
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/2914793005/140001
3 years, 6 months ago (2017-06-22 23:22:34 UTC) #48
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 23:27:31 UTC) #51
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/1a44d226bb121c7f29cbe2edc3c0...

Powered by Google App Engine
This is Rietveld 408576698