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

Unified Diff: chrome/browser/gtk/tabs/tab_gtk.h

Issue 113532: Implement DraggedTabGtk, the object that handles rendering either a dragged t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_gtk.h
===================================================================
--- chrome/browser/gtk/tabs/tab_gtk.h (revision 16177)
+++ chrome/browser/gtk/tabs/tab_gtk.h (working copy)
@@ -80,9 +80,15 @@
// TabRendererGtk overrides:
virtual bool IsSelected() const;
+ virtual bool IsVisible() const;
+ virtual void SetVisible(bool visible) const;
virtual void CloseButtonResized(const gfx::Rect& bounds);
virtual void Paint(GdkEventExpose* event);
+ // The callback that is called for every gdk event. We use it to inspect for
+ // drag-motion events when the drag is outside of the source tab.
+ static void GdkEventHandler(GdkEvent* event, void* tab);
+
// button-press-event handler that handles mouse clicks.
static gboolean OnMousePress(GtkWidget* widget, GdkEventButton* event,
TabGtk* tab);
@@ -147,6 +153,9 @@
// The windowless widget used to collect input events for the tab.
OwnedWidgetGtk event_box_;
+ // True if this tab is being dragged.
+ bool dragging_;
+
DISALLOW_COPY_AND_ASSIGN(TabGtk);
};
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698