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

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

Issue 10834205: Draggable region support for frameless app window on GTK. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
« 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 8783f1c3a615a5ffde01b9e4a893c366f7afea0a..2ea1d48fb8a7eadd2786cc3169d935ea7de4995b 100644
--- a/chrome/browser/ui/gtk/gtk_window_util.h
+++ b/chrome/browser/ui/gtk/gtk_window_util.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_GTK_GTK_WINDOW_UTIL_H_
#include <gtk/gtk.h>
+#include "ui/gfx/rect.h"
namespace content {
class WebContents;
@@ -26,6 +27,19 @@ void DisableResizeGrip(GtkWindow* window);
// Returns the resize cursor corresponding to the window |edge|.
GdkCursorType GdkWindowEdgeToGdkCursorType(GdkWindowEdge edge);
+// Returns |true| if the window bounds match the monitor size.
+bool BoundsMatchMonitorSize(GtkWindow* window, gfx::Rect bounds);
+
+bool HandleTitleBarLeftMousePress(GtkWindow* window,
+ const gfx::Rect& bounds,
+ GdkEventButton* event);
+
+// Request the underlying window to unmaximize. Also tries to work around
+// a window manager "feature" that can prevent this in some edge cases.
+void UnMaximize(GtkWindow* window,
+ const gfx::Rect& bounds,
+ const 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