| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 makeImageSet(url1x, url2x) { | 10 function makeImageSet(url1x, url2x) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 $('details').hidden = true; | 89 $('details').hidden = true; |
| 90 $('back-button').hidden = false; | 90 $('back-button').hidden = false; |
| 91 $('request-access-button').hidden = true; | 91 $('request-access-button').hidden = true; |
| 92 } else { | 92 } else { |
| 93 $('request-failed-message').hidden = false; | 93 $('request-failed-message').hidden = false; |
| 94 $('request-access-button').hidden = false; | 94 $('request-access-button').hidden = false; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 document.addEventListener('DOMContentLoaded', initialize); | 98 document.addEventListener('DOMContentLoaded', initialize); |
| OLD | NEW |