diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 21:09:00 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 21:09:00 +0000 |
commit | b69e649feb5dc5f7daa6daa84c98b3a2d9a28124 (patch) | |
tree | 5f56ff83299a2753d388c5fd1d3dcdf59e4be9b0 /chrome/browser/gtk/gtk_util.h | |
parent | 68b745055e85cc466a0c867e87eacb43539baaa4 (diff) | |
download | chromium_src-b69e649feb5dc5f7daa6daa84c98b3a2d9a28124.zip chromium_src-b69e649feb5dc5f7daa6daa84c98b3a2d9a28124.tar.gz chromium_src-b69e649feb5dc5f7daa6daa84c98b3a2d9a28124.tar.bz2 |
GTK: raise old browser windows when adding a new tab
BUG=38166
TEST=`google-chrome http://google.com` should raise the browser window.
Review URL: http://codereview.chromium.org/1646011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r-- | chrome/browser/gtk/gtk_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index 02ae615..1d8b6d3 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -262,6 +262,16 @@ bool GrabAllInput(GtkWidget* widget); // returns is the same as widget->allocation, but anchored at (0, 0). gfx::Rect WidgetBounds(GtkWidget* widget); +// Update the timestamp for the given window. This is usually the time of the +// last user event, but on rare occasions we wish to update it despite not +// receiving a user event. +void SetWMLastUserActionTime(GtkWindow* window); + +// The current system time, using the format expected by the X server, but not +// retrieved from the X server. NOTE: You should almost never need to use this +// function, instead using the timestamp from the latest GDK event. +guint32 XTimeNow(); + // 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. |