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

Unified Diff: ios/web/web_state/web_state_impl.mm

Issue 1137143004: WebUI for WKWebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest issues Created 5 years, 7 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_state_impl.h ('k') | ios/web/webui/crw_web_ui_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index 05e3698dffd393e511bbf50efbc5b4a9f7ea3f75..f35c593b85764cee119be9b35ed83cc6cd1f4b97 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -247,6 +247,12 @@ void WebStateImpl::ProcessWebUIMessage(const GURL& source_url,
}
}
+void WebStateImpl::LoadWebUIHtml(const base::string16& html, const GURL& url) {
+ CHECK(web::GetWebClient()->IsAppSpecificURL(url));
+ [web_controller_ loadHTML:base::SysUTF16ToNSString(html)
+ forAppSpecificURL:url];
+}
+
const base::string16& WebStateImpl::GetTitle() const {
// TODO(stuartmorgan): Implement the NavigationManager logic necessary to
// match the WebContents implementation of this method.
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/webui/crw_web_ui_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698