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

Unified Diff: components/sessions/core/tab_restore_service_client.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_client.h
diff --git a/components/sessions/core/tab_restore_service_client.h b/components/sessions/core/tab_restore_service_client.h
index 4452ce697fc592ca1bdf605ec746a0c4045d458d..60cdc1eaf3267e101aa7ae104fe0b4dd1348594d 100644
--- a/components/sessions/core/tab_restore_service_client.h
+++ b/components/sessions/core/tab_restore_service_client.h
@@ -11,6 +11,7 @@
#include "base/files/file_path.h"
#include "components/sessions/core/session_id.h"
#include "components/sessions/core/sessions_export.h"
+#include "ui/base/ui_base_types.h"
class GURL;
@@ -18,6 +19,10 @@ namespace base {
class CancelableTaskTracker;
}
+namespace gfx {
+class Rect;
+}
+
namespace sessions {
class LiveTab;
@@ -39,7 +44,11 @@ class SESSIONS_EXPORT TabRestoreServiceClient {
// Creates a LiveTabContext instance that is associated with |app_name|. May
// return nullptr (e.g., if the embedder does not support LiveTabContext
// functionality).
- virtual LiveTabContext* CreateLiveTabContext(const std::string& app_name) = 0;
+ virtual LiveTabContext* CreateLiveTabContext(
+ const std::string& app_name,
+ const gfx::Rect& bounds,
+ ui::WindowShowState show_state,
+ const std::string& workspace) = 0;
// Returns the LiveTabContext instance that is associated with
// |tab|, or null if there is no such instance.
« no previous file with comments | « components/sessions/core/tab_restore_service.h ('k') | components/sessions/core/tab_restore_service_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698