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

Unified Diff: remoting/webapp/app_remoting/js/ar_main.js

Issue 1191883002: Revert of [AppRemoting] Break out AppRemoting shared module (re-land). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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: remoting/webapp/app_remoting/js/ar_main.js
diff --git a/remoting/webapp/app_remoting/js/ar_main.js b/remoting/webapp/app_remoting/js/ar_main.js
new file mode 100644
index 0000000000000000000000000000000000000000..2efe129e03ce323801c0e9814573cfe78edae02f
--- /dev/null
+++ b/remoting/webapp/app_remoting/js/ar_main.js
@@ -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.
+
+'use strict';
+
+/** @suppress {duplicate} */
+var remoting = remoting || {};
+
+/**
+ * Entry point ('load' handler) for App Remoting webapp.
+ */
+remoting.startAppRemoting = function() {
+ remoting.app = new remoting.AppRemoting(remoting.app_capabilities());
+ remoting.app.start();
+};
+
+window.addEventListener('load', remoting.startAppRemoting, false);
« no previous file with comments | « remoting/webapp/app_remoting/js/ar_background.js ('k') | remoting/webapp/app_remoting/js/feedback_consent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698