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

Unified Diff: ios/web_view/internal/cwv_preferences_internal.h

Issue 2983453002: Expose way to enable/disable translate. (Closed)
Patch Set: comment non obvious param 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 side-by-side diff with in-line comments
Download patch
Index: ios/web_view/internal/cwv_preferences_internal.h
diff --git a/ios/web_view/internal/cwv_preferences_internal.h b/ios/web_view/internal/cwv_preferences_internal.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa6681ad8a2995d6f8aac44ddf8abd0d8f045cf1
--- /dev/null
+++ b/ios/web_view/internal/cwv_preferences_internal.h
@@ -0,0 +1,21 @@
+// Copyright 2017 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_CWV_PREFERENCES_INTERNAL_H_
+#define IOS_WEB_VIEW_INTERNAL_CWV_PREFERENCES_INTERNAL_H_
+
+#import "ios/web_view/public/cwv_preferences.h"
+
+class PrefService;
+
+@interface CWVPreferences ()
+
+// Takes a PrefService object used to modify settings.
+// Caller must ensure |prefService| outlives this instance.
+- (instancetype)initWithPrefService:(PrefService*)prefService
+ NS_DESIGNATED_INITIALIZER;
+
+@end
+
+#endif // IOS_WEB_VIEW_INTERNAL_CWV_PREFERENCES_INTERNAL_H_

Powered by Google App Engine
This is Rietveld 408576698