blob: baa3737584abf5e434085ea13b3507660b76c1d4 (
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
25
26
27
28
|
// Copyright (c) 2010 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.
function chromeos() {
}
chromeos.connectionManager = function() {
};
chromeos.connectionManager.transaction_status_callback_ = null;
chromeos.connectionManager.parent_page_url_ = 'chrome://mobilesetup';
chromeos.connectionManager.setTransactionStatus = function(status, callback) {
chromeos.connectionManager.transaction_status_callback_ = callback;
chromeos.connectionManager.reportTransactionStatus_(status);
};
chromeos.connectionManager.reportTransactionStatus_ = function(status) {
var msg = {
'type': 'reportTransactionStatusMsg',
'domain': location.href,
'status': status
};
window.parent.postMessage(msg, chromeos.connectionManager.parent_page_url_);
};
|