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

Issue 15969028: Fixed extension/app window maximum size calculation on Windows. (Closed)

Created:
7 years, 6 months ago by dharcourt
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, jeremya+watch_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Fixed extension/app window maximum size calculation on Windows. Previously the height of window title bars was added to the maximum content size of windows only if there was a maximum width as well as a maximum height. This fixes that so it's possible to specify maxHeight without specifying maxWidth to chrome.app.window.create(). BUG=246289 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203962

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Implemented review suggestions. #

Total comments: 2

Patch Set 3 : Implemented additional review suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/browser/ui/views/extensions/shell_window_frame_view.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
dharcourt
Vincent, could you review this fix when you get a chance? Peter, could you do ...
7 years, 6 months ago (2013-06-03 22:35:25 UTC) #1
jeremya
lgtm, though won't this code be removed when native frames get turned on?
7 years, 6 months ago (2013-06-03 22:43:15 UTC) #2
Peter Kasting
This change seems fine as far as it goes, but what about * Enlarging the ...
7 years, 6 months ago (2013-06-03 22:48:43 UTC) #3
jeremya
On 2013/06/03 22:48:43, Peter Kasting wrote: > This change seems fine as far as it ...
7 years, 6 months ago (2013-06-03 23:01:30 UTC) #4
Peter Kasting
On 2013/06/03 23:01:30, jeremya wrote: > On 2013/06/03 22:48:43, Peter Kasting wrote: > > This ...
7 years, 6 months ago (2013-06-03 23:05:25 UTC) #5
scheib
Great to have the fix. LGTM with comment: https://codereview.chromium.org/15969028/diff/2001/chrome/browser/ui/views/extensions/shell_window_frame_view.cc File chrome/browser/ui/views/extensions/shell_window_frame_view.cc (right): https://codereview.chromium.org/15969028/diff/2001/chrome/browser/ui/views/extensions/shell_window_frame_view.cc#newcode350 chrome/browser/ui/views/extensions/shell_window_frame_view.cc:350: max_size.Enlarge(0, ...
7 years, 6 months ago (2013-06-03 23:35:52 UTC) #6
dharcourt
On 2013/06/03 23:05:25, Peter Kasting wrote: > On 2013/06/03 23:01:30, jeremya wrote: > > On ...
7 years, 6 months ago (2013-06-03 23:38:13 UTC) #7
dharcourt
On 2013/06/03 22:43:15, jeremya wrote: > lgtm, though won't this code be removed when native ...
7 years, 6 months ago (2013-06-03 23:39:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/15969028/4002
7 years, 6 months ago (2013-06-03 23:39:40 UTC) #9
Peter Kasting
https://codereview.chromium.org/15969028/diff/4002/chrome/browser/ui/views/extensions/shell_window_frame_view.cc File chrome/browser/ui/views/extensions/shell_window_frame_view.cc (right): https://codereview.chromium.org/15969028/diff/4002/chrome/browser/ui/views/extensions/shell_window_frame_view.cc#newcode350 chrome/browser/ui/views/extensions/shell_window_frame_view.cc:350: DCHECK(client_size.width() == width()); Yeah, let's just go ahead and ...
7 years, 6 months ago (2013-06-03 23:51:03 UTC) #10
dharcourt
https://codereview.chromium.org/15969028/diff/2001/chrome/browser/ui/views/extensions/shell_window_frame_view.cc File chrome/browser/ui/views/extensions/shell_window_frame_view.cc (right): https://codereview.chromium.org/15969028/diff/2001/chrome/browser/ui/views/extensions/shell_window_frame_view.cc#newcode350 chrome/browser/ui/views/extensions/shell_window_frame_view.cc:350: max_size.Enlarge(0, GetBoundsForClientView().y()); On 2013/06/03 23:35:53, scheib wrote: > Please ...
7 years, 6 months ago (2013-06-04 00:17:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/15969028/9002
7 years, 6 months ago (2013-06-04 00:18:14 UTC) #12
jeremya
On 2013/06/03 23:39:09, dharcourt wrote: > On 2013/06/03 22:43:15, jeremya wrote: > > lgtm, though ...
7 years, 6 months ago (2013-06-04 02:00:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/15969028/9002
7 years, 6 months ago (2013-06-04 07:45:34 UTC) #14
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 14:06:12 UTC) #15
Message was sent while issue was closed.
Change committed as 203962

Powered by Google App Engine
This is Rietveld 408576698