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

Unified Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.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
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 56b6e235041d04051bc30bb3f34f00dd00a1beb8..0775939943a19cf8901d2f91ec372e9af67c236d 100644
--- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
+++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
@@ -12,6 +12,7 @@
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/x/active_window_watcher_x_observer.h"
#include "ui/gfx/rect.h"
+#include "ui/gfx/scoped_sk_region.h"
class Profile;
@@ -59,12 +60,18 @@ class ShellWindowGtk : public ShellWindow,
virtual ~ShellWindowGtk();
+ // content::WebContentsDelegate implementation.
+ virtual void UpdateDraggableRegions(
+ const std::vector<content::DraggableRegion>& regions) OVERRIDE;
jeremya 2012/08/08 04:38:37 Technically this isn't content::WebContentsDelegat
+
CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnMainWindowDeleteEvent,
GdkEvent*);
CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnConfigure,
GdkEventConfigure*);
CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnWindowState,
GdkEventWindowState*);
+ CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnButtonPress,
+ GdkEventButton*);
GtkWindow* window_;
GdkWindowState state_;
@@ -84,6 +91,9 @@ class ShellWindowGtk : public ShellWindow,
// fullscreen, however: some WMs don't support fullscreen.
bool content_thinks_its_fullscreen_;
+ gfx::ScopedSkRegion draggable_region_;
Evan Stade 2012/08/07 23:20:58 I don't even know why this type exists. Why not ju
+ bool frameless_;
+
DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
};

Powered by Google App Engine
This is Rietveld 408576698