Chromium Code Reviews| Index: ios/web_view/internal/translate/criwv_translate_manager_impl.h |
| diff --git a/ios/web_view/internal/translate/criwv_translate_manager_impl.h b/ios/web_view/internal/translate/criwv_translate_manager_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..445c2cba88288c4921e437db656dcfd46991b765 |
| --- /dev/null |
| +++ b/ios/web_view/internal/translate/criwv_translate_manager_impl.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 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_CRIWV_TRANSLATE_MANAGER_IMPL_H_ |
| +#define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ |
| + |
| +#include <string> |
| + |
| +#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.
|
| +#import "ios/web_view/public/criwv_translate_manager.h" |
| + |
| +namespace translate { |
| +class TranslateManager; |
| +} |
| + |
| +// CRIWVTranslateManagerImpl is mostly an Objective-C wrapper around |
| +// translate::TranslateUIDelegate. |
| +@interface CRIWVTranslateManagerImpl : NSObject<CRIWVTranslateManager> |
| + |
| +// |manager| is expexted to outlive this CRIWVTranslateManagerImpl. |
| +- (instancetype)initWithTranslateManager:(translate::TranslateManager*)manager |
| + sourceLanguage:(const std::string&)source |
| + 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.
|
| + |
| +@end |
| + |
| +#endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ |