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

Side by Side Diff: base/file_version_info_mac.h

Issue 8520018: Add OVERRIDE to base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra header Created 9 years, 1 month 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_descriptor_shuffle.h ('k') | base/file_version_info_win.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_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/memory/scoped_nsobject.h" 12 #include "base/memory/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 class FileVersionInfoMac : public FileVersionInfo { 20 class FileVersionInfoMac : public FileVersionInfo {
21 public: 21 public:
22 explicit FileVersionInfoMac(NSBundle *bundle); 22 explicit FileVersionInfoMac(NSBundle *bundle);
23 virtual ~FileVersionInfoMac(); 23 virtual ~FileVersionInfoMac();
24 24
25 // Accessors to the different version properties. 25 // Accessors to the different version properties.
26 // Returns an empty string if the property is not found. 26 // Returns an empty string if the property is not found.
27 virtual string16 company_name(); 27 virtual string16 company_name() OVERRIDE;
28 virtual string16 company_short_name(); 28 virtual string16 company_short_name() OVERRIDE;
29 virtual string16 product_name(); 29 virtual string16 product_name() OVERRIDE;
30 virtual string16 product_short_name(); 30 virtual string16 product_short_name() OVERRIDE;
31 virtual string16 internal_name(); 31 virtual string16 internal_name() OVERRIDE;
32 virtual string16 product_version(); 32 virtual string16 product_version() OVERRIDE;
33 virtual string16 private_build(); 33 virtual string16 private_build() OVERRIDE;
34 virtual string16 special_build(); 34 virtual string16 special_build() OVERRIDE;
35 virtual string16 comments(); 35 virtual string16 comments() OVERRIDE;
36 virtual string16 original_filename(); 36 virtual string16 original_filename() OVERRIDE;
37 virtual string16 file_description(); 37 virtual string16 file_description() OVERRIDE;
38 virtual string16 file_version(); 38 virtual string16 file_version() OVERRIDE;
39 virtual string16 legal_copyright(); 39 virtual string16 legal_copyright() OVERRIDE;
40 virtual string16 legal_trademarks(); 40 virtual string16 legal_trademarks() OVERRIDE;
41 virtual string16 last_change(); 41 virtual string16 last_change() OVERRIDE;
42 virtual bool is_official_build(); 42 virtual bool is_official_build() OVERRIDE;
43 43
44 private: 44 private:
45 // Returns a string16 value for a property name. 45 // Returns a string16 value for a property name.
46 // Returns the empty string if the property does not exist. 46 // Returns the empty string if the property does not exist.
47 string16 GetString16Value(CFStringRef name); 47 string16 GetString16Value(CFStringRef name);
48 48
49 scoped_nsobject<NSBundle> bundle_; 49 scoped_nsobject<NSBundle> bundle_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac); 51 DISALLOW_COPY_AND_ASSIGN(FileVersionInfoMac);
52 }; 52 };
53 53
54 #endif // BASE_FILE_VERSION_INFO_MAC_H_ 54 #endif // BASE_FILE_VERSION_INFO_MAC_H_
OLDNEW
« no previous file with comments | « base/file_descriptor_shuffle.h ('k') | base/file_version_info_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698