| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_WIN_WINDOWS_VERSION_H_ | 5 #ifndef BASE_WIN_WINDOWS_VERSION_H_ |
| 6 #define BASE_WIN_WINDOWS_VERSION_H_ | 6 #define BASE_WIN_WINDOWS_VERSION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
| 12 | 14 |
| 13 typedef void* HANDLE; | 15 typedef void* HANDLE; |
| 14 | 16 |
| 15 namespace base { | 17 namespace base { |
| 16 namespace win { | 18 namespace win { |
| 17 | 19 |
| 18 // The running version of Windows. This is declared outside OSInfo for | 20 // The running version of Windows. This is declared outside OSInfo for |
| 19 // syntactic sugar reasons; see the declaration of GetVersion() below. | 21 // syntactic sugar reasons; see the declaration of GetVersion() below. |
| 20 // NOTE: Keep these in order so callers can do things like | 22 // NOTE: Keep these in order so callers can do things like |
| 21 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...". | 23 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...". |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 // Because this is by far the most commonly-requested value from the above | 119 // Because this is by far the most commonly-requested value from the above |
| 118 // singleton, we add a global-scope accessor here as syntactic sugar. | 120 // singleton, we add a global-scope accessor here as syntactic sugar. |
| 119 BASE_EXPORT Version GetVersion(); | 121 BASE_EXPORT Version GetVersion(); |
| 120 | 122 |
| 121 } // namespace win | 123 } // namespace win |
| 122 } // namespace base | 124 } // namespace base |
| 123 | 125 |
| 124 #endif // BASE_WIN_WINDOWS_VERSION_H_ | 126 #endif // BASE_WIN_WINDOWS_VERSION_H_ |
| OLD | NEW |