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

Unified Diff: components/sessions/core/tab_restore_service.h

Issue 2868983003: Ensure History > Recent Tabs restore preserves window disposition. (Closed)
Patch Set: Remove NOTREACHED(). Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sessions/core/tab_restore_service.h
diff --git a/components/sessions/core/tab_restore_service.h b/components/sessions/core/tab_restore_service.h
index 2746da2e6e8e345b23e68081c793738e1c30e8f6..47bd4048c33a019d87653ed56860ba78b2222f9b 100644
--- a/components/sessions/core/tab_restore_service.h
+++ b/components/sessions/core/tab_restore_service.h
@@ -16,7 +16,9 @@
#include "components/sessions/core/session_id.h"
#include "components/sessions/core/session_types.h"
#include "components/sessions/core/sessions_export.h"
+#include "ui/base/ui_base_types.h"
#include "ui/base/window_open_disposition.h"
+#include "ui/gfx/geometry/rect.h"
namespace sessions {
@@ -133,6 +135,11 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
// If an application window, the name of the app.
std::string app_name;
+
+ // Where and how the window is displayed.
+ gfx::Rect bounds;
+ ui::WindowShowState show_state;
+ std::string workspace;
};
typedef std::list<std::unique_ptr<Entry>> Entries;
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.cc ('k') | components/sessions/core/tab_restore_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698