// Copyright 2017 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. 'use strict'; if ((typeof mojo !== 'undefined') && mojo.bindingsLibraryInitialized) { throw new Error('The Mojo bindings library has been initialized.'); } var mojo = mojo || {}; mojo.bindingsLibraryInitialized = true; mojo.internal = mojo.internal || {}; mojo.config = mojo.config || {}; if (typeof mojo.config.global === 'undefined') { mojo.config.global = this; } if (typeof mojo.config.autoLoadMojomDeps === 'undefined') { // Whether to automatically load mojom dependencies. // For example, if foo.mojom imports bar.mojom, |autoLoadMojomDeps| set to // true means that loading foo.mojom.js will insert a