From 9fa8af659705465662679b7663aa501b5cdb0861 Mon Sep 17 00:00:00 2001 From: "csilv@chromium.org" Date: Thu, 3 Jun 2010 17:15:22 +0000 Subject: Changes to allow focusing the syncronization dialog, useful for the case where the user chooses to sync, but the window is already open and obscured by another window. For now this only works on Mac due to how browser dialogs are handled on different platforms. BUG=30649 TEST=Choose to 'Sync' when the sync window is already open behind a browser window. Review URL: http://codereview.chromium.org/2121017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48840 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/platform_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/platform_util.h') diff --git a/chrome/browser/platform_util.h b/chrome/browser/platform_util.h index b75e7ff..4ab45b2 100644 --- a/chrome/browser/platform_util.h +++ b/chrome/browser/platform_util.h @@ -29,6 +29,9 @@ gfx::NativeWindow GetTopLevel(gfx::NativeView view); // Returns true if |window| is the foreground top level window. bool IsWindowActive(gfx::NativeWindow window); +// Activate the window, bringing it to the foreground top level. +void ActivateWindow(gfx::NativeWindow window); + // Returns true if the view is visible. The exact definition of this is // platform-specific, but it is generally not "visible to the user", rather // whether the view has the visible attribute set. -- cgit v1.1