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

Side by Side Diff: base/win/windows_version.h

Issue 7461141: Rename BASE_API to BASE_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/win/win_util.h ('k') | base/win/wrapped_window_proc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/base_api.h" 9 #include "base/base_export.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 11
12 typedef void* HANDLE; 12 typedef void* HANDLE;
13 13
14 namespace base { 14 namespace base {
15 namespace win { 15 namespace win {
16 16
17 // The running version of Windows. This is declared outside OSInfo for 17 // The running version of Windows. This is declared outside OSInfo for
18 // syntactic sugar reasons; see the declaration of GetVersion() below. 18 // syntactic sugar reasons; see the declaration of GetVersion() below.
19 // NOTE: Keep these in order so callers can do things like 19 // NOTE: Keep these in order so callers can do things like
20 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...". 20 // "if (base::win::GetVersion() >= base::win::VERSION_VISTA) ...".
21 enum Version { 21 enum Version {
22 VERSION_PRE_XP = 0, // Not supported. 22 VERSION_PRE_XP = 0, // Not supported.
23 VERSION_XP, 23 VERSION_XP,
24 VERSION_SERVER_2003, // Also includes Windows XP Professional x64. 24 VERSION_SERVER_2003, // Also includes Windows XP Professional x64.
25 VERSION_VISTA, 25 VERSION_VISTA,
26 VERSION_SERVER_2008, 26 VERSION_SERVER_2008,
27 VERSION_WIN7, 27 VERSION_WIN7,
28 }; 28 };
29 29
30 // A Singleton that can be used to query various pieces of information about the 30 // A Singleton that can be used to query various pieces of information about the
31 // OS and process state. 31 // OS and process state.
32 class BASE_API OSInfo { 32 class BASE_EXPORT OSInfo {
33 public: 33 public:
34 struct VersionNumber { 34 struct VersionNumber {
35 int major; 35 int major;
36 int minor; 36 int minor;
37 int build; 37 int build;
38 }; 38 };
39 39
40 struct ServicePack { 40 struct ServicePack {
41 int major; 41 int major;
42 int minor; 42 int minor;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 int processors_; 91 int processors_;
92 size_t allocation_granularity_; 92 size_t allocation_granularity_;
93 WOW64Status wow64_status_; 93 WOW64Status wow64_status_;
94 94
95 friend struct DefaultSingletonTraits<OSInfo>; 95 friend struct DefaultSingletonTraits<OSInfo>;
96 DISALLOW_COPY_AND_ASSIGN(OSInfo); 96 DISALLOW_COPY_AND_ASSIGN(OSInfo);
97 }; 97 };
98 98
99 // Because this is by far the most commonly-requested value from the above 99 // Because this is by far the most commonly-requested value from the above
100 // singleton, we add a global-scope accessor here as syntactic sugar. 100 // singleton, we add a global-scope accessor here as syntactic sugar.
101 BASE_API Version GetVersion(); 101 BASE_EXPORT Version GetVersion();
102 102
103 } // namespace win 103 } // namespace win
104 } // namespace base 104 } // namespace base
105 105
106 #endif // BASE_WIN_WINDOWS_VERSION_H_ 106 #endif // BASE_WIN_WINDOWS_VERSION_H_
OLDNEW
« no previous file with comments | « base/win/win_util.h ('k') | base/win/wrapped_window_proc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698