diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 00:13:30 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-09 00:13:30 +0000 |
commit | 19aad64511d3fad539184abfe5af5ff6264e630c (patch) | |
tree | 02267694a54ea272091e74bfad14f4e7c6fa8d27 /chrome/common/gtk_util.h | |
parent | 3aeef847d90b695428851813fc6ada34aac5a21d (diff) | |
download | chromium_src-19aad64511d3fad539184abfe5af5ff6264e630c.zip chromium_src-19aad64511d3fad539184abfe5af5ff6264e630c.tar.gz chromium_src-19aad64511d3fad539184abfe5af5ff6264e630c.tar.bz2 |
Implement URL Drag & Drop for the linux tabstrip.
BUG=none
TEST=Drag a link from Firefox into the Chromium tab strip. A new tab should open either before, after, or in the same tab depending on where the drop occurred.
Review URL: http://codereview.chromium.org/118411
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index 5e5a275..4f42380 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -60,6 +60,9 @@ gfx::Point GetWidgetScreenPosition(GtkWidget* widget); // Returns the bounds of the specified widget in screen coordinates. gfx::Rect GetWidgetScreenBounds(GtkWidget* widget); +// Converts a point in a widget to screen coordinates. +void ConvertWidgetPointToScreen(GtkWidget* widget, gfx::Point* p); + // Initialize some GTK settings so that our dialogs are consistent. void InitRCStyles(); @@ -73,6 +76,9 @@ void CenterWidgetInHBox(GtkWidget* hbox, GtkWidget* widget, bool pack_at_end, // accelerators. Windows uses & with && as an escape for &.) std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label); +// Returns true if the screen is composited, false otherwise. +bool IsScreenComposited(); + } // namespace gtk_util #endif // CHROME_COMMON_GTK_UTIL_H_ |