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

Side by Side Diff: ios/chrome/browser/voice/speech_input_locale_match_config.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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698