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

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

Issue 2983453002: Expose way to enable/disable translate. (Closed)
Patch Set: addressed michaeldo's comments 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
« no previous file with comments | « ios/web_view/public/ChromeWebView.h ('k') | ios/web_view/public/cwv_translation_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PREFERENCES_H_
6 #define IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_H_
7
8 #import <Foundation/Foundation.h>
9
10 #import "cwv_export.h"
11
12 // Preferences for user settings.
13 CWV_EXPORT
14 @interface CWVPreferences : NSObject
15
16 // Whether or not translation as a feature is turned on.
17 @property(nonatomic, assign, getter=isTranslationEnabled)
18 BOOL translationEnabled;
19
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)resetTranslationSettings;
25
26 @end
27
28 #endif // IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_H_
OLDNEW
« no previous file with comments | « ios/web_view/public/ChromeWebView.h ('k') | ios/web_view/public/cwv_translation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698