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

Unified Diff: chrome/browser/resources/metroize/metroize.js

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed some of reviewer's remarks. Created 8 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: chrome/browser/resources/metroize/metroize.js
diff --git a/chrome/browser/resources/metroize/metroize.js b/chrome/browser/resources/metroize/metroize.js
new file mode 100644
index 0000000000000000000000000000000000000000..64f03c6f1c89283aa36dfad8a54fcf8eb0497f54
--- /dev/null
+++ b/chrome/browser/resources/metroize/metroize.js
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 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 src="../shared/js/util.js"/>
+
+(function() {
+ // Since all we want here is forwarding of certain commands, all can be done
+ // in the anonymous function's scope.
+
+ function wireUpWindow() {
+ $('launch-button').addEventListener('click', function() {
+ chrome.send('Metroize:LaunchSetDefaultBrowserFlow');
+ });
+
+ $('return-button').addEventListener('click', function() {
+ chrome.send('Metroize:ReturnToBrowser');
+ });
+ }
+
+ window.addEventListener('DOMContentLoaded', wireUpWindow);
+})();

Powered by Google App Engine
This is Rietveld 408576698