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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.h

Issue 7621061: Restoring a session should restore window minimization state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pushing MAC_OS_X_VERSION_10_7 defines back down into .mm files. Created 9 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: chrome/browser/ui/gtk/browser_window_gtk.h
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.h b/chrome/browser/ui/gtk/browser_window_gtk.h
index c7fd581803357bad1daf295eee8f3ad3956b66ed..b04fb296c69fba2df6ba0d457c67ce3a7e0bed2c 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.h
+++ b/chrome/browser/ui/gtk/browser_window_gtk.h
@@ -20,6 +20,7 @@
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/x/active_window_watcher_x.h"
#include "ui/base/x/x11_util.h"
+#include "ui/base/ui_base_types.h"
Mark Mentovai 2011/08/19 19:17:27 Nit: sort.
dhollowa 2011/08/19 20:38:16 Done.
#include "ui/gfx/rect.h"
class BookmarkBarGtk;
@@ -76,6 +77,7 @@ class BrowserWindowGtk : public BrowserWindow,
virtual gfx::Rect GetRestoredBounds() const;
virtual gfx::Rect GetBounds() const;
virtual bool IsMaximized() const;
+ virtual bool IsMinimized() const;
virtual void SetFullscreen(bool fullscreen);
virtual bool IsFullscreen() const;
virtual bool IsFullscreenBubbleVisible() const;
@@ -491,9 +493,10 @@ class BrowserWindowGtk : public BrowserWindow,
guint32 last_click_time_;
gfx::Point last_click_position_;
- // If true, maximize the window after we call BrowserWindow::Show for the
- // first time. This is to work around a compiz bug.
- bool maximize_after_show_;
+ // Optionally maximize or minimize the window after we call
+ // BrowserWindow::Show for the first time. This is to work around a compiz
+ // bug.
+ ui::WindowShowState show_state_after_show_;
// If true, don't call gdk_window_raise() when we get a click in the title
// bar or window border. This is to work around a compiz bug.

Powered by Google App Engine
This is Rietveld 408576698