| 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..63467bb5403107895f412a15c796c69b98b682cc 100644
|
| --- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
|
| +++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
|
| @@ -10,6 +10,7 @@
|
| #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"
|
| +#include "third_party/skia/include/core/SkRegion.h"
|
| #include "ui/base/gtk/gtk_signal.h"
|
| #include "ui/base/x/active_window_watcher_x_observer.h"
|
| #include "ui/gfx/rect.h"
|
| @@ -18,6 +19,7 @@ class Profile;
|
|
|
| namespace extensions {
|
| class Extension;
|
| +struct DraggableRegion;
|
| }
|
|
|
| class ShellWindowGtk : public NativeShellWindow,
|
| @@ -62,6 +64,8 @@ class ShellWindowGtk : public NativeShellWindow,
|
| const extensions::Extension* extension() const {
|
| return shell_window_->extension();
|
| }
|
| + virtual void UpdateDraggableRegions(
|
| + const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
|
|
|
| virtual ~ShellWindowGtk();
|
|
|
| @@ -71,6 +75,8 @@ class ShellWindowGtk : public NativeShellWindow,
|
| GdkEventConfigure*);
|
| CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnWindowState,
|
| GdkEventWindowState*);
|
| + CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnButtonPress,
|
| + GdkEventButton*);
|
|
|
| ShellWindow* shell_window_; // weak - ShellWindow owns NativeShellWindow.
|
|
|
| @@ -92,6 +98,17 @@ class ShellWindowGtk : public NativeShellWindow,
|
| // fullscreen, however: some WMs don't support fullscreen.
|
| bool content_thinks_its_fullscreen_;
|
|
|
| + // The region is treated as title bar, can be dragged to move
|
| + // and double clicked to maximize.
|
| + SkRegion draggable_region_;
|
| +
|
| + // 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.
|
| + bool suppress_window_raise_;
|
| +
|
| + // True if the window shows without frame.
|
| + bool frameless_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
|
| };
|
|
|
|
|