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

Unified Diff: mojo/public/bindings/js/runner_delegate.cc

Issue 69843003: Implement Mojo message codec in JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Aaron's comments Created 7 years, 1 month 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
« no previous file with comments | « mojo/public/bindings/js/runner_delegate.h ('k') | mojo/public/bindings/js/test/run_js_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/js/runner_delegate.cc
diff --git a/mojo/public/bindings/js/runner_delegate.cc b/mojo/public/bindings/js/runner_delegate.cc
deleted file mode 100644
index 79203cbef0aca2e3d65ca164fbb8515182443cf0..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/js/runner_delegate.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 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/runner_delegate.h"
-
-#include "gin/modules/module_registry.h"
-#include "mojo/public/bindings/js/core.h"
-#include "mojo/public/bindings/js/global.h"
-
-namespace mojo {
-namespace js {
-
-RunnerDelegate::RunnerDelegate() {
-}
-
-RunnerDelegate::~RunnerDelegate() {
-}
-
-v8::Handle<v8::ObjectTemplate> RunnerDelegate::GetGlobalTemplate(
- gin::Runner* runner) {
- return js::GetGlobalTemplate(runner->isolate());
-}
-
-void RunnerDelegate::DidCreateContext(gin::Runner* runner) {
- v8::Handle<v8::Context> context = runner->context();
- gin::ModuleRegistry* registry =
- gin::ModuleRegistry::From(context);
-
- registry->AddBuiltinModule(runner->isolate(), "core",
- GetCoreTemplate(runner->isolate()));
-}
-
-} // namespace js
-} // namespace mojo
« no previous file with comments | « mojo/public/bindings/js/runner_delegate.h ('k') | mojo/public/bindings/js/test/run_js_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698