diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:08:48 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:08:48 +0000 |
commit | 43b7725b6686228f86ef1306703e6dade09dcc27 (patch) | |
tree | 638b550d39cc864af5c470f0259c7fe99671435c /chrome/common/gtk_util.h | |
parent | 606d7469d6da2cc63a7188b75059bd6e5fe1f82f (diff) | |
download | chromium_src-43b7725b6686228f86ef1306703e6dade09dcc27.zip chromium_src-43b7725b6686228f86ef1306703e6dade09dcc27.tar.gz chromium_src-43b7725b6686228f86ef1306703e6dade09dcc27.tar.bz2 |
Implement DraggedTabGtk, the object that handles rendering either a dragged tab or tab contents during a tab drag.
Review URL: http://codereview.chromium.org/113532
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index 9a94182..ab9a29d 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -7,6 +7,8 @@ #include <gtk/gtk.h> +#include "base/gfx/point.h" +#include "base/gfx/rect.h" #include "webkit/glue/window_open_disposition.h" typedef struct _GtkWidget GtkWidget; @@ -30,6 +32,12 @@ GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, // Remove all children from this container. void RemoveAllChildren(GtkWidget* container); +// Gets the position of a gtk widget in screen coordinates. +gfx::Point GetWidgetScreenPosition(GtkWidget* widget); + +// Returns the bounds of the specified widget in screen coordinates. +gfx::Rect GetWidgetScreenBounds(GtkWidget* widget); + } // namespace gtk_util #endif // CHROME_COMMON_GTK_UTIL_H_ |