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

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

Issue 2650323002: Cleanup ios/web_view. (Closed)
Patch Set: Respond to comments. Created 3 years, 10 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ 5 #ifndef IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_
6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ 6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h"
11 #import "ios/web_view/public/criwv_translate_manager.h" 10 #import "ios/web_view/public/criwv_translate_manager.h"
12 11
13 namespace translate { 12 namespace translate {
14 class TranslateManager; 13 class TranslateManager;
15 } 14 }
16 15
17 // CRIWVTranslateManagerImpl is mostly an Objective-C wrapper around 16 // CRIWVTranslateManagerImpl is mostly an Objective-C wrapper around
18 // translate::TranslateUIDelegate. 17 // translate::TranslateUIDelegate.
19 @interface CRIWVTranslateManagerImpl : NSObject<CRIWVTranslateManager> 18 @interface CRIWVTranslateManagerImpl : NSObject<CRIWVTranslateManager>
20 19
20 - (instancetype)init NS_UNAVAILABLE;
21
21 // |manager| is expexted to outlive this CRIWVTranslateManagerImpl. 22 // |manager| is expexted to outlive this CRIWVTranslateManagerImpl.
22 - (instancetype)initWithTranslateManager:(translate::TranslateManager*)manager 23 - (instancetype)initWithTranslateManager:(translate::TranslateManager*)manager
23 sourceLanguage:(const std::string&)source 24 sourceLanguage:(const std::string&)source
24 targetLanguage:(const std::string&)target; 25 targetLanguage:(const std::string&)target
26 NS_DESIGNATED_INITIALIZER;
25 27
26 @end 28 @end
27 29
28 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_ 30 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698