diff options
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r-- | chrome/browser/gtk/gtk_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index b100b1d..02ae615 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -17,6 +17,8 @@ typedef struct _GtkWidget GtkWidget; class GtkThemeProvider; +class GURL; +class Profile; struct RendererPreferences; // from common/renderer_preferences.h namespace event_utils { @@ -260,6 +262,11 @@ bool GrabAllInput(GtkWidget* widget); // returns is the same as widget->allocation, but anchored at (0, 0). gfx::Rect WidgetBounds(GtkWidget* widget); +// Uses the autocomplete controller for |profile| to convert the contents of the +// PRIMARY selection to a parsed URL. Returns true and sets |url| on success, +// otherwise returns false. +bool URLFromPrimarySelection(Profile* profile, GURL* url); + } // namespace gtk_util #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ |