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

Side by Side Diff: chrome/browser/resources/set_as_default_browser.js

Issue 10837084: The updated (simplified) look of set-as-default dialog on Windows8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed up css/html to meet the new design. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function() { 5 (function() {
6 // Since all we want here is forwarding of certain commands, all can be done 6 // Since all we want here is forwarding of certain commands, all can be done
7 // in the anonymous function's scope. 7 // in the anonymous function's scope.
8 8
9 function wireUpWindow() { 9 function wireUpWindow() {
10 $('launch-button').addEventListener('click', function() { 10 $('launch-button').addEventListener('click', function() {
11 chrome.send('SetAsDefaultBrowser:LaunchSetDefaultBrowserFlow'); 11 chrome.send('SetAsDefaultBrowser:LaunchSetDefaultBrowserFlow');
12 }); 12 });
13
14 $('return-button').addEventListener('click', function() {
15 chrome.send('SetAsDefaultBrowser:ReturnToBrowser');
16 });
17 } 13 }
18 14
19 window.addEventListener('DOMContentLoaded', wireUpWindow); 15 window.addEventListener('DOMContentLoaded', wireUpWindow);
20 })(); 16 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698