Chromium Code Reviews| 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"/> |
|
Cait (Slow)
2012/06/20 19:10:11
From looking at other chromium js files, it seems
motek.
2012/06/20 22:02:29
I am not sure. I saw it both ways (see for instanc
|
| + |
| +(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); |
| +})(); |