Chromium Code Reviews| 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 #include "base/memory/weak_ptr.h" | |
|
sdefresne
2017/01/20 10:28:13
Remove?
michaeldo
2017/01/24 22:35:26
Done in dep CL.
| |
| 11 #import "ios/web_view/public/criwv_translate_manager.h" | |
| 12 | |
| 13 namespace translate { | |
| 14 class TranslateManager; | |
| 15 } | |
| 16 | |
| 17 // CRIWVTranslateManagerImpl is mostly an Objective-C wrapper around | |
| 18 // translate::TranslateUIDelegate. | |
| 19 @interface CRIWVTranslateManagerImpl : NSObject<CRIWVTranslateManager> | |
| 20 | |
| 21 // |manager| is expexted to outlive this CRIWVTranslateManagerImpl. | |
| 22 - (instancetype)initWithTranslateManager:(translate::TranslateManager*)manager | |
| 23 sourceLanguage:(const std::string&)source | |
| 24 targetLanguage:(const std::string&)target; | |
|
sdefresne
2017/01/20 10:28:13
NS_DESIGNATED_INITIALIZER
michaeldo
2017/01/24 22:35:26
Done in dep CL.
| |
| 25 | |
| 26 @end | |
| 27 | |
| 28 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ | |
| OLD | NEW |