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

Side by Side Diff: chrome/browser/ui/panels/panel_drag_gtk.h

Issue 10828289: Revert 151353 - Panels refactor: Support browserless panels on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Sets up mouse and keyboard events processing while the mouse is 37 // Sets up mouse and keyboard events processing while the mouse is
38 // pressed on the titlebar. 38 // pressed on the titlebar.
39 // |event| is the mouse press event. 39 // |event| is the mouse press event.
40 // |titlebar_widget| should handle the mouse release event if the mouse 40 // |titlebar_widget| should handle the mouse release event if the mouse
41 // is released without exceeding the drag threshold (a mouse click). 41 // is released without exceeding the drag threshold (a mouse click).
42 void InitialTitlebarMousePress(GdkEventButton* event, 42 void InitialTitlebarMousePress(GdkEventButton* event,
43 GtkWidget* titlebar_widget); 43 GtkWidget* titlebar_widget);
44 44
45 private: 45 private:
46 friend class NativePanelTestingGtk; // legacy 46 friend class NativePanelTestingGtk;
47 friend class GtkNativePanelTesting;
48 47
49 enum DragState { 48 enum DragState {
50 NOT_DRAGGING, 49 NOT_DRAGGING,
51 DRAG_CAN_START, // mouse pressed 50 DRAG_CAN_START, // mouse pressed
52 DRAG_IN_PROGRESS, // mouse moved beyond drag threshold 51 DRAG_IN_PROGRESS, // mouse moved beyond drag threshold
53 DRAG_ENDED_WAITING_FOR_MOUSE_RELEASE 52 DRAG_ENDED_WAITING_FOR_MOUSE_RELEASE
54 }; 53 };
55 54
56 // Callbacks for GTK mouse and key events. 55 // Callbacks for GTK mouse and key events.
57 CHROMEGTK_CALLBACK_1(PanelDragGtk, gboolean, OnMouseMoveEvent, 56 CHROMEGTK_CALLBACK_1(PanelDragGtk, gboolean, OnMouseMoveEvent,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // handling is necessary. 97 // handling is necessary.
99 GtkWidget* click_handler_; 98 GtkWidget* click_handler_;
100 99
101 // Delegate for processing drag depends on actual type of drag. 100 // Delegate for processing drag depends on actual type of drag.
102 PanelDragDelegate* drag_delegate_; 101 PanelDragDelegate* drag_delegate_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(PanelDragGtk); 103 DISALLOW_COPY_AND_ASSIGN(PanelDragGtk);
105 }; 104 };
106 105
107 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_ 106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_DRAG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_drag_browsertest.cc ('k') | chrome/browser/ui/panels/panel_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698