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

Unified Diff: ios/web_view/internal/cwv_web_view_configuration.mm

Issue 2764773002: Add CWVUserContentController which enables injecting JavaScripts. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « ios/web_view/internal/cwv_web_view.mm ('k') | ios/web_view/internal/web_view_early_page_script_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/cwv_web_view_configuration.mm
diff --git a/ios/web_view/internal/cwv_web_view_configuration.mm b/ios/web_view/internal/cwv_web_view_configuration.mm
index f29c00200f7f99c04fed224227d111cba1ff0edb..d8916d719da520424576cd898b40c9e11e064559 100644
--- a/ios/web_view/internal/cwv_web_view_configuration.mm
+++ b/ios/web_view/internal/cwv_web_view_configuration.mm
@@ -5,6 +5,7 @@
#import "ios/web_view/public/cwv_web_view_configuration.h"
#import "ios/web_view/internal/cwv_web_view_configuration_internal.h"
+#import "ios/web_view/internal/cwv_user_content_controller_internal.h"
#import "ios/web_view/internal/web_view_browser_state.h"
#import "ios/web_view/internal/web_view_web_client.h"
@@ -23,6 +24,8 @@
ios_web_view::WebViewBrowserState* _browserState;
}
+@synthesize userContentController = _userContentController;
+
+ (instancetype)defaultConfiguration {
static dispatch_once_t once;
static CWVWebViewConfiguration* configuration;
@@ -51,6 +54,8 @@
self = [super init];
if (self) {
_browserState = browserState;
+ _userContentController =
+ [[CWVUserContentController alloc] initWithConfiguration:self];
}
return self;
}
« no previous file with comments | « ios/web_view/internal/cwv_web_view.mm ('k') | ios/web_view/internal/web_view_early_page_script_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698