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

Unified Diff: services/js/js_app_runner_delegate.h

Issue 757703002: Creates a JavaScript Applicaiton (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Do not try to call undefined Application methods. 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
Index: services/js/js_app_runner_delegate.h
diff --git a/services/js/js_app_runner_delegate.h b/services/js/js_app_runner_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..890e9d373828a0eea73c15ccb6e72d79732bcf0e
--- /dev/null
+++ b/services/js/js_app_runner_delegate.h
@@ -0,0 +1,32 @@
+// 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 SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_
+#define SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_
+
+#include "gin/modules/module_runner_delegate.h"
+#include "gin/shell_runner.h"
+#include "gin/try_catch.h"
+
+namespace mojo {
+namespace js {
+
+class JSAppRunnerDelegate : public gin::ModuleRunnerDelegate {
+ public:
+ JSAppRunnerDelegate();
+ ~JSAppRunnerDelegate() override;
+
+ // From ModuleRunnerDelegate:
+ void UnhandledException(gin::ShellRunner* runner,
+ gin::TryCatch& try_catch) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(JSAppRunnerDelegate);
+};
+
+
abarth-chromium 2014/11/24 23:47:24 Extra blank line here.
hansmuller 2014/11/25 00:31:55 Done.
+} // namespace js
+} // namespace mojo
+
+#endif // SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698