diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 23:35:44 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 23:35:44 +0000 |
commit | 36622b18a61d8896fa8417ee17863469e6aea427 (patch) | |
tree | 6547736dc86d92a561213ee4236754b68396084f /chrome/browser/gtk/bookmark_bar_gtk.h | |
parent | d38f83f98ff29ec940f0bc978a925fa7828fad67 (diff) | |
download | chromium_src-36622b18a61d8896fa8417ee17863469e6aea427.zip chromium_src-36622b18a61d8896fa8417ee17863469e6aea427.tar.gz chromium_src-36622b18a61d8896fa8417ee17863469e6aea427.tar.bz2 |
GTK: unify the bookmark dragging icon generation code into bookmark utils.
this also has the effect of standardizing the appearance of boomkark drags. On compositing window managers, the drag widget will have no background.
BUG=42147
TEST=manual
Review URL: http://codereview.chromium.org/1780016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h index 405ca15..c6e7ae0 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.h +++ b/chrome/browser/gtk/bookmark_bar_gtk.h @@ -22,6 +22,7 @@ #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" #include "chrome/common/owned_widget_gtk.h" +#include "gfx/point.h" #include "gfx/size.h" #include "testing/gtest/include/gtest/gtest_prod.h" @@ -319,6 +320,9 @@ class BookmarkBarGtk : public AnimationDelegate, // dragging. const BookmarkNode* dragged_node_; + // The visual representation that follows the cursor during drags. + GtkWidget* drag_icon_; + // We create a GtkToolbarItem from |dragged_node_| ;or display. GtkToolItem* toolbar_drop_item_; @@ -358,6 +362,10 @@ class BookmarkBarGtk : public AnimationDelegate, // of this so we don't force too many paints. gfx::Size last_tab_contents_size_; + // The last coordinates recorded by OnButtonPress; used to line up the + // drag icon during bookmark drags. + gfx::Point last_pressed_coordinates_; + // The currently throbbing widget. This is NULL if no widget is throbbing. // We track it because we only want to allow one widget to throb at a time. GtkWidget* throbbing_widget_; |