| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Returns the CPU architecture of the system. Exact return value may differ | 46 // Returns the CPU architecture of the system. Exact return value may differ |
| 47 // across platforms. | 47 // across platforms. |
| 48 static std::string CPUArchitecture(); | 48 static std::string CPUArchitecture(); |
| 49 | 49 |
| 50 // Returns the pixel dimensions of the primary display via the | 50 // Returns the pixel dimensions of the primary display via the |
| 51 // width and height parameters. | 51 // width and height parameters. |
| 52 static void GetPrimaryDisplayDimensions(int* width, int* height); | 52 static void GetPrimaryDisplayDimensions(int* width, int* height); |
| 53 | 53 |
| 54 // Return the number of displays. | 54 // Return the number of displays. |
| 55 static int DisplayCount(); | 55 static int DisplayCount(); |
| 56 |
| 57 // Return the smallest amount of memory (in bytes) which the VM system will al
locate. |
| 58 static size_t VMAllocationGranularity(); |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 } // namespace base | 61 } // namespace base |
| 59 | 62 |
| 60 #endif // BASE_SYS_INFO_H_ | 63 #endif // BASE_SYS_INFO_H_ |
| OLD | NEW |