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

Unified Diff: chrome/browser/ui/browser_live_tab_context.h

Issue 2868983003: Ensure History > Recent Tabs restore preserves window disposition. (Closed)
Patch Set: Small cleanup. Created 3 years, 7 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: chrome/browser/ui/browser_live_tab_context.h
diff --git a/chrome/browser/ui/browser_live_tab_context.h b/chrome/browser/ui/browser_live_tab_context.h
index c92b4e0d3a96c96becb986ecdfd9ba911b7d21bb..7ffa3dde0d971ffb4ecbc356da45b65f4580152b 100644
--- a/chrome/browser/ui/browser_live_tab_context.h
+++ b/chrome/browser/ui/browser_live_tab_context.h
@@ -11,6 +11,8 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "components/sessions/core/live_tab_context.h"
+#include "ui/base/ui_base_types.h"
+#include "ui/gfx/geometry/rect.h"
class Browser;
class Profile;
@@ -35,6 +37,10 @@ class BrowserLiveTabContext : public sessions::LiveTabContext {
sessions::LiveTab* GetLiveTabAt(int index) const override;
sessions::LiveTab* GetActiveLiveTab() const override;
bool IsTabPinned(int index) const override;
+ const gfx::Rect GetBounds() const override;
+ ui::WindowShowState GetShowState() const override;
+ std::string GetWorkspace() const override;
+
sessions::LiveTab* AddRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int tab_index,
@@ -55,9 +61,11 @@ class BrowserLiveTabContext : public sessions::LiveTabContext {
void CloseTab() override;
// see Browser::Create
- static sessions::LiveTabContext* Create(
- Profile* profile,
- const std::string& app_name);
+ static sessions::LiveTabContext* Create(Profile* profile,
+ const std::string& app_name,
+ const gfx::Rect& bounds,
+ ui::WindowShowState show_state,
+ const std::string& workspace);
// see browser::FindBrowserForWebContents
static sessions::LiveTabContext* FindContextForWebContents(

Powered by Google App Engine
This is Rietveld 408576698