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

Side by Side Diff: ios/web_view/internal/translate/cwv_language_detection_result.mm

Issue 2839093002: Implemented new Translate API for purely Objective-C clients. (Closed)
Patch Set: merge Created 3 years, 7 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 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/internal/translate/cwv_language_detection_result_internal. 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 pageLanguage = _pageLanguage;
16 @synthesize suggestedTargetLanguage = _suggestedTargetLanguage;
17 @synthesize supportedLanguages = _supportedLanguages;
18
19 - (instancetype)
20 initWithPageLanguage:(CWVTranslationLanguage*)pageLanguage
21 suggestedTargetLanguage:(CWVTranslationLanguage*)suggestedTargetLanguage
22 supportedLanguages:(NSArray<CWVTranslationLanguage*>*)supportedLanguages {
23 self = [super init];
24 if (self) {
25 _pageLanguage = pageLanguage;
26 _suggestedTargetLanguage = suggestedTargetLanguage;
27 _supportedLanguages = supportedLanguages;
28 }
29 return self;
30 }
31
32 @end
OLDNEW
« no previous file with comments | « ios/web_view/internal/cwv_web_view.mm ('k') | ios/web_view/internal/translate/cwv_language_detection_result_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698