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

Unified Diff: services/js/modules/clock/monotonic_clock.cc

Issue 703023004: Move the JS content handler et al from mojo/apps/js to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed DEPS gl build Created 6 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 | « services/js/modules/clock/monotonic_clock.h ('k') | services/js/modules/clock/monotonic_clock_unittests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/modules/clock/monotonic_clock.cc
diff --git a/mojo/apps/js/bindings/monotonic_clock.cc b/services/js/modules/clock/monotonic_clock.cc
similarity index 86%
rename from mojo/apps/js/bindings/monotonic_clock.cc
rename to services/js/modules/clock/monotonic_clock.cc
index 2d75905d240d05be687f38ea534d3011c74d1ff4..01779514e077cf25a36673bf8dce7eb84ccecae7 100644
--- a/mojo/apps/js/bindings/monotonic_clock.cc
+++ b/services/js/modules/clock/monotonic_clock.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/apps/js/bindings/monotonic_clock.h"
+#include "services/js/modules/clock/monotonic_clock.h"
#include "base/time/time.h"
#include "gin/object_template_builder.h"
@@ -11,7 +11,7 @@
#include "mojo/public/cpp/system/core.h"
namespace mojo {
-namespace apps {
+namespace js {
namespace {
@@ -24,7 +24,7 @@ double GetMonotonicSeconds() {
} // namespace
-const char MonotonicClock::kModuleName[] = "monotonic_clock";
+const char MonotonicClock::kModuleName[] = "services/js/modules/clock";
v8::Local<v8::Value> MonotonicClock::GetModule(v8::Isolate* isolate) {
gin::PerIsolateData* data = gin::PerIsolateData::From(isolate);
@@ -39,5 +39,5 @@ v8::Local<v8::Value> MonotonicClock::GetModule(v8::Isolate* isolate) {
return templ->NewInstance();
}
-} // namespace apps
+} // namespace js
} // namespace mojo
« no previous file with comments | « services/js/modules/clock/monotonic_clock.h ('k') | services/js/modules/clock/monotonic_clock_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698