Home | History | Annotate | Download | only in resources
      1 // Copyright (c) 2010 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('cloudprint', function() {
      6   function printTestPage() {
      7     chrome.send('PrintTestPage', ['']);
      8     chrome.send('DialogClose', ['']);
      9   }
     10 
     11   function setMessage(msg) {
     12     $('msgContent').innerHTML = msg;
     13   }
     14 
     15   function onPageShown() {
     16     $('close').focus();
     17   }
     18 
     19   return {
     20     printTestPage: printTestPage,
     21     setMessage: setMessage,
     22     onPageShown: onPageShown
     23   };
     24 });
     25