OLD | NEW |
1 // Copyright (c) 2006-2008 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_FILE_VERSION_INFO_MAC_H_ | 5 #ifndef BASE_FILE_VERSION_INFO_MAC_H_ |
6 #define BASE_FILE_VERSION_INFO_MAC_H_ | 6 #define BASE_FILE_VERSION_INFO_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 | 14 |
15 #ifdef __OBJC__ | 15 #ifdef __OBJC__ |
16 @class NSBundle; | 16 @class NSBundle; |
17 #else | 17 #else |
18 class NSBundle; | 18 class NSBundle; |
19 #endif | 19 #endif |
20 | 20 |
21 class FilePath; | |
22 | |
23 // Provides a way to access the version information for a file. | 21 // Provides a way to access the version information for a file. |
24 // This is the information you access when you select a file in the Windows | 22 // This is the information you access when you select a file in the Windows |
25 // explorer, right-click select Properties, then click the Version tab. | 23 // explorer, right-click select Properties, then click the Version tab. |
26 | 24 |
27 class FileVersionInfoMac : public FileVersionInfo { | 25 class FileVersionInfoMac : public FileVersionInfo { |
28 public: | 26 public: |
29 explicit FileVersionInfoMac(NSBundle *bundle); | 27 explicit FileVersionInfoMac(NSBundle *bundle); |
30 ~FileVersionInfoMac(); | 28 ~FileVersionInfoMac(); |
31 | 29 |
32 // Accessors to the different version properties. | 30 // Accessors to the different version properties. |
(...skipping 22 matching lines...) Expand all Loading... |
55 // Similar to GetValue but returns a wstring (empty string if the property | 53 // Similar to GetValue but returns a wstring (empty string if the property |
56 // does not exist). | 54 // does not exist). |
57 std::wstring GetStringValue(const wchar_t* name); | 55 std::wstring GetStringValue(const wchar_t* name); |
58 | 56 |
59 NSBundle *bundle_; | 57 NSBundle *bundle_; |
60 | 58 |
61 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac); | 59 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac); |
62 }; | 60 }; |
63 | 61 |
64 #endif // BASE_FILE_VERSION_INFO_MAC_H_ | 62 #endif // BASE_FILE_VERSION_INFO_MAC_H_ |
OLD | NEW |