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

Unified Diff: mojo/apps/js/main.js

Issue 298003008: Shell / ShellClient -> ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « mojo/BUILD.gn ('k') | mojo/dbus/dbus_external_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/main.js
diff --git a/mojo/apps/js/main.js b/mojo/apps/js/main.js
index a3b3dd2d482e77f627c8e79b4c43748f93f37be8..a216126b35bf9d959f057f72eb5dd16ce7ff1802 100644
--- a/mojo/apps/js/main.js
+++ b/mojo/apps/js/main.js
@@ -11,7 +11,7 @@ define([
'mojo/apps/js/bindings/gl',
'mojo/apps/js/bindings/threading',
'mojo/services/native_viewport/native_viewport.mojom',
- 'mojo/public/interfaces/shell/shell.mojom',
+ 'mojo/public/interfaces/service_provider/service_provider.mojom',
], function(console,
monotonicClock,
timer,
@@ -20,7 +20,7 @@ define([
gljs,
threading,
nativeViewport,
- shell) {
+ service_provider) {
const VERTEX_SHADER_SOURCE = [
'uniform mat4 u_mvpMatrix;',
@@ -276,11 +276,12 @@ define([
return cubeIndices.length;
}
- function SampleApp(shell) {
- this.shell_ = shell;
+ function SampleApp(service_provider) {
+ this.service_provider_ = service_provider;
var pipe = new core.createMessagePipe();
- this.shell_.connect('mojo:mojo_native_viewport_service', pipe.handle1);
+ this.service_provider_.connect('mojo:mojo_native_viewport_service',
+ pipe.handle1);
new connection.Connection(pipe.handle0, NativeViewportClientImpl,
nativeViewport.NativeViewportProxy);
}
@@ -288,7 +289,8 @@ define([
// have a 'client' object that contains both the sending and receiving bits of
// the client side of the interface. Since JS is loosely typed, we do not need
// a separate base class to inherit from to receive callbacks.
- SampleApp.prototype = Object.create(shell.ShellClientStub.prototype);
+ SampleApp.prototype =
+ Object.create(service_provider.ServiceProviderStub.prototype);
function NativeViewportClientImpl(remote) {
@@ -390,6 +392,7 @@ define([
return function(handle) {
- new connection.Connection(handle, SampleApp, shell.ShellProxy);
+ new connection.Connection(
+ handle, SampleApp, service_provider.ServiceProviderProxy);
};
});
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/dbus/dbus_external_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698