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

Side by Side Diff: ios/web_view/internal/translate/cwv_translation_controller_internal.h

Issue 2839093002: Implemented new Translate API for purely Objective-C clients. (Closed)
Patch Set: added TODO 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_INTERNAL_TRANSLATE_CWV_TRANSLATION_CONTROLLER_INTERNAL_H
6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CWV_TRANSLATION_CONTROLLER_INTERNAL_H
7
8 #import "ios/web_view/public/cwv_translation_controller.h"
9
10 #include "components/translate/core/browser/translate_step.h"
11 #include "components/translate/core/common/translate_errors.h"
12 #import "ios/web/public/web_state/web_state.h"
13 #import "ios/web_view/internal/translate/web_view_translate_client.h"
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 // Some internal methods needed to hide any C++ details.
18 @interface CWVTranslationController ()
19
20 @property(nonatomic, assign) web::WebState* webState;
Eugene But (OOO till 7-30) 2017/04/27 13:08:08 Could you please write comment for these methods.
jzw1 2017/04/28 02:34:54 Done.
21
22 - (void)updateTranslateStep:(translate::TranslateStep)step
23 sourceLanguage:(const std::string&)sourceLanguage
24 targetLanguage:(const std::string&)targetLanguage
25 errorType:(translate::TranslateErrors::Type)errorType
26 triggeredFromMenu:(bool)triggeredFromMenu;
27
28 @end
29
30 NS_ASSUME_NONNULL_END
31
32 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CWV_TRANSLATION_CONTROLLER_INTERNAL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698