OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 cr.define('profile_signin_confirmation', function() { |
| 6 'use strict'; |
| 7 |
| 8 function initialize() { |
| 9 var args = JSON.parse(chrome.getVariableValue('dialogArguments')); |
| 10 $('dialog-message').textContent = loadTimeData.getStringF( |
| 11 'dialogMessage', args.username); |
| 12 $('dialog-prompt').textContent = loadTimeData.getStringF( |
| 13 'dialogPrompt', args.username); |
| 14 $('create-button').addEventListener('click', function() { |
| 15 chrome.send('createNewProfile'); |
| 16 }); |
| 17 $('continue-button').addEventListener('click', function() { |
| 18 chrome.send('continue'); |
| 19 }); |
| 20 $('cancel-button').addEventListener('click', function() { |
| 21 chrome.send('cancel'); |
| 22 }); |
| 23 } |
| 24 |
| 25 return { |
| 26 initialize: initialize |
| 27 }; |
| 28 }); |
| 29 |
| 30 document.addEventListener('DOMContentLoaded', |
| 31 profile_signin_confirmation.initialize); |
OLD | NEW |