| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SYS_INFO_H_ | 5 #ifndef BASE_SYS_INFO_H_ |
| 6 #define BASE_SYS_INFO_H_ | 6 #define BASE_SYS_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Returns the name of the host operating system. | 34 // Returns the name of the host operating system. |
| 35 static std::string OperatingSystemName(); | 35 static std::string OperatingSystemName(); |
| 36 | 36 |
| 37 // Returns the version of the host operating system. | 37 // Returns the version of the host operating system. |
| 38 static std::string OperatingSystemVersion(); | 38 static std::string OperatingSystemVersion(); |
| 39 | 39 |
| 40 // Retrieves detailed numeric values for the OS version. | 40 // Retrieves detailed numeric values for the OS version. |
| 41 // TODO(port): Implement a Linux version of this method and enable the | 41 // TODO(port): Implement a Linux version of this method and enable the |
| 42 // corresponding unit test. | 42 // corresponding unit test. |
| 43 static void OperatingSystemVersionNumbers(int32 *major_version, | 43 static void OperatingSystemVersionNumbers(int32* major_version, |
| 44 int32 *minor_version, | 44 int32* minor_version, |
| 45 int32 *bugfix_version); | 45 int32* bugfix_version); |
| 46 | 46 |
| 47 // Returns the CPU architecture of the system. Exact return value may differ | 47 // Returns the CPU architecture of the system. Exact return value may differ |
| 48 // across platforms. | 48 // across platforms. |
| 49 static std::string CPUArchitecture(); | 49 static std::string CPUArchitecture(); |
| 50 | 50 |
| 51 // Returns the pixel dimensions of the primary display via the | 51 // Returns the pixel dimensions of the primary display via the |
| 52 // width and height parameters. | 52 // width and height parameters. |
| 53 static void GetPrimaryDisplayDimensions(int* width, int* height); | 53 static void GetPrimaryDisplayDimensions(int* width, int* height); |
| 54 | 54 |
| 55 // Return the number of displays. | 55 // Return the number of displays. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 74 static void ParseLsbRelease(const std::string& lsb_release, | 74 static void ParseLsbRelease(const std::string& lsb_release, |
| 75 int32 *major_version, | 75 int32 *major_version, |
| 76 int32 *minor_version, | 76 int32 *minor_version, |
| 77 int32 *bugfix_version); | 77 int32 *bugfix_version); |
| 78 #endif | 78 #endif |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace base | 81 } // namespace base |
| 82 | 82 |
| 83 #endif // BASE_SYS_INFO_H_ | 83 #endif // BASE_SYS_INFO_H_ |
| OLD | NEW |