diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 20:48:55 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 20:48:55 +0000 |
commit | 839cabf415f69301d024f2b96a68fce9494ab91a (patch) | |
tree | b40a94ca465ac3432c3775862e7498eb3d1acb63 /chrome/browser/gtk/tabs/tab_gtk.h | |
parent | 42f1a14d1717c3e9f1a7d54ab7318c3dec8dea83 (diff) | |
download | chromium_src-839cabf415f69301d024f2b96a68fce9494ab91a.zip chromium_src-839cabf415f69301d024f2b96a68fce9494ab91a.tar.gz chromium_src-839cabf415f69301d024f2b96a68fce9494ab91a.tar.bz2 |
gtk: Fix the case where a user quickly moves the mouse away from a dragged tab
causing gtk to stop generating motion-notify-event signals. In this case,
a call to gtk_grab_add lets gtk clean up the drag for us.
BUG=16509
TEST=Quickly move the mouse away from a dragged tab (up and left works best).
The drag will end and a new window will open. The dragged tab window should
not still exist.
Review URL: http://codereview.chromium.org/159290
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs/tab_gtk.h')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_gtk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tabs/tab_gtk.h b/chrome/browser/gtk/tabs/tab_gtk.h index 384f7f6..4d1f704f 100644 --- a/chrome/browser/gtk/tabs/tab_gtk.h +++ b/chrome/browser/gtk/tabs/tab_gtk.h @@ -28,6 +28,9 @@ class TabGtk : public TabRendererGtk, // Returns true if the specified Tab is selected. virtual bool IsTabSelected(const TabGtk* tab) const = 0; + // Returns true if the specified Tab is detached. + virtual bool IsTabDetached(const TabGtk* tab) const = 0; + // Selects the specified Tab. virtual void SelectTab(TabGtk* tab) = 0; @@ -72,7 +75,7 @@ class TabGtk : public TabRendererGtk, virtual ThemeProvider* GetThemeProvider() = 0; }; - TabGtk(TabDelegate* delegate); + explicit TabGtk(TabDelegate* delegate); virtual ~TabGtk(); // Access the delegate. |