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

Issue 17378003: [WIN]Save work area of window and adjust bounds to ensure it fit on screen before show. (Closed)

Created:
7 years, 6 months ago by zhchbin
Modified:
7 years, 6 months ago
Reviewers:
scheib, oshima
CC:
chromium-reviews, tfarina, jeremya+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[WIN]Save work area of window and adjust bounds to ensure it fit on screen before show. BUG=145752, 225734 TEST=unit_tests --gtest_filter=ShellWindowGeometryCacheTest.* TEST=On Windows platform, Please refer to the description of crbug.com/225734.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase and revise as comments. #

Total comments: 6

Patch Set 3 : Add test cases. #

Total comments: 3

Patch Set 4 : Update to windows only. #

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

Messages

Total messages: 15 (0 generated)
zhchbin
Hi scheib, this is my proposal patch for the issue on Windows, please review. If ...
7 years, 6 months ago (2013-06-18 08:09:30 UTC) #1
scheib
Thank you for this work, looking good, though some work still to be done, see ...
7 years, 6 months ago (2013-06-18 21:52:06 UTC) #2
zhchbin
https://codereview.chromium.org/17378003/diff/1/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (right): https://codereview.chromium.org/17378003/diff/1/chrome/browser/ui/extensions/shell_window.cc#newcode199 chrome/browser/ui/extensions/shell_window.cc:199: // App window has cached work area, make sure ...
7 years, 6 months ago (2013-06-19 05:43:32 UTC) #3
scheib
Thank you. FYI general chromium review style is to reply to all comments, even if ...
7 years, 6 months ago (2013-06-20 00:09:44 UTC) #4
scheib
https://codereview.chromium.org/17378003/diff/7001/apps/shell_window_geometry_cache.h File apps/shell_window_geometry_cache.h (right): https://codereview.chromium.org/17378003/diff/7001/apps/shell_window_geometry_cache.h#newcode101 apps/shell_window_geometry_cache.h:101: WindowData() : window_state(ui::SHOW_STATE_DEFAULT) {} I ran try jobs, and ...
7 years, 6 months ago (2013-06-20 00:09:58 UTC) #5
zhchbin
https://codereview.chromium.org/17378003/diff/1/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm File chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm (right): https://codereview.chromium.org/17378003/diff/1/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm#newcode718 chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm:718: NOTIMPLEMENTED(); On 2013/06/18 21:52:06, scheib wrote: > I'd like ...
7 years, 6 months ago (2013-06-20 06:35:50 UTC) #6
zhchbin
While writing the test cases, I have an idea that we can just reposition the ...
7 years, 6 months ago (2013-06-20 06:50:52 UTC) #7
oshima
https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode177 chrome/browser/ui/views/extensions/native_app_window_views.cc:177: window_->SetBounds(adjusted_bounds); The reason why it's currently broken on chromeos ...
7 years, 6 months ago (2013-06-20 19:46:32 UTC) #8
zhchbin
https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode177 chrome/browser/ui/views/extensions/native_app_window_views.cc:177: window_->SetBounds(adjusted_bounds); On 2013/06/20 19:46:32, oshima wrote: > The reason ...
7 years, 6 months ago (2013-06-21 06:36:31 UTC) #9
oshima
https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode177 chrome/browser/ui/views/extensions/native_app_window_views.cc:177: window_->SetBounds(adjusted_bounds); On 2013/06/21 06:36:31, zhchbin wrote: > On 2013/06/20 ...
7 years, 6 months ago (2013-06-21 16:13:30 UTC) #10
zhchbin
On 2013/06/21 16:13:30, oshima wrote: > https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc > File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): > > https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode177 > ...
7 years, 6 months ago (2013-06-21 16:20:50 UTC) #11
oshima
On 2013/06/21 16:20:50, zhchbin wrote: > On 2013/06/21 16:13:30, oshima wrote: > > > https://codereview.chromium.org/17378003/diff/7003/chrome/browser/ui/views/extensions/native_app_window_views.cc ...
7 years, 6 months ago (2013-06-21 21:47:08 UTC) #12
oshima
On 2013/06/21 21:47:08, oshima wrote: > On 2013/06/21 16:20:50, zhchbin wrote: > > On 2013/06/21 ...
7 years, 6 months ago (2013-06-21 23:30:08 UTC) #13
scheib
Thanks for the updates, zhchbin. lgtm -- I will iterate further after this lands for ...
7 years, 6 months ago (2013-06-21 23:47:06 UTC) #14
zhchbin
7 years, 6 months ago (2013-06-24 00:30:27 UTC) #15
Message was sent while issue was closed.
Landed via https://chromiumcodereview.appspot.com/17564005.

Powered by Google App Engine
This is Rietveld 408576698