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

Issue 14031021: Save and restore State for ShellWindows, including panels (Closed)

Created:
7 years, 8 months ago by stevenjb
Modified:
7 years, 7 months ago
CC:
chromium-reviews, marja+watch_chromium.org, tfarina, jeremya+watch_chromium.org, sail+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org, jeremya
Visibility:
Public.

Description

Save and restore State for ShellWindows, including panels This replaces ShellWindow::CreateParams::State with ui::WindowShowState for simplicty and consistency with Browser session restore. BUG=233556 R=flackr@chromium.org, skuhne@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198918

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address feedback #

Patch Set 3 : Add tests for restore state #

Patch Set 4 : Add BaseWindow::GetRestoredState() #

Total comments: 4

Patch Set 5 : Fix typo #

Patch Set 6 : Separate restore state tests #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : Rebase #

Patch Set 9 : Address nits #

Patch Set 10 : Disable failing test on linux_aura (with TODO) #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -123 lines) Patch
M ash/wm/base_layout_manager.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/window_properties.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/window_properties.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 6 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/shell_window_geometry_cache.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/extensions/shell_window_geometry_cache.cc View 6 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/extensions/shell_window_geometry_cache_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +65 lines, -36 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/base_window.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/native_app_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 6 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.cc View 1 2 3 4 5 6 7 8 4 chunks +45 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/restore_state/empty.html View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/restore_state/manifest.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/restore_state/test.js View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ui_base_types.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
stevenjb
https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache.h File chrome/browser/extensions/shell_window_geometry_cache.h (right): https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache.h#newcode17 chrome/browser/extensions/shell_window_geometry_cache.h:17: #include "chrome/browser/ui/extensions/shell_window.h" unnecessary
7 years, 8 months ago (2013-04-25 23:05:17 UTC) #1
stevenjb
7 years, 8 months ago (2013-04-25 23:05:56 UTC) #2
flackr
https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache_unittest.cc File chrome/browser/extensions/shell_window_geometry_cache_unittest.cc (right): https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache_unittest.cc#newcode121 chrome/browser/extensions/shell_window_geometry_cache_unittest.cc:121: // Test that loading geometry from the store works ...
7 years, 8 months ago (2013-04-26 03:44:38 UTC) #3
stevenjb
+sky@ for ui/base/ui_base_types.h OWNER and input. https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache_unittest.cc File chrome/browser/extensions/shell_window_geometry_cache_unittest.cc (right): https://codereview.chromium.org/14031021/diff/1/chrome/browser/extensions/shell_window_geometry_cache_unittest.cc#newcode121 chrome/browser/extensions/shell_window_geometry_cache_unittest.cc:121: // Test that ...
7 years, 8 months ago (2013-04-26 16:12:17 UTC) #4
sky
LGTM
7 years, 8 months ago (2013-04-26 16:19:02 UTC) #5
flackr
LGTM On 2013/04/26 16:12:17, stevenjb (chromium) wrote: > +sky@ for ui/base/ui_base_types.h OWNER and input. > ...
7 years, 8 months ago (2013-04-26 16:47:25 UTC) #6
stevenjb
jeremya@ or benwells@, please take a look when you have a chance.
7 years, 7 months ago (2013-04-30 15:28:12 UTC) #7
benwells
On 2013/04/30 15:28:12, stevenjb (chromium) wrote: > jeremya@ or benwells@, please take a look when ...
7 years, 7 months ago (2013-05-01 08:30:59 UTC) #8
stevenjb
On 2013/05/01 08:30:59, benwells wrote: > On 2013/04/30 15:28:12, stevenjb (chromium) wrote: > > jeremya@ ...
7 years, 7 months ago (2013-05-01 19:02:36 UTC) #9
benwells
On 2013/05/01 19:02:36, stevenjb (chromium) wrote: > On 2013/05/01 08:30:59, benwells wrote: > > On ...
7 years, 7 months ago (2013-05-01 23:16:32 UTC) #10
stevenjb
On 2013/05/01 23:16:32, benwells wrote: > I'm not sure what the correct behavior for panels ...
7 years, 7 months ago (2013-05-03 00:17:15 UTC) #11
benwells
Can you explain how in the given situation the window will be restored maximized, as ...
7 years, 7 months ago (2013-05-03 08:52:03 UTC) #12
stevenjb
re: Restoring a maximized + minimized window maximized: That's going to depend on how IsMaximized() ...
7 years, 7 months ago (2013-05-03 17:41:14 UTC) #13
stevenjb
skuhne@ - can you take a look at this CL? We're going to need more ...
7 years, 7 months ago (2013-05-06 18:22:48 UTC) #14
Mr4D (OOO till 08-26)
Could you check with sky / mukai about the introduction of the new window flag? ...
7 years, 7 months ago (2013-05-06 21:40:15 UTC) #15
sky
https://codereview.chromium.org/14031021/diff/37001/ui/base/ui_base_types.h File ui/base/ui_base_types.h (right): https://codereview.chromium.org/14031021/diff/37001/ui/base/ui_base_types.h#newcode20 ui/base/ui_base_types.h:20: SHOW_STATE_DETACHED = 6, // Views only; detached panel. On ...
7 years, 7 months ago (2013-05-06 22:19:46 UTC) #16
Mr4D (OOO till 08-26)
Fascinating - okay. In that case lgtm. please have a short look at my nits.
7 years, 7 months ago (2013-05-06 22:27:42 UTC) #17
miket_OOO
> +miket > Mike, I am happy to keep reviewing this but maybe someone from ...
7 years, 7 months ago (2013-05-06 22:51:59 UTC) #18
stevenjb
https://codereview.chromium.org/14031021/diff/37001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/14031021/diff/37001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode88 chrome/browser/extensions/api/app_window/app_window_api.cc:88: result->SetBoolean("fullscreen", window->GetBaseWindow()->IsFullscreen()); On 2013/05/06 21:40:16, Mr4D wrote: > I ...
7 years, 7 months ago (2013-05-07 16:06:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14031021/55001
7 years, 7 months ago (2013-05-07 16:06:54 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=124960
7 years, 7 months ago (2013-05-07 16:31:44 UTC) #21
stevenjb
7 years, 7 months ago (2013-05-08 16:07:18 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 manually as r198918 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698