Chromium Code Reviews| Index: mojo/apps/js/mojo_internals_module.cc |
| diff --git a/mojo/apps/js/mojo_module.cc b/mojo/apps/js/mojo_internals_module.cc |
| similarity index 83% |
| rename from mojo/apps/js/mojo_module.cc |
| rename to mojo/apps/js/mojo_internals_module.cc |
| index d3c0f760d2f7ecdd4ccd0e3d9a4604bd3afe95d3..45779af721466daf3ad7a094ddef48b390a0c6f3 100644 |
| --- a/mojo/apps/js/mojo_module.cc |
| +++ b/mojo/apps/js/mojo_internals_module.cc |
| @@ -2,16 +2,14 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "mojo/apps/js/mojo_module.h" |
| +#include "mojo/apps/js/mojo_internals_module.h" |
| #include "gin/arguments.h" |
| #include "gin/converter.h" |
| #include "gin/object_template_builder.h" |
| #include "gin/per_isolate_data.h" |
| #include "mojo/apps/js/js_app.h" |
| -#include "mojo/apps/js/mojo_module.h" |
| #include "mojo/bindings/js/handle.h" |
| -#include "mojo/common/data_pipe_utils.h" |
| namespace mojo { |
| namespace apps { |
| @@ -22,9 +20,10 @@ gin::WrapperInfo g_wrapper_info = {gin::kEmbedderNativeGin}; |
| } // namespace |
| -const char Mojo::kModuleName[] = "mojo"; |
| +const char MojoInternals::kModuleName[] = "mojo_internals"; |
|
abarth-chromium
2014/10/10 17:45:07
mojo/apps/js/bridge
hansmuller
2014/10/10 20:53:48
Done.
|
| -v8::Local<v8::Value> Mojo::GetModule(JSApp* js_app, v8::Isolate* isolate) { |
| +v8::Local<v8::Value> MojoInternals::GetModule(JSApp* js_app, |
| + v8::Isolate* isolate) { |
| gin::PerIsolateData* data = gin::PerIsolateData::From(isolate); |
| v8::Local<v8::ObjectTemplate> templ = |
| data->GetObjectTemplate(&g_wrapper_info); |