| 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_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_ |
| 6 #define IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "ios/chrome/browser/updatable_config/updatable_array.h" |
| 11 |
| 12 // Object containing matching locales for unsupported regional variants, loaded |
| 13 // from SpeechInputLocaleMatches.plist. |
| 14 @interface SpeechInputLocaleMatchConfig : UpdatableArray |
| 15 |
| 16 // Access to singleton object. |
| 17 + (instancetype)sharedInstance; |
| 18 |
| 19 // The SpeechInputLocaleMatches loaded from the plist. |
| 20 @property(nonatomic, readonly) NSArray* matches; |
| 21 |
| 22 @end |
| 23 |
| 24 // Object describing the locale codes that match a single supported locale. |
| 25 @interface SpeechInputLocaleMatch : NSObject |
| 26 |
| 27 // Designated initializer. |
| 28 - (instancetype)initWithDictionary:(NSDictionary*)matchDict |
| 29 NS_DESIGNATED_INITIALIZER; |
| 30 - (instancetype)init NS_UNAVAILABLE; |
| 31 |
| 32 // The locale code that should be used as the default code for the locale codes |
| 33 // found in |matchingLocaleCodes|. |
| 34 @property(nonatomic, readonly) NSString* matchedLocaleCode; |
| 35 |
| 36 // The locale codes that should be matched with |matchedLocaleCode|. |
| 37 @property(nonatomic, readonly) NSArray* matchingLocaleCodes; |
| 38 |
| 39 // The languages that use |matchedLocaleCode| as a default. |
| 40 @property(nonatomic, readonly) NSArray* matchingLanguages; |
| 41 |
| 42 @end |
| 43 |
| 44 #endif // IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_ |
| OLD | NEW |