OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MEDIA_BASE_MEDIA_RESOURCES_H_ | 5 #ifndef MEDIA_BASE_MEDIA_RESOURCES_H_ |
6 #define MEDIA_BASE_MEDIA_RESOURCES_H_ | 6 #define MEDIA_BASE_MEDIA_RESOURCES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "build/build_config.h" |
11 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
12 | 13 |
13 namespace media { | 14 namespace media { |
14 | 15 |
15 // The media layer can't access Chrome's resource bundle directly. This facility | 16 // The media layer can't access Chrome's resource bundle directly. This facility |
16 // allows clients to provide indirect access. | 17 // allows clients to provide indirect access. |
17 | 18 |
18 // IDs that will get mapped to corresponding entries with IDS_ prefixes in | 19 // IDs that will get mapped to corresponding entries with IDS_ prefixes in |
19 // chrome/app/generated_resources.grd. | 20 // chrome/app/generated_resources.grd. |
20 enum MessageId { | 21 enum MessageId { |
(...skipping 22 matching lines...) Expand all Loading... |
43 // Returns a resource string corresponding to |message_id|. See l10n_util.h. | 44 // Returns a resource string corresponding to |message_id|. See l10n_util.h. |
44 // Returns an empty string if the LocalizedStringProvider has not been | 45 // Returns an empty string if the LocalizedStringProvider has not been |
45 // initialized or if the ID is unrecognized. | 46 // initialized or if the ID is unrecognized. |
46 std::string GetLocalizedStringUTF8(MessageId message_id); | 47 std::string GetLocalizedStringUTF8(MessageId message_id); |
47 base::string16 GetLocalizedStringUTF16(MessageId message_id); | 48 base::string16 GetLocalizedStringUTF16(MessageId message_id); |
48 #endif | 49 #endif |
49 | 50 |
50 } // namespace media | 51 } // namespace media |
51 | 52 |
52 #endif // MEDIA_BASE_MEDIA_RESOURCES_H_ | 53 #endif // MEDIA_BASE_MEDIA_RESOURCES_H_ |
OLD | NEW |