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

Unified Diff: Source/platform/win/SystemInfo.h

Issue 39693002: Introduce isWindowsVistaOrGreater() as replacement of windowsVersion() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-10-28T12:54:24 Created 7 years, 2 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 | « Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp ('k') | Source/platform/win/SystemInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/win/SystemInfo.h
diff --git a/Source/platform/win/SystemInfo.h b/Source/platform/win/SystemInfo.h
index 8a56e2646435f615d1d9d42a7fdcc165c7346b7a..b9a34241fd50f1c15497b3abea793293bdff24a4 100644
--- a/Source/platform/win/SystemInfo.h
+++ b/Source/platform/win/SystemInfo.h
@@ -31,38 +31,7 @@
namespace WebCore {
-// NOTE: Keep these in order so callers can do things like
-// "if (windowsVersion() >= WindowsVista) ...". It's OK to change or add values,
-// though.
-enum WindowsVersion {
- // CE-based versions
- WindowsCE1 = 0,
- WindowsCE2,
- WindowsCE3,
- WindowsCE4,
- WindowsCE5,
- WindowsCE6,
- WindowsCE7,
- // 3.x-based versions
- Windows3_1,
- // 9x-based versions
- Windows95,
- Windows98,
- WindowsME,
- // NT-based versions
- WindowsNT3,
- WindowsNT4,
- Windows2000,
- WindowsXP,
- WindowsServer2003,
- WindowsVista,
- WindowsServer2008,
- Windows7,
-};
-
-// If supplied, |major| and |minor| are set to the OSVERSIONINFO::dwMajorVersion
-// and dwMinorVersion field values, respectively.
-PLATFORM_EXPORT WindowsVersion windowsVersion(int* major = 0, int* minor = 0);
+PLATFORM_EXPORT bool isWindowsVistaOrGreater();
} // namespace WebCore
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp ('k') | Source/platform/win/SystemInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698