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

Side by Side Diff: ios/web_view/public/cwv_translation_configuration.h

Issue 2983453002: Expose way to enable/disable translate. (Closed)
Patch Set: Refactor settings Created 3 years, 5 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_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_
6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_
7
8 #import <Foundation/Foundation.h>
9
10 #import "cwv_export.h"
11
12 // Configuration used for translation.
13 CWV_EXPORT
14 @interface CWVTranslationConfiguration : NSObject
15
16 // Whether or not translation as a feature is turned on.
17 @property(nonatomic, assign) BOOL enabled;
Eugene But (OOO till 7-30) 2017/07/14 00:22:43 @property(nonatomic, assign, getter=isEnabled) BOO
jzw1 2017/07/14 02:09:50 Done.
18
19 // Disable default initializer.
Eugene But (OOO till 7-30) 2017/07/14 00:22:43 Do we need this comment?
jzw1 2017/07/14 02:09:50 Done.
20 - (instancetype)init NS_UNAVAILABLE;
21
22 // Resets all translation settings back to default. In particular, this will
23 // change all translation policies back to CWVTranslationPolicyAsk.
24 - (void)reset;
25
26 @end
27
28 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698