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

Unified Diff: ui/keyboard/resources/keyboard_mojo.js

Issue 628763002: Mojo JS bindings: simplify mojo.connectToService() usage - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed template indentation Created 6 years, 2 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 | « mojo/public/tools/bindings/generators/js_templates/struct_definition.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/keyboard_mojo.js
diff --git a/ui/keyboard/resources/keyboard_mojo.js b/ui/keyboard/resources/keyboard_mojo.js
index eddf8667ec6fa6bae1593d6e09fca2e6d9f1e53f..ea681c78f27cfc5f9990c582ccd239baa14716a6 100644
--- a/ui/keyboard/resources/keyboard_mojo.js
+++ b/ui/keyboard/resources/keyboard_mojo.js
@@ -18,7 +18,8 @@ if (!chrome.virtualKeyboardPrivate) {
mojo_api = this;
}
- KeyboardImpl.prototype = Object.create(keyboard.KeyboardAPIStub.prototype);
+ KeyboardImpl.prototype = Object.create(
+ keyboard.KeyboardAPI.stubClass.prototype);
KeyboardImpl.prototype.onTextInputTypeChanged = function(input_type) {
console.log('Text input changed: ' + input_type);
@@ -30,9 +31,9 @@ if (!chrome.virtualKeyboardPrivate) {
return function() {
connection = new connector.Connection(
serviceProvider.connectToService(
- keyboard.KeyboardUIHandlerMojoProxy.NAME_),
+ keyboard.KeyboardUIHandlerMojo.name),
KeyboardImpl,
- keyboard.KeyboardUIHandlerMojoProxy);
+ keyboard.KeyboardUIHandlerMojo.proxyClass);
};
});
« no previous file with comments | « mojo/public/tools/bindings/generators/js_templates/struct_definition.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698