DescriptionPlace newly created app windows on screen.
Application windows with IDs are restored to their
previous location, however if the screen bounds have
changed they previously might be created offscreen.
This change saves the previous screen bounds, and
if the current screen is not contained that that
area, it moves the window, resizing if needed, to
fit in the new screen.
This patch was developed by Chaobin Zhang <zhchbin@gmail.com>
and review started on https://codereview.chromium.org/17378003/
but has been tested and edited by scheib@chromium.org
to remove the "if defined(OS_WIN)".
BUG=145752, 225734
TEST=Run https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-state sample, launch windows with ID, move to a second monitor or far right bottom, close window, resize or disconnect other monitor, relaunch that window with ID: verify newly created window is visible.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208128
Patch Set 1 #
Total comments: 5
Patch Set 2 : Comment; Fix name of CallAdjust... #
Messages
Total messages: 10 (0 generated)
|