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

Unified Diff: components/sessions/core/live_tab_context.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/live_tab_context.h
diff --git a/components/sessions/core/live_tab_context.h b/components/sessions/core/live_tab_context.h
index 03615b0c31aab0f813665113331e6a6ba5b4c102..0efb779e20c170d165e4c6368cc35901b6f5fd30 100644
--- a/components/sessions/core/live_tab_context.h
+++ b/components/sessions/core/live_tab_context.h
@@ -10,6 +10,11 @@
#include "components/sessions/core/session_id.h"
#include "components/sessions/core/sessions_export.h"
+#include "ui/base/ui_base_types.h"
+
+namespace gfx {
+class Rect;
+}
namespace sessions {
@@ -31,6 +36,9 @@ class SESSIONS_EXPORT LiveTabContext {
virtual LiveTab* GetLiveTabAt(int index) const = 0;
virtual LiveTab* GetActiveLiveTab() const = 0;
virtual bool IsTabPinned(int index) const = 0;
+ virtual const gfx::Rect GetRestoredBounds() const = 0;
+ virtual ui::WindowShowState GetRestoredState() const = 0;
+ virtual std::string GetWorkspace() const = 0;
// Note: |tab_platform_data| may be null (e.g., if |from_last_session| is
// true, as this data is not persisted, or if the platform does not provide
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ('k') | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698