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

Side by Side Diff: ios/web_view/public/cwv_translation_language.h

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 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
7
8 #import <ChromeWebView/cwv_export.h>
9 #import <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12
13 // Represents a single translatable language.
14 CWV_EXPORT
15 @interface CWVTranslationLanguage : NSObject
16
17 - (instancetype)init NS_UNAVAILABLE;
18
19 // The ISO language code. en for English, es for Spanish, etc...
20 // https://cloud.google.com/translate/docs/languages
21 @property(nonatomic, copy, readonly) NSString* languageCode;
22
23 // The localized language name.
24 @property(nonatomic, copy, readonly) NSString* languageName;
25
26 @end
27
28 NS_ASSUME_NONNULL_END
29
30 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
OLDNEW
« no previous file with comments | « ios/web_view/public/cwv_translation_controller_delegate.h ('k') | ios/web_view/public/cwv_web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698