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

Side by Side Diff: media/base/localized_strings.h

Issue 2801853002: Media Remoting: Remove old interstitial implementation. (Closed)
Patch Set: Rebase. Created 3 years, 8 months 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/media_observer.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 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_LOCALIZED_STRINGS_H_ 5 #ifndef MEDIA_BASE_MEDIA_LOCALIZED_STRINGS_H_
6 #define MEDIA_BASE_MEDIA_LOCALIZED_STRINGS_H_ 6 #define MEDIA_BASE_MEDIA_LOCALIZED_STRINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 10 matching lines...) Expand all
21 // chrome/app/generated_resources.grd. 21 // chrome/app/generated_resources.grd.
22 enum MessageId { 22 enum MessageId {
23 DEFAULT_AUDIO_DEVICE_NAME, 23 DEFAULT_AUDIO_DEVICE_NAME,
24 #if defined(OS_WIN) 24 #if defined(OS_WIN)
25 COMMUNICATIONS_AUDIO_DEVICE_NAME, 25 COMMUNICATIONS_AUDIO_DEVICE_NAME,
26 #endif 26 #endif
27 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
28 BEAMFORMING_ON_DEFAULT_AUDIO_INPUT_DEVICE_NAME, 28 BEAMFORMING_ON_DEFAULT_AUDIO_INPUT_DEVICE_NAME,
29 BEAMFORMING_OFF_DEFAULT_AUDIO_INPUT_DEVICE_NAME, 29 BEAMFORMING_OFF_DEFAULT_AUDIO_INPUT_DEVICE_NAME,
30 #endif 30 #endif
31 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
32 MEDIA_REMOTING_CAST_ERROR_TEXT,
33 MEDIA_REMOTING_CASTING_VIDEO_TEXT,
34 #endif
35 }; 31 };
36 32
37 // Implementations are expected to convert MessageIds to generated_resources.grd 33 // Implementations are expected to convert MessageIds to generated_resources.grd
38 // IDs and extract the matching string from Chrome's resource bundle (e.g. 34 // IDs and extract the matching string from Chrome's resource bundle (e.g.
39 // through l10n_util::GetStringUTF16). 35 // through l10n_util::GetStringUTF16).
40 using LocalizedStringProvider = base::string16 (*)(MessageId message_id); 36 using LocalizedStringProvider = base::string16 (*)(MessageId message_id);
41 37
42 // Initializes the global LocalizedStringProvider function. 38 // Initializes the global LocalizedStringProvider function.
43 MEDIA_EXPORT void SetLocalizedStringProvider(LocalizedStringProvider func); 39 MEDIA_EXPORT void SetLocalizedStringProvider(LocalizedStringProvider func);
44 40
45 #if !defined(OS_IOS) 41 #if !defined(OS_IOS)
46 // The LocalizedStringProvider has probably not been initialized on iOS. This 42 // The LocalizedStringProvider has probably not been initialized on iOS. This
47 // will give an early compile warning for clients attempting to use it. 43 // will give an early compile warning for clients attempting to use it.
48 44
49 // Returns a resource string corresponding to |message_id|. See l10n_util.h. 45 // Returns a resource string corresponding to |message_id|. See l10n_util.h.
50 // Returns an empty string if the LocalizedStringProvider has not been 46 // Returns an empty string if the LocalizedStringProvider has not been
51 // initialized or if the ID is unrecognized. 47 // initialized or if the ID is unrecognized.
52 MEDIA_EXPORT std::string GetLocalizedStringUTF8(MessageId message_id); 48 MEDIA_EXPORT std::string GetLocalizedStringUTF8(MessageId message_id);
53 base::string16 GetLocalizedStringUTF16(MessageId message_id); 49 base::string16 GetLocalizedStringUTF16(MessageId message_id);
54 #endif 50 #endif
55 51
56 } // namespace media 52 } // namespace media
57 53
58 #endif // MEDIA_BASE_MEDIA_LOCALIZED_STRINGS_H_ 54 #endif // MEDIA_BASE_MEDIA_LOCALIZED_STRINGS_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/media_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698