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

Issue 7748036: Restoring a session should restore window minimization state on Windows (Closed)

Created:
9 years, 4 months ago by dhollowa
Modified:
9 years, 3 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, Paweł Hajdan Jr., dhollowa, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Restoring a session should restore window minimization state on Windows These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98679 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99077

Patch Set 1 #

Total comments: 10

Patch Set 2 : GetSavedWindowPlacement consolidation, Test, and All case. #

Total comments: 4

Patch Set 3 : Finger slippage. #

Patch Set 4 : Creation order restore. #

Patch Set 5 : Compile glitch in unit_tests. #

Patch Set 6 : Typo cros. #

Patch Set 7 : Typo. #

Patch Set 8 : Rebase #

Patch Set 9 : Merge glitch. #

Patch Set 10 : Wait for init (not create) for XP. #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -224 lines) Patch
M chrome/browser/chromeos/frame/browser_view.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/frame/panel_browser_view.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/frame/panel_browser_view.cc View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 3 2 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/accessibility_event_router_views_unittest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 1 chunk +5 lines, -8 lines 0 comments Download
M ui/base/ui_base_types.h View 1 chunk +2 lines, -1 line 0 comments Download
M views/desktop/desktop_views_delegate.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M views/desktop/desktop_views_delegate.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M views/desktop/desktop_window_view.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M views/test/test_views_delegate.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M views/test/test_views_delegate.cc View 1 1 chunk +8 lines, -5 lines 0 comments Download
M views/views_delegate.h View 1 2 chunks +10 lines, -12 lines 0 comments Download
M views/widget/native_widget_gtk.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -6 lines 0 comments Download
M views/widget/native_widget_private.h View 1 3 chunks +5 lines, -10 lines 0 comments Download
M views/widget/native_widget_views.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M views/widget/native_widget_views.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M views/widget/native_widget_win.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +23 lines, -11 lines 0 comments Download
M views/widget/widget.h View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -9 lines 0 comments Download
M views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 13 chunks +40 lines, -29 lines 0 comments Download
M views/widget/widget_delegate.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M views/widget/widget_delegate.cc View 1 1 chunk +7 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dhollowa
sky: I searched back in time and it appears that the issues around "close" not ...
9 years, 4 months ago (2011-08-26 02:02:01 UTC) #1
sky
I tend to think that on windows we always want to restore at least one ...
9 years, 4 months ago (2011-08-26 16:26:20 UTC) #2
dhollowa
> I tend to think that on windows we always want to restore at least ...
9 years, 4 months ago (2011-08-26 22:13:50 UTC) #3
sky
http://codereview.chromium.org/7748036/diff/6001/chrome/browser/chromeos/frame/panel_browser_view.cc File chrome/browser/chromeos/frame/panel_browser_view.cc (right): http://codereview.chromium.org/7748036/diff/6001/chrome/browser/chromeos/frame/panel_browser_view.cc#newcode120 chrome/browser/chromeos/frame/panel_browser_view.cc:120: show_state = ui::SHOW_STATE_NORMAL; *show_state = ... http://codereview.chromium.org/7748036/diff/6001/chrome/browser/sessions/session_restore.cc File chrome/browser/sessions/session_restore.cc ...
9 years, 4 months ago (2011-08-26 22:29:55 UTC) #4
dhollowa
http://codereview.chromium.org/7748036/diff/6001/chrome/browser/chromeos/frame/panel_browser_view.cc File chrome/browser/chromeos/frame/panel_browser_view.cc (right): http://codereview.chromium.org/7748036/diff/6001/chrome/browser/chromeos/frame/panel_browser_view.cc#newcode120 chrome/browser/chromeos/frame/panel_browser_view.cc:120: show_state = ui::SHOW_STATE_NORMAL; On 2011/08/26 22:29:56, sky wrote: > ...
9 years, 4 months ago (2011-08-26 23:18:23 UTC) #5
sky
LGTM
9 years, 4 months ago (2011-08-26 23:40:05 UTC) #6
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/views/chrome_views_delegate.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/views/chrome_views_delegate.cc ...
9 years, 4 months ago (2011-08-27 01:32:11 UTC) #7
commit-bot: I haz the power
Change committed as 98679
9 years, 3 months ago (2011-08-29 19:49:09 UTC) #8
dhollowa
sky: PTAL. Only changes are to widget.h/cc regarding "init" versus "create" that tweaked XP. Thanks.
9 years, 3 months ago (2011-08-31 21:03:14 UTC) #9
sky
9 years, 3 months ago (2011-08-31 21:09:40 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698