| OLD | NEW |
| (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_ |
| OLD | NEW |