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

Issue 17564005: Place newly created app windows on screen. (Closed)

Created:
7 years, 6 months ago by scheib
Modified:
7 years, 6 months ago
Reviewers:
benwells
CC:
chromium-reviews, tfarina, jeremya+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, oshima
Visibility:
Public.

Description

Place 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... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -26 lines) Patch
M apps/shell_window_geometry_cache.h View 3 chunks +5 lines, -1 line 0 comments Download
M apps/shell_window_geometry_cache.cc View 7 chunks +27 lines, -0 lines 0 comments Download
M apps/shell_window_geometry_cache_unittest.cc View 12 chunks +57 lines, -20 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest_util.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/platform_app_browsertest_util.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 3 chunks +57 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scheib
ben, owners review please. This patch was developed by Chaobin Zhang <zhchbin@gmail.com> and I lgtm'ed ...
7 years, 6 months ago (2013-06-22 00:10:13 UTC) #1
benwells
lgtm. The description is cut off, please fill it in. https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc File chrome/browser/extensions/platform_app_browsertest_util.cc (right): https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc#newcode173 ...
7 years, 6 months ago (2013-06-22 00:56:02 UTC) #2
zhchbin
On 2013/06/22 00:10:13, scheib wrote: > ben, owners review please. > > This patch was ...
7 years, 6 months ago (2013-06-22 07:16:16 UTC) #3
scheib
Thanks Ben. https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc File chrome/browser/extensions/platform_app_browsertest_util.cc (right): https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc#newcode173 chrome/browser/extensions/platform_app_browsertest_util.cc:173: window->AdjustBoundsToBeVisibleOnScreen(cached_bounds, On 2013/06/22 00:56:02, benwells wrote: > ...
7 years, 6 months ago (2013-06-23 04:43:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/17564005/24001
7 years, 6 months ago (2013-06-23 04:43:55 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-23 05:16:37 UTC) #6
scheib
https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc File chrome/browser/extensions/platform_app_browsertest_util.cc (right): https://codereview.chromium.org/17564005/diff/1/chrome/browser/extensions/platform_app_browsertest_util.cc#newcode173 chrome/browser/extensions/platform_app_browsertest_util.cc:173: window->AdjustBoundsToBeVisibleOnScreen(cached_bounds, On 2013/06/23 04:43:37, scheib wrote: > On 2013/06/22 ...
7 years, 6 months ago (2013-06-23 05:38:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/17564005/33001
7 years, 6 months ago (2013-06-23 05:38:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/17564005/8004
7 years, 6 months ago (2013-06-23 05:42:27 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-23 14:20:59 UTC) #10
Message was sent while issue was closed.
Change committed as 208128

Powered by Google App Engine
This is Rietveld 408576698