summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/cloud_print/cloud_print_setup_done.js
blob: aaadabc7bb90efec5054d77ce6801a418debfdb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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.

cr.define('cloudprint', function() {
  function printTestPage() {
    chrome.send('PrintTestPage');
    chrome.send('DialogClose');
  }

  function setMessage(msg) {
    $('msg-content').innerHTML = msg;
  }

  function onPageShown() {
    $('close').focus();
  }

  return {
    printTestPage: printTestPage,
    setMessage: setMessage,
    onPageShown: onPageShown
  };
});