summaryrefslogtreecommitdiffstats
path: root/content/test/data/web_ui_mojo.js
blob: ab9765c8cc9b2c4d17d947535641e0cae3819a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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/js/router',
    'content/test/data/web_ui_test_mojo_bindings.mojom',
    'content/public/renderer/frame_service_registry',
], function (router, bindings, serviceProvider) {
  var browserTarget;

  return function() {
    browserTarget = new bindings.BrowserTarget.proxyClass(
        new router.Router(
            serviceProvider.connectToService(bindings.BrowserTarget.name)));

    browserTarget.start().then(function() {
      browserTarget.stop();
    });
  };
});