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

Unified Diff: ios/web_view/internal/translate/cwv_translation_language_internal.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 side-by-side diff with in-line comments
Download patch
Index: ios/web_view/internal/translate/cwv_translation_language_internal.h
diff --git a/ios/web_view/internal/translate/cwv_translation_language_internal.h b/ios/web_view/internal/translate/cwv_translation_language_internal.h
new file mode 100644
index 0000000000000000000000000000000000000000..f4d8cda91d92681f35a4d9c4751167beefac6e88
--- /dev/null
+++ b/ios/web_view/internal/translate/cwv_translation_language_internal.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_VIEW_INTERNAL_TRANSLATE_CWV_TRANSLATION_LANGUAGE_INTERNAL_H
+#define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CWV_TRANSLATION_LANGUAGE_INTERNAL_H
+
+#import "ios/web_view/public/cwv_translation_language.h"
+
+#include <string>
+
+#include "base/strings/string16.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface CWVTranslationLanguage ()
+
+- (instancetype)initWithLanguageCode:(const std::string&)languageCode
+ languageName:(const base::string16&)languageName
+ NS_DESIGNATED_INITIALIZER;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CWV_TRANSLATION_LANGUAGE_INTERNAL_H

Powered by Google App Engine
This is Rietveld 408576698