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

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

Issue 10266021: GTK Panels - fix crash when clicking on titlebar to restore a panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add extra drag state to make code clearer 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_drag_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_drag_gtk.h
diff --git a/chrome/browser/ui/panels/panel_drag_gtk.h b/chrome/browser/ui/panels/panel_drag_gtk.h
index 6ca655a5856572a0c5d1bf5badf74e99c3e2ce2e..4341b7f1fd525f5adbfea0b68b496cf71a50bb41 100644
--- a/chrome/browser/ui/panels/panel_drag_gtk.h
+++ b/chrome/browser/ui/panels/panel_drag_gtk.h
@@ -48,7 +48,8 @@ class PanelDragGtk {
enum DragState {
NOT_DRAGGING,
- DRAG_IN_PROGRESS,
+ DRAG_CAN_START, // mouse pressed
+ DRAG_IN_PROGRESS, // mouse moved beyond drag threshold
DRAG_ENDED_WAITING_FOR_MOUSE_RELEASE
};
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_drag_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698