Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/resources/connection_manager.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: event_handler.js Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 5
6 function chromeos() { 6 function chromeos() {}
7 }
8 7
9 chromeos.connectionManager = function() { 8 chromeos.connectionManager = function() {};
10 };
11 9
12 chromeos.connectionManager.transaction_status_callback_ = null; 10 chromeos.connectionManager.transaction_status_callback_ = null;
13 chromeos.connectionManager.parent_page_url_ = 'chrome://mobilesetup'; 11 chromeos.connectionManager.parent_page_url_ = 'chrome://mobilesetup';
14 12
15 chromeos.connectionManager.setTransactionStatus = function(status, callback) { 13 chromeos.connectionManager.setTransactionStatus = function(status, callback) {
16 chromeos.connectionManager.transaction_status_callback_ = callback; 14 chromeos.connectionManager.transaction_status_callback_ = callback;
17 chromeos.connectionManager.reportTransactionStatus_(status); 15 chromeos.connectionManager.reportTransactionStatus_(status);
18 }; 16 };
19 17
20 chromeos.connectionManager.reportTransactionStatus_ = function(status) { 18 chromeos.connectionManager.reportTransactionStatus_ = function(status) {
21 var msg = { 19 var msg = {
22 'type': 'reportTransactionStatusMsg', 20 'type': 'reportTransactionStatusMsg',
23 'domain': location.href, 21 'domain': location.href,
24 'status': status 22 'status': status
25 }; 23 };
26 window.parent.postMessage(msg, chromeos.connectionManager.parent_page_url_); 24 window.parent.postMessage(msg, chromeos.connectionManager.parent_page_url_);
27 }; 25 };
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698