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

Unified Diff: ios/web/web_view_creation_util.mm

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: feedback Created 3 years, 11 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/web_state/web_view_internal_creation_util.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_view_creation_util.mm
diff --git a/ios/web/web_view_creation_util.mm b/ios/web/web_view_creation_util.mm
index 1ad84e97049b5e0823f22042527e8f30e5b2a9f2..d3023e0624ff7f6a857171e1db30a57eb049eacd 100644
--- a/ios/web/web_view_creation_util.mm
+++ b/ios/web/web_view_creation_util.mm
@@ -15,12 +15,19 @@
namespace web {
WKWebView* BuildWKWebView(CGRect frame, BrowserState* browser_state) {
+ return BuildWKWebViewWithCustomContextMenu(frame, browser_state, nil);
+}
+
+WKWebView* BuildWKWebViewWithCustomContextMenu(
+ CGRect frame,
+ BrowserState* browser_state,
+ id<CRWContextMenuDelegate> context_menu_delegate) {
DCHECK(browser_state);
WKWebViewConfigurationProvider& config_provider =
WKWebViewConfigurationProvider::FromBrowserState(browser_state);
return BuildWKWebView(frame, config_provider.GetWebViewConfiguration(),
- browser_state);
+ browser_state, NO, context_menu_delegate);
}
} // namespace web
« no previous file with comments | « ios/web/web_state/web_view_internal_creation_util.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698