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

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

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/ui/crw_wk_web_view_web_controller.mm ('k') | ios/web/web_state/web_state_impl.mm » ('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.h
diff --git a/ios/web/web_state/web_state_impl.h b/ios/web/web_state/web_state_impl.h
index 23ecf4723fcf57c5f9472a886ad072640a813af4..b8695eca0ad5261662eff73b9c49fce55b8c6665 100644
--- a/ios/web/web_state/web_state_impl.h
+++ b/ios/web/web_state/web_state_impl.h
@@ -157,6 +157,9 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
void ProcessWebUIMessage(const GURL& source_url,
const std::string& message,
const base::ListValue& args);
+ // Invokes page load for WebUI URL with HTML. URL must have an application
+ // specific scheme.
+ virtual void LoadWebUIHtml(const base::string16& html, const GURL& url);
const base::string16& GetTitle() const;
@@ -173,7 +176,7 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
// Executes a JavaScript string on the page asynchronously.
// TODO(shreyasv): Rename this to ExecuteJavaScript for consitency with
// upstream API.
- void ExecuteJavaScriptAsync(const base::string16& javascript);
+ virtual void ExecuteJavaScriptAsync(const base::string16& script);
// Request tracker management. For now, this exposes the RequestTracker for
// embedders to use.
« no previous file with comments | « ios/web/web_state/ui/crw_wk_web_view_web_controller.mm ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698