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

Unified Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.h

Issue 10871087: GTK implementation of remembering platform app window geometry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/extensions/shell_window_gtk.h
diff --git a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
index ec20c655ac751222f32f5e5150ebc4c328321bd4..6f0bc5364dcd59c711794bb2f254efc7d8808e01 100644
--- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
+++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
@@ -7,6 +7,7 @@
#include <gtk/gtk.h>
+#include "base/timer.h"
#include "chrome/browser/ui/extensions/native_shell_window.h"
#include "chrome/browser/ui/extensions/shell_window.h"
#include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
@@ -72,6 +73,8 @@ class ShellWindowGtk : public NativeShellWindow,
CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnWindowState,
GdkEventWindowState*);
+ void OnDebouncedBoundsChanged();
+
ShellWindow* shell_window_; // weak - ShellWindow owns NativeShellWindow.
GtkWindow* window_;
@@ -92,6 +95,9 @@ class ShellWindowGtk : public NativeShellWindow,
// fullscreen, however: some WMs don't support fullscreen.
bool content_thinks_its_fullscreen_;
+ // The timer used to save the window position for session restore.
+ base::OneShotTimer<ShellWindowGtk> window_configure_debounce_timer_;
+
DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
};

Powered by Google App Engine
This is Rietveld 408576698