diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-22 03:25:24 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-22 03:25:24 +0000 |
commit | 892691bb7ba8fca79ad6a3d24c3240fcbf19ccc2 (patch) | |
tree | 0798ae3b7568679b2a9d76b272c6cdd780ba4dc6 /mojo | |
parent | aed4fd65e2faeefe32c6b139a3f1e4047f137ae1 (diff) | |
download | chromium_src-892691bb7ba8fca79ad6a3d24c3240fcbf19ccc2.zip chromium_src-892691bb7ba8fca79ad6a3d24c3240fcbf19ccc2.tar.gz chromium_src-892691bb7ba8fca79ad6a3d24c3240fcbf19ccc2.tar.bz2 |
Adds plumbing to pass WebUI mojo::Handle from browser to renderer
See the test for details on how it'll all work out in practice.
BUG=none
TEST=none
R=darin@chromium.org
Review URL: https://codereview.chromium.org/206923002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo')
-rw-r--r-- | mojo/mojo_public.gypi | 2 | ||||
-rw-r--r-- | mojo/public/bindings/js/constants.cc | 12 | ||||
-rw-r--r-- | mojo/public/bindings/js/constants.h | 18 |
3 files changed, 32 insertions, 0 deletions
diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi index a17d3d4..e32e6c0 100644 --- a/mojo/mojo_public.gypi +++ b/mojo/mojo_public.gypi @@ -248,6 +248,8 @@ 'public/bindings/callback.h', 'public/bindings/error_handler.h', 'public/bindings/interface.h', + 'public/bindings/js/constants.cc', + 'public/bindings/js/constants.h', 'public/bindings/message.h', 'public/bindings/passable.h', 'public/bindings/remote_ptr.h', diff --git a/mojo/public/bindings/js/constants.cc b/mojo/public/bindings/js/constants.cc new file mode 100644 index 0000000..d1f6657 --- /dev/null +++ b/mojo/public/bindings/js/constants.cc @@ -0,0 +1,12 @@ +// 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. + +#include "mojo/public/bindings/js/constants.h" + +namespace mojo { + +const char kCodecModuleName[] = "mojo/public/bindings/js/codec"; +const char kConnectorModuleName[] = "mojo/public/bindings/js/connector"; + +} // namespace mojo diff --git a/mojo/public/bindings/js/constants.h b/mojo/public/bindings/js/constants.h new file mode 100644 index 0000000..4f22a7e --- /dev/null +++ b/mojo/public/bindings/js/constants.h @@ -0,0 +1,18 @@ +// 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. + +#ifndef MOJO_PUBLIC_BINDINGS_JS_CONSTANTS_H_ +#define MOJO_PUBLIC_BINDINGS_JS_CONSTANTS_H_ + +namespace mojo { + +// Module name of the codec JavaScript module. +extern const char kCodecModuleName[]; + +// Module name of the connector JavaScript module. +extern const char kConnectorModuleName[]; + +} // namespace mojo + +#endif // MOJO_PUBLIC_BINDINGS_JS_CONSTANTS_H_ |