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

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

Issue 10871087: GTK implementation of remembering platform app window geometry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/ui/gtk/extensions/shell_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_window_util.h
diff --git a/chrome/browser/ui/gtk/gtk_window_util.h b/chrome/browser/ui/gtk/gtk_window_util.h
index 3ed69ac6c92f0be4b97d4a66ff3953b1007ad449..38bca07858a11e3325485fd83d5278c3aad04a78 100644
--- a/chrome/browser/ui/gtk/gtk_window_util.h
+++ b/chrome/browser/ui/gtk/gtk_window_util.h
@@ -8,6 +8,8 @@
#include <gtk/gtk.h>
#include "ui/gfx/rect.h"
+class BaseWindow;
+
namespace content {
class WebContents;
}
@@ -49,6 +51,12 @@ void SetWindowCustomClass(GtkWindow* window, const std::string& wmclass);
// EWMH for full screen mode.
void SetWindowSize(GtkWindow* window, const gfx::Size& size);
+// Update the origin of |bounds| and |restored_bounds| with values gotten
+// from GTK.
+void UpdateWindowPosition(BaseWindow* window,
+ gfx::Rect* bounds,
+ gfx::Rect* restored_bounds);
+
} // namespace gtk_window_util
#endif // CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
« no previous file with comments | « chrome/browser/ui/gtk/extensions/shell_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698