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

Issue 62333015: Ensure that the first browser window which is created in Windows 8 ASH is maximized. (Closed)

Created:
7 years, 1 month ago by ananta
Modified:
7 years, 1 month ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Ensure that the first browser window which is created in Windows 8 ASH is maximized. This is done via the Ash WindowPositioner class. The change is in the WindowPositioner::GetBoundsAndShowStateForNewWindow function which for windows returns SHOW_STATE_MAXIMIZED if this is the first window being opened. Based on a discussion with oshima, I enabled the WindowSizerAshTest ash unit tests for Windows. There were a number of places in the WindowSizer class where we were allowing browsers to be in ASH only for Chrome OS. Checking for the host desktop type should be enough. This was needed to get the window to be maximized for ASH. Fixes bug http://crbug.com/231603 BUG=231603 R=cpu@chromium.org, oshima@chromium.org, sky@chromium.org, cpu, oshima, sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236134

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 7

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -37 lines) Patch
M ash/test/ash_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +17 lines, -15 lines 0 comments Download
M ash/wm/window_positioner.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/window_positioner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +11 lines, -3 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +20 lines, -6 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
ananta
7 years, 1 month ago (2013-11-09 04:13:01 UTC) #1
cpu_(ooo_6.6-7.5)
this only maximizes on ash/metro right?
7 years, 1 month ago (2013-11-10 01:57:25 UTC) #2
sky
I think this is the wrong place for this code. I think this is better ...
7 years, 1 month ago (2013-11-11 15:32:16 UTC) #3
sky
Oshima has been centralizing some of the window sizing code ash. He might have a ...
7 years, 1 month ago (2013-11-11 16:00:42 UTC) #4
oshima
On 2013/11/11 16:00:42, sky wrote: > Oshima has been centralizing some of the window sizing ...
7 years, 1 month ago (2013-11-11 17:23:23 UTC) #5
cpu_(ooo_6.6-7.5)
so you are saying that we want to keep state in the WindowPositioner to keep ...
7 years, 1 month ago (2013-11-12 00:56:15 UTC) #6
oshima
On 2013/11/12 00:56:15, cpu wrote: > so you are saying that we want to keep ...
7 years, 1 month ago (2013-11-12 01:27:08 UTC) #7
ananta
Updated the patch to use the WindowPositioner to return SHOW_STATE_MAXIMIZED for the first window for ...
7 years, 1 month ago (2013-11-12 01:40:46 UTC) #8
oshima
change lgtm, but this will probably break WindowSizerTestWithBrowser::PlaceNewBrowserWindowOnEmptyDesktop on win8. Can you test and update ...
7 years, 1 month ago (2013-11-12 01:43:55 UTC) #9
ananta
On 2013/11/12 01:43:55, oshima wrote: > change lgtm, but this will probably break > WindowSizerTestWithBrowser::PlaceNewBrowserWindowOnEmptyDesktop ...
7 years, 1 month ago (2013-11-14 00:39:21 UTC) #10
oshima
https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer.cc File chrome/browser/ui/window_sizer/window_sizer.cc (right): https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer.cc#newcode401 chrome/browser/ui/window_sizer/window_sizer.cc:401: // TODO(beng): insufficient but currently necessary. http://crbug.com/133312 we can ...
7 years, 1 month ago (2013-11-14 00:41:52 UTC) #11
ananta
https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer.cc File chrome/browser/ui/window_sizer/window_sizer.cc (right): https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer.cc#newcode401 chrome/browser/ui/window_sizer/window_sizer.cc:401: // TODO(beng): insufficient but currently necessary. http://crbug.com/133312 On 2013/11/14 ...
7 years, 1 month ago (2013-11-14 01:45:25 UTC) #12
ananta
https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc File chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc (right): https://codereview.chromium.org/62333015/diff/740003/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc#newcode96 chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc:96: CommandLine::ForCurrentProcess()->AppendSwitch(switches::kOpenAsh); On 2013/11/14 01:45:25, ananta wrote: > On 2013/11/14 ...
7 years, 1 month ago (2013-11-14 01:53:50 UTC) #13
oshima
ok lgtm
7 years, 1 month ago (2013-11-14 19:53:38 UTC) #14
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/62333015/diff/770007/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/770007/ash/wm/window_positioner.cc#newcode241 ash/wm/window_positioner.cc:241: #if !defined(OS_WIN) can you add a brief comment ...
7 years, 1 month ago (2013-11-14 20:20:25 UTC) #15
ananta
https://codereview.chromium.org/62333015/diff/770007/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/770007/ash/wm/window_positioner.cc#newcode241 ash/wm/window_positioner.cc:241: #if !defined(OS_WIN) On 2013/11/14 20:20:26, cpu wrote: > can ...
7 years, 1 month ago (2013-11-14 20:39:00 UTC) #16
sky
https://codereview.chromium.org/62333015/diff/1510001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/1510001/ash/wm/window_positioner.cc#newcode245 ash/wm/window_positioner.cc:245: work_area.width() <= GetForceMaximizedWidthLimit() && Can this be expressed as ...
7 years, 1 month ago (2013-11-15 16:53:44 UTC) #17
ananta
https://codereview.chromium.org/62333015/diff/1510001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/1510001/ash/wm/window_positioner.cc#newcode245 ash/wm/window_positioner.cc:245: work_area.width() <= GetForceMaximizedWidthLimit() && On 2013/11/15 16:53:44, sky wrote: ...
7 years, 1 month ago (2013-11-15 19:55:16 UTC) #18
sky
Sorry I wasn't clear. I wasn't thinking a windows property but just a static bool ...
7 years, 1 month ago (2013-11-16 00:25:05 UTC) #19
ananta
On 2013/11/16 00:25:05, sky wrote: > Sorry I wasn't clear. I wasn't thinking a windows ...
7 years, 1 month ago (2013-11-16 00:56:46 UTC) #20
sky
LGTM
7 years, 1 month ago (2013-11-18 14:27:14 UTC) #21
oshima
https://codereview.chromium.org/62333015/diff/2180001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/2180001/ash/wm/window_positioner.cc#newcode246 ash/wm/window_positioner.cc:246: (!new_window || !wm::GetWindowState(new_window)->IsFullscreen()))) why not single if?
7 years, 1 month ago (2013-11-19 17:58:26 UTC) #22
ananta
https://codereview.chromium.org/62333015/diff/2180001/ash/wm/window_positioner.cc File ash/wm/window_positioner.cc (right): https://codereview.chromium.org/62333015/diff/2180001/ash/wm/window_positioner.cc#newcode246 ash/wm/window_positioner.cc:246: (!new_window || !wm::GetWindowState(new_window)->IsFullscreen()))) On 2013/11/19 17:58:26, oshima wrote: > ...
7 years, 1 month ago (2013-11-19 19:37:10 UTC) #23
oshima
lgtm
7 years, 1 month ago (2013-11-19 19:41:12 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/62333015/30002
7 years, 1 month ago (2013-11-19 23:45:02 UTC) #25
commit-bot: I haz the power
Failed to apply patch for ash/test/ash_test_base.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-19 23:45:07 UTC) #26
ananta
7 years, 1 month ago (2013-11-20 04:05:25 UTC) #27
Message was sent while issue was closed.
Committed patchset #18 manually as r236134 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698