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 function sendCommand(cmd) { | 5 function sendCommand(cmd) { |
6 window.domAutomationController.setAutomationId(1); | 6 window.domAutomationController.setAutomationId(1); |
7 window.domAutomationController.send(cmd); | 7 window.domAutomationController.send(cmd); |
8 } | 8 } |
9 | 9 |
10 function initialize() { | 10 function initialize() { |
(...skipping 14 matching lines...) Expand all Loading... |
25 * Updates the interstitial to show that the request was sent. | 25 * Updates the interstitial to show that the request was sent. |
26 */ | 26 */ |
27 function updateAfterRequestSent() { | 27 function updateAfterRequestSent() { |
28 $('error-img').hidden = true; | 28 $('error-img').hidden = true; |
29 $('request-access-button').hidden = true; | 29 $('request-access-button').hidden = true; |
30 $('block-page-message').hidden = true; | 30 $('block-page-message').hidden = true; |
31 $('request-sent-message').hidden = false; | 31 $('request-sent-message').hidden = false; |
32 } | 32 } |
33 | 33 |
34 document.addEventListener('DOMContentLoaded', initialize); | 34 document.addEventListener('DOMContentLoaded', initialize); |
OLD | NEW |