Chromium Code Reviews| Index: ash/wm/window_positioner.cc |
| =================================================================== |
| --- ash/wm/window_positioner.cc (revision 234596) |
| +++ ash/wm/window_positioner.cc (working copy) |
| @@ -237,8 +237,13 @@ |
| if (is_saved_bounds) |
| return; |
| // When using "small screens" we want to always open in full screen mode. |
| + // On Windows 8 ASH we default to SHOW_STATE_MAXIMIZED for the browser |
| + // window. This is to ensure that we honor metro app conventions by |
| + // default. |
| if (show_state_in == ui::SHOW_STATE_DEFAULT && |
| +#if !defined(OS_WIN) |
| work_area.width() <= GetForceMaximizedWidthLimit() && |
|
sky
2013/11/15 16:53:44
Can this be expressed as a property rather than a
ananta
2013/11/15 19:55:17
Done. Added a property kMaximizeFirstWindow to ash
|
| +#endif |
| (!new_window || !wm::GetWindowState(new_window)->IsFullscreen())) { |
| *show_state_out = ui::SHOW_STATE_MAXIMIZED; |
| } |