From d8375fdbe8d32ad3562152ecd53378383e393971 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Tue, 25 Nov 2008 22:45:39 +0000 Subject: Changes tab restore service to handle restoring closed windows as a single unit. Sadly I've written another ui test. Lets hope it isn't flakey. Glen is going to change the NTP to deal with this appropriately. BUG=4686 TEST=Try closing a window (with more than one window open), hitting control-shift-t, and make sure the window and all it's tabs comes back. Review URL: http://codereview.chromium.org/11377 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6003 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/dom_ui/new_tab_ui.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome/browser/dom_ui/new_tab_ui.h') diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h index ed31cde..814e73a 100644 --- a/chrome/browser/dom_ui/new_tab_ui.h +++ b/chrome/browser/dom_ui/new_tab_ui.h @@ -263,6 +263,16 @@ class RecentlyClosedTabsHandler : public DOMMessageHandler, virtual void TabRestoreServiceDestroyed(TabRestoreService* service); private: + // Converts a closed tab to the value sent down to the NTP. Returns true on + // success, false if the value shouldn't be sent down. + bool TabToValue(const TabRestoreService::Tab& tab, + DictionaryValue* dictionary); + + // Converts a closed window to the value sent down to the NTP. Returns true + // on success, false if the value shouldn't be sent down. + bool WindowToValue(const TabRestoreService::Window& window, + DictionaryValue* dictionary); + DOMUIHost* dom_ui_host_; /// TabRestoreService that we are observing. -- cgit v1.1