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

Unified Diff: trunk/src/content/test/data/web_ui_mojo.js

Issue 208263008: Revert 258763 "Adds plumbing to pass WebUI mojo::Handle from bro..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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
Index: trunk/src/content/test/data/web_ui_mojo.js
===================================================================
--- trunk/src/content/test/data/web_ui_mojo.js (revision 258768)
+++ trunk/src/content/test/data/web_ui_mojo.js (working copy)
@@ -1,31 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-define('main', [
- 'mojo/public/bindings/js/connector',
- 'content/test/data/web_ui_test_mojo_bindings.mojom',
-], function(connector, bindings) {
-
- function RendererTargetTest(bindings) {
- this.bindings_ = bindings;
- }
-
- // TODO(aa): It is a bummer to need this stub object in JavaScript. We should
- // 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.
- RendererTargetTest.prototype =
- Object.create(bindings.RendererTargetStub.prototype);
-
- RendererTargetTest.prototype.test = function() {
- this.bindings_.test();
- };
-
- var connection;
-
- return function(handle) {
- connection = new connector.Connection(handle, RendererTargetTest,
- bindings.RendererTargetProxy);
- };
-});
« no previous file with comments | « trunk/src/content/test/data/web_ui_mojo.html ('k') | trunk/src/content/test/data/web_ui_test_mojo_bindings.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698