summaryrefslogtreecommitdiffstats
path: root/chrome/common/platform_util_win.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 22:19:17 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 22:19:17 +0000
commitbd1ad684dee1355226c5f6946034369b98186a55 (patch)
treef96a5a2e95a8a14aa35dd07a94578d5cc66d0c02 /chrome/common/platform_util_win.cc
parentf363a3a828686f6aad65501abe7b33b0d4d13d32 (diff)
downloadchromium_src-bd1ad684dee1355226c5f6946034369b98186a55.zip
chromium_src-bd1ad684dee1355226c5f6946034369b98186a55.tar.gz
chromium_src-bd1ad684dee1355226c5f6946034369b98186a55.tar.bz2
GTK: Add download shelf first show animation.
http://crbug.com/8631 Review URL: http://codereview.chromium.org/113428 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/platform_util_win.cc')
-rw-r--r--chrome/common/platform_util_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/platform_util_win.cc b/chrome/common/platform_util_win.cc
index e0ee665..f1af709 100644
--- a/chrome/common/platform_util_win.cc
+++ b/chrome/common/platform_util_win.cc
@@ -97,4 +97,9 @@ bool IsWindowActive(gfx::NativeWindow window) {
return ::GetForegroundWindow() == window;
}
+bool IsVisible(gfx::NativeView view) {
+ // MSVC complains if we don't include != 0.
+ return ::IsWindowVisible(view) != 0;
+}
+
} // namespace platform_util