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

Side by Side Diff: base/file_version_info_mac.h

Issue 5968008: Update file version info/memory details/process utils to use string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/file_version_info.h ('k') | base/file_version_info_mac.mm » ('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) 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_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/file_version_info.h" 11 #include "base/file_version_info.h"
12 #include "base/scoped_nsobject.h" 12 #include "base/scoped_nsobject.h"
13 13
14 #ifdef __OBJC__ 14 #ifdef __OBJC__
15 @class NSBundle; 15 @class NSBundle;
16 #else 16 #else
17 class NSBundle; 17 class NSBundle;
18 #endif 18 #endif
19 19
20 // Provides a way to access the version information for a file.
21 // This is the information you access when you select a file in the Windows
22 // explorer, right-click select Properties, then click the Version tab.
23
24 class FileVersionInfoMac : public FileVersionInfo { 20 class FileVersionInfoMac : public FileVersionInfo {
25 public: 21 public:
26 explicit FileVersionInfoMac(NSBundle *bundle); 22 explicit FileVersionInfoMac(NSBundle *bundle);
27 23
28 // Accessors to the different version properties. 24 // Accessors to the different version properties.
29 // Returns an empty string if the property is not found. 25 // Returns an empty string if the property is not found.
30 virtual std::wstring company_name(); 26 virtual string16 company_name();
31 virtual std::wstring company_short_name(); 27 virtual string16 company_short_name();
32 virtual std::wstring product_name(); 28 virtual string16 product_name();
33 virtual std::wstring product_short_name(); 29 virtual string16 product_short_name();
34 virtual std::wstring internal_name(); 30 virtual string16 internal_name();
35 virtual std::wstring product_version(); 31 virtual string16 product_version();
36 virtual std::wstring private_build(); 32 virtual string16 private_build();
37 virtual std::wstring special_build(); 33 virtual string16 special_build();
38 virtual std::wstring comments(); 34 virtual string16 comments();
39 virtual std::wstring original_filename(); 35 virtual string16 original_filename();
40 virtual std::wstring file_description(); 36 virtual string16 file_description();
41 virtual std::wstring file_version(); 37 virtual string16 file_version();
42 virtual std::wstring legal_copyright(); 38 virtual string16 legal_copyright();
43 virtual std::wstring legal_trademarks(); 39 virtual string16 legal_trademarks();
44 virtual std::wstring last_change(); 40 virtual string16 last_change();
45 virtual bool is_official_build(); 41 virtual bool is_official_build();
46 42
47 private: 43 private:
48 44
49 45
50 // Returns a wstring value for a property name. 46 // Returns a string16 value for a property name.
51 // Returns the empty string if the property does not exist. 47 // Returns the empty string if the property does not exist.
52 std::wstring GetWStringValue(CFStringRef name); 48 string16 GetString16Value(CFStringRef name);
53 49
54 scoped_nsobject<NSBundle> bundle_; 50 scoped_nsobject<NSBundle> bundle_;
55 51
56 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac); 52 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac);
57 }; 53 };
58 54
59 #endif // BASE_FILE_VERSION_INFO_MAC_H_ 55 #endif // BASE_FILE_VERSION_INFO_MAC_H_
OLDNEW
« no previous file with comments | « base/file_version_info.h ('k') | base/file_version_info_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698