| Index: ios/chrome/browser/voice/speech_input_locale_match_config.h
|
| diff --git a/ios/chrome/browser/voice/speech_input_locale_match_config.h b/ios/chrome/browser/voice/speech_input_locale_match_config.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..011f7cab21d6f6314c02d842eecd7b7d638f690d
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/voice/speech_input_locale_match_config.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_
|
| +#define IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +#import "ios/chrome/browser/updatable_config/updatable_array.h"
|
| +
|
| +// Object containing matching locales for unsupported regional variants, loaded
|
| +// from SpeechInputLocaleMatches.plist.
|
| +@interface SpeechInputLocaleMatchConfig : UpdatableArray
|
| +
|
| +// Access to singleton object.
|
| ++ (instancetype)sharedInstance;
|
| +
|
| +// The SpeechInputLocaleMatches loaded from the plist.
|
| +@property(nonatomic, readonly) NSArray* matches;
|
| +
|
| +@end
|
| +
|
| +// Object describing the locale codes that match a single supported locale.
|
| +@interface SpeechInputLocaleMatch : NSObject
|
| +
|
| +// Designated initializer.
|
| +- (instancetype)initWithDictionary:(NSDictionary*)matchDict
|
| + NS_DESIGNATED_INITIALIZER;
|
| +- (instancetype)init NS_UNAVAILABLE;
|
| +
|
| +// The locale code that should be used as the default code for the locale codes
|
| +// found in |matchingLocaleCodes|.
|
| +@property(nonatomic, readonly) NSString* matchedLocaleCode;
|
| +
|
| +// The locale codes that should be matched with |matchedLocaleCode|.
|
| +@property(nonatomic, readonly) NSArray* matchingLocaleCodes;
|
| +
|
| +// The languages that use |matchedLocaleCode| as a default.
|
| +@property(nonatomic, readonly) NSArray* matchingLanguages;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_MATCH_CONFIG_H_
|
|
|