diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-04 01:57:59 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-04 01:57:59 +0000 |
commit | 2f4dead0246a6043ad9539ed8a95ab2955aab442 (patch) | |
tree | 0f829467bd0ddd1645f73279bf587b7139185726 /chrome/browser/gtk/gtk_util.h | |
parent | 29de42c9c4ed71039af911a3331be51c2da9a098 (diff) | |
download | chromium_src-2f4dead0246a6043ad9539ed8a95ab2955aab442.zip chromium_src-2f4dead0246a6043ad9539ed8a95ab2955aab442.tar.gz chromium_src-2f4dead0246a6043ad9539ed8a95ab2955aab442.tar.bz2 |
reland r57885 with a fix for the DCHECK failures observed by nsylvain.
Now we only delay shutdown of the constrained window in the escape case (see constrained_window_gtk.cc). Locally this fixes the DCHECKs in both manual testing and the login prompt ui tests.
BUG=53242, 50799
TEST=ui_tests --gtest_filter=LoginPromptTest*
Review URL: http://codereview.chromium.org/3351006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r-- | chrome/browser/gtk/gtk_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index 20d3c6a..95200d4 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -315,6 +315,10 @@ gfx::Rect GetDialogBounds(GtkWidget* dialog); // empty string if no stock item found. string16 GetStockPreferencesMenuLabel(); +// Checks whether a widget is actually visible, i.e. whether it and all its +// ancestors up to its toplevel are visible. +bool IsWidgetAncestryVisible(GtkWidget* widget); + } // namespace gtk_util #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ |