| 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" |
| 6 |
| 7 #import "ios/web_view/public/cwv_translation_language.h" |
| 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
| 13 @implementation CWVLanguageDetectionResult |
| 14 |
| 15 @synthesize sourceLanguage = _sourceLanguage; |
| 16 @synthesize targetLanguage = _targetLanguage; |
| 17 @synthesize supportedLanguages = _supportedLanguages; |
| 18 |
| 19 - (instancetype)initWithSourceLanguage:(CWVTranslationLanguage*)sourceLanguage |
| 20 targetLanguage:(CWVTranslationLanguage*)targetLanguage |
| 21 supportedLanguages: |
| 22 (NSArray<CWVTranslationLanguage*>*)supportedLanguages { |
| 23 self = [super init]; |
| 24 if (self) { |
| 25 _sourceLanguage = sourceLanguage; |
| 26 _targetLanguage = targetLanguage; |
| 27 _supportedLanguages = supportedLanguages; |
| 28 } |
| 29 return self; |
| 30 } |
| 31 |
| 32 @end |
| OLD | NEW |