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

Unified Diff: ios/web/webui/mojo_facade.h

Issue 2618693004: Mojo JS bindings: make sure that console.log() could be used in the bindings. (Closed)
Patch Set: . 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/webui/crw_web_ui_manager.mm ('k') | ios/web/webui/mojo_facade.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/mojo_facade.h
diff --git a/ios/web/webui/mojo_facade.h b/ios/web/webui/mojo_facade.h
index 1d6d487d01bcee75ce4a503f6a10b85d548a2b45..f0fd752e9a729f4fd97ac967bd7b698171df1bb5 100644
--- a/ios/web/webui/mojo_facade.h
+++ b/ios/web/webui/mojo_facade.h
@@ -50,6 +50,7 @@ class MojoFacade {
// core.readMessage (HandleCoreReadMessage)
// support.watch (HandleSupportWatch)
// support.cancelWatch (HandleSupportCancelWatch)
+ // console.log (HandleConsoleLog)
std::string HandleMojoMessage(const std::string& mojo_message_as_json);
private:
@@ -125,6 +126,11 @@ class MojoFacade {
std::unique_ptr<base::Value> HandleSupportCancelWatch(
const base::DictionaryValue* args);
+ // Logs a message. |args| is a dictionary which must contain "message" key.
+ // Returns null.
+ std::unique_ptr<base::Value> HandleConsoleLog(
+ const base::DictionaryValue* args);
+
// Provides interfaces.
service_manager::mojom::InterfaceProvider* interface_provider_;
// Runs JavaScript on WebUI page.
« no previous file with comments | « ios/web/webui/crw_web_ui_manager.mm ('k') | ios/web/webui/mojo_facade.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698