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

Issue 7621061: Restoring a session should restore window minimization state (Closed)

Created:
9 years, 4 months ago by dhollowa
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), jennb, idana, Raghu Simha, Dmitry Titov, dcheng, jianli, Paweł Hajdan Jr.
Visibility:
Public.

Description

Restoring a session should restore window minimization state Extends session service to support more generalized "show" state encompassing maximized, minimized, and normal window states. This includes forward-migration logic from old stored session data. Mac changes to save and restore minimized windows as well as fixes for window position. Linux/GTK changes to save and restore minimized windows. Windows/Views changes to follow. BUG=43274 TEST=Manual. SessionServiceTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97646

Patch Set 1 #

Patch Set 2 : Move enum to ui/base, also Linux changes. #

Patch Set 3 : Windows compile. #

Total comments: 14

Patch Set 4 : Addresses sky's comments, and unit test compiles. #

Patch Set 5 : Pushing MAC_OS_X_VERSION_10_7 defines back down into .mm files. #

Total comments: 8

Patch Set 6 : Addressing Mark's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -129 lines) Patch
M chrome/browser/sessions/session_restore.cc View 1 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/sessions/session_service.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 9 chunks +51 lines, -13 lines 0 comments Download
M chrome/browser/sessions/session_service_unittest.cc View 1 2 3 7 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/sessions/session_types.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_types.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 5 chunks +9 lines, -19 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 5 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 3 chunks +52 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 5 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 3 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 5 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
A ui/base/ui_base_types.h View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dhollowa
This CL gets Mac and Linux session restore working with minimized windows. I'm planning to ...
9 years, 4 months ago (2011-08-19 16:41:12 UTC) #1
prasadt
LGMT for panels change.
9 years, 4 months ago (2011-08-19 16:55:56 UTC) #2
prasadt
On 2011/08/19 16:55:56, prasadt wrote: > LGMT for panels change. Looked at it again. Upgrading ...
9 years, 4 months ago (2011-08-19 16:56:30 UTC) #3
sky
erg or estade should review the linux side. Also, does this have any effect on ...
9 years, 4 months ago (2011-08-19 16:59:54 UTC) #4
dhollowa
+erg
9 years, 4 months ago (2011-08-19 17:02:52 UTC) #5
dhollowa
> Also, does this have any effect on syncing session restore data? The sync code ...
9 years, 4 months ago (2011-08-19 17:58:53 UTC) #6
dhollowa
On 2011/08/19 17:58:53, dhollowa wrote: > > Also, does this have any effect on syncing ...
9 years, 4 months ago (2011-08-19 18:00:20 UTC) #7
Mark Mentovai
LGTM. I only looked carefully at files whose names ended in .mm. http://codereview.chromium.org/7621061/diff/10003/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm ...
9 years, 4 months ago (2011-08-19 19:17:27 UTC) #8
sky
LGTM
9 years, 4 months ago (2011-08-19 19:27:29 UTC) #9
dhollowa
http://codereview.chromium.org/7621061/diff/10003/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/7621061/diff/10003/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode50 chrome/browser/ui/cocoa/browser_window_cocoa.mm:50: // Provide the forward-declarations of new 10.7 SDK symbols ...
9 years, 4 months ago (2011-08-19 20:38:16 UTC) #10
Elliot Glaysher
The *_gtk.* files LGTM.
9 years, 4 months ago (2011-08-19 21:31:02 UTC) #11
dhollowa
+tim for sync change
9 years, 4 months ago (2011-08-20 00:53:13 UTC) #12
tim (not reviewing)
9 years, 4 months ago (2011-08-22 15:24:10 UTC) #13
On 2011/08/20 00:53:13, dhollowa wrote:
> +tim for sync change

LGTM

Powered by Google App Engine
This is Rietveld 408576698