Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Unified Diff: ui/gfx/animation/animation.cc

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/android/DEPS ('k') | ui/gfx/animation/animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation.cc
diff --git a/ui/gfx/animation/animation.cc b/ui/gfx/animation/animation.cc
index fce72e8fce53f5104aa2e6e9513bea631f2164ce..46ca1e927daf3cbf2fc3cbf899a035dec2b051ae 100644
--- a/ui/gfx/animation/animation.cc
+++ b/ui/gfx/animation/animation.cc
@@ -9,10 +9,6 @@
#include "ui/gfx/animation/tween.h"
#include "ui/gfx/rect.h"
-#if defined(OS_WIN)
-#include "base/win/windows_version.h"
-#endif
-
namespace gfx {
Animation::Animation(base::TimeDelta timer_interval)
@@ -93,22 +89,7 @@ void Animation::SetContainer(AnimationContainer* container) {
// static
bool Animation::ShouldRenderRichAnimation() {
-#if defined(OS_WIN)
- if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
- BOOL result;
- // Get "Turn off all unnecessary animations" value.
- if (::SystemParametersInfo(SPI_GETCLIENTAREAANIMATION, 0, &result, 0)) {
- // There seems to be a typo in the MSDN document (as of May 2009):
- // http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx
- // The document states that the result is TRUE when animations are
- // _disabled_, but in fact, it is TRUE when they are _enabled_.
- return !!result;
- }
- }
- return !::GetSystemMetrics(SM_REMOTESESSION);
-#else
return true;
-#endif
}
bool Animation::ShouldSendCanceledFromStop() {
« no previous file with comments | « ui/gfx/android/DEPS ('k') | ui/gfx/animation/animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698