Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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_WEB_VIEW_PUBLIC_CWV_LANGUAGE_DETECTION_RESULT_H | |
| 6 #define IOS_WEB_VIEW_PUBLIC_CWV_LANGUAGE_DETECTION_RESULT_H | |
| 7 | |
| 8 #import <ChromeWebView/cwv_export.h> | |
| 9 #import <Foundation/Foundation.h> | |
| 10 | |
| 11 NS_ASSUME_NONNULL_BEGIN | |
| 12 | |
| 13 @class CWVTranslationLanguage; | |
| 14 | |
| 15 // Encapsulates the results of language detection in one class. | |
| 16 CWV_EXPORT | |
| 17 @interface CWVLanguageDetectionResult : NSObject | |
| 18 | |
| 19 - (instancetype)init NS_UNAVAILABLE; | |
| 20 | |
| 21 // The detected language of the page. | |
| 22 // Can be used to translate to |suggestedTargetLanguage|. | |
|
michaeldo
2017/05/01 18:25:37
No need for second line of comment.
jzw1
2017/05/08 03:36:28
Done.
| |
| 23 @property(nonatomic, readonly) CWVTranslationLanguage* pageLanguage; | |
| 24 | |
| 25 // The suggested language to translate to. | |
|
michaeldo
2017/05/01 18:25:37
What about this specifying where this comes from.
jzw1
2017/05/08 03:36:28
I believe Eugene didn't want to be too specific si
michaeldo
2017/05/08 15:15:48
Ok, no prob. That's a good point.
| |
| 26 // Can be used to translate from |detectedPageLanguage|. | |
|
michaeldo
2017/05/01 18:25:37
No need for second line of comment.
jzw1
2017/05/08 03:36:28
Done.
| |
| 27 @property(nonatomic, readonly) CWVTranslationLanguage* suggestedTargetLanguage; | |
| 28 | |
| 29 // The list of supported languages that can be used in translation. | |
| 30 @property(nonatomic, readonly) | |
|
michaeldo
2017/05/01 18:25:37
copy attribute here?
jzw1
2017/05/08 03:36:28
Done.
| |
| 31 NSArray<CWVTranslationLanguage*>* supportedLanguages; | |
| 32 | |
| 33 @end | |
| 34 | |
| 35 NS_ASSUME_NONNULL_END | |
| 36 | |
| 37 #endif // IOS_WEB_VIEW_PUBLIC_CWV_LANGUAGE_DETECTION_RESULT_H | |
| OLD | NEW |