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 #import "ios/web_view/public/cwv_language_detection_result.h" | |
|
michaeldo
2017/05/01 18:25:36
No need for this import. _internal.h import is OK,
jzw1
2017/05/08 03:36:27
Ah ok. Was wondering about that :)
| |
| 6 | |
| 7 #import "ios/web_view/internal/translate/cwv_language_detection_result_internal. h" | |
| 8 #import "ios/web_view/public/cwv_translation_language.h" | |
| 9 | |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 11 #error "This file requires ARC support." | |
| 12 #endif | |
| 13 | |
| 14 @implementation CWVLanguageDetectionResult | |
| 15 | |
| 16 @synthesize pageLanguage = _pageLanguage; | |
| 17 @synthesize suggestedTargetLanguage = _suggestedTargetLanguage; | |
| 18 @synthesize supportedLanguages = _supportedLanguages; | |
| 19 | |
| 20 - (instancetype) | |
| 21 initWithPageLanguage:(CWVTranslationLanguage*)pageLanguage | |
| 22 suggestedTargetLanguage:(CWVTranslationLanguage*)suggestedTargetLanguage | |
| 23 supportedLanguages:(NSArray<CWVTranslationLanguage*>*)supportedLanguages { | |
| 24 self = [super init]; | |
| 25 if (self) { | |
| 26 _pageLanguage = pageLanguage; | |
| 27 _suggestedTargetLanguage = suggestedTargetLanguage; | |
| 28 _supportedLanguages = supportedLanguages; | |
| 29 } | |
| 30 return self; | |
| 31 } | |
| 32 | |
| 33 @end | |
| OLD | NEW |