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

Side by Side Diff: ios/public/provider/chrome/browser/voice/voice_search_language.h

Issue 2425713002: [ios] Adds configuration helper files for voice search. (Closed)
Patch Set: Review and file moves. Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_LANGUAGE_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_LANGUAGE_H_
7
8 #import <Foundation/Foundation.h>
9
10 // VoiceSearchLanguage stores data about a single supported voice search
11 // language.
12 @interface VoiceSearchLanguage : NSObject
13
14 // Creates a VoiceSearchLanguageObject. |localizationPreferences| can be nil.
15 - (instancetype)initWithIdentifier:(NSString*)identifier
16 displayName:(NSString*)displayName
17 localizationPreference:(NSString*)localizationPreference
18 NS_DESIGNATED_INITIALIZER;
19
20 - (instancetype)init NS_UNAVAILABLE;
21
22 // The BCP 47 identifier for the language, e.g. "en-us" or "yue-hant-hk".
23 @property(nonatomic, readonly, copy) NSString* identifier;
24
25 // The display name for the language.
26 @property(nonatomic, readonly, copy) NSString* displayName;
27
28 // A localization identifier for use with +[NSBundle
29 // preferredLocalizationsFromArray:forPreferences:]. In general this is the
30 // same as |identifier|, but in some cases e.g. Chinese and Cantonese it
31 // differs to facilitate the NSBundle method.
32 @property(nonatomic, readonly, copy) NSString* localizationPreference;
33
34 @end
35
36 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698