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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_gtk.h

Issue 10020057: Resize support for detached GTK Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback changes Created 8 years, 8 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 | « no previous file | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_window_gtk.h
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.h b/chrome/browser/ui/panels/panel_browser_window_gtk.h
index 6e856c5c32d20f45ba10fa62376d2d419e5f7950..88a904d86cb8ff6027e85dc5708bde38c08403f7 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.h
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.h
@@ -14,6 +14,7 @@
class Panel;
class PanelBoundsAnimation;
+class PanelDragGtk;
class PanelSettingsMenuModel;
class NativePanelTestingGtk;
@@ -50,6 +51,10 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
GdkEventButton* event,
guint32 last_click_time,
gfx::Point last_click_position) OVERRIDE;
+ virtual bool HandleWindowEdgeLeftMousePress(
+ GtkWindow* window,
+ GdkWindowEdge edge,
+ GdkEventButton* event) OVERRIDE;
virtual void SaveWindowPosition() OVERRIDE;
virtual void SetGeometryHints() OVERRIDE;
virtual bool UseCustomFrame() OVERRIDE;
@@ -125,6 +130,9 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
void EndDrag(bool canceled);
void CleanupDragDrop();
+ // Creates helper for handling drags if not already created.
+ void EnsureDragHelperCreated();
+
void SetBoundsInternal(const gfx::Rect& bounds, bool animate);
void ResizeWindow(int width, int height);
@@ -186,6 +194,8 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
scoped_ptr<PanelSettingsMenuModel> settings_menu_model_;
scoped_ptr<MenuGtk> settings_menu_;
+ scoped_ptr<PanelDragGtk> drag_helper_;
+
// Size of window frame. Empty until the window has been allocated and sized.
gfx::Size frame_size_;
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698