OLD | NEW |
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 cr.define('cloudprint', function() { | 5 cr.define('cloudprint', function() { |
6 function printTestPage() { | 6 function printTestPage() { |
7 chrome.send('PrintTestPage', ['']); | 7 chrome.send('PrintTestPage'); |
8 chrome.send('DialogClose', ['']); | 8 chrome.send('DialogClose'); |
9 } | 9 } |
10 | 10 |
11 function setMessage(msg) { | 11 function setMessage(msg) { |
12 $('msgContent').innerHTML = msg; | 12 $('msg-content').innerHTML = msg; |
13 } | 13 } |
14 | 14 |
15 function onPageShown() { | 15 function onPageShown() { |
16 $('close').focus(); | 16 $('close').focus(); |
17 } | 17 } |
18 | 18 |
19 return { | 19 return { |
20 printTestPage: printTestPage, | 20 printTestPage: printTestPage, |
21 setMessage: setMessage, | 21 setMessage: setMessage, |
22 onPageShown: onPageShown | 22 onPageShown: onPageShown |
23 }; | 23 }; |
24 }); | 24 }); |
OLD | NEW |