OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_CRIWV_TRANSLATE_MANAGER_IMPL_H_ | |
6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #import "ios/web_view/public/criwv_translate_manager.h" | |
11 | |
12 namespace translate { | |
13 class TranslateManager; | |
14 } | |
15 | |
16 // CRIWVTranslateManagerImpl is mostly an Objective-C wrapper around | |
17 // translate::TranslateUIDelegate. | |
18 @interface CRIWVTranslateManagerImpl : NSObject<CRIWVTranslateManager> | |
19 | |
20 - (instancetype)init NS_UNAVAILABLE; | |
21 | |
22 // |manager| is expexted to outlive this CRIWVTranslateManagerImpl. | |
23 - (instancetype)initWithTranslateManager:(translate::TranslateManager*)manager | |
24 sourceLanguage:(const std::string&)source | |
25 targetLanguage:(const std::string&)target | |
26 NS_DESIGNATED_INITIALIZER; | |
27 | |
28 @end | |
29 | |
30 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ | |
OLD | NEW |