| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Setting the src of an img to an empty string can crash the browser, so we | 5 // Setting the src of an img to an empty string can crash the browser, so we |
| 6 // use an empty 1x1 gif instead. | 6 // use an empty 1x1 gif instead. |
| 7 const EMPTY_IMAGE_URI = 'data:image/gif;base64,' | 7 const EMPTY_IMAGE_URI = 'data:image/gif;base64,' |
| 8 + 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D'; | 8 + 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D'; |
| 9 | 9 |
| 10 var g_slideshow_data = null; | 10 var g_slideshow_data = null; |
| (...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 chrome.extension.getURL('images/icon_play_16x16.png'); | 1640 chrome.extension.getURL('images/icon_play_16x16.png'); |
| 1641 task.title = str('PLAY_MEDIA').replace("&", ""); | 1641 task.title = str('PLAY_MEDIA').replace("&", ""); |
| 1642 } else if (task_parts[1] == 'enqueue') { | 1642 } else if (task_parts[1] == 'enqueue') { |
| 1643 task.iconUrl = | 1643 task.iconUrl = |
| 1644 chrome.extension.getURL('images/icon_add_to_queue_16x16.png'); | 1644 chrome.extension.getURL('images/icon_add_to_queue_16x16.png'); |
| 1645 task.title = str('ENQUEUE'); | 1645 task.title = str('ENQUEUE'); |
| 1646 } else if (task_parts[1] == 'mount-archive') { | 1646 } else if (task_parts[1] == 'mount-archive') { |
| 1647 task.iconUrl = | 1647 task.iconUrl = |
| 1648 chrome.extension.getURL('images/icon_mount_archive_16x16.png'); | 1648 chrome.extension.getURL('images/icon_mount_archive_16x16.png'); |
| 1649 task.title = str('MOUNT_ARCHIVE'); | 1649 task.title = str('MOUNT_ARCHIVE'); |
| 1650 if(str('ENABLE_ARCHIVES') != 'true') |
| 1651 continue; |
| 1650 } | 1652 } |
| 1651 } | 1653 } |
| 1652 this.renderTaskButton_(task); | 1654 this.renderTaskButton_(task); |
| 1653 } | 1655 } |
| 1654 this.maybeRenderUnmountTask_(selection); | 1656 this.maybeRenderUnmountTask_(selection); |
| 1655 // This needs to be done in separate function, as check requires | 1657 // This needs to be done in separate function, as check requires |
| 1656 // asynchronous function calls. | 1658 // asynchronous function calls. |
| 1657 this.maybeRenderFormattingTask_(selection); | 1659 this.maybeRenderFormattingTask_(selection); |
| 1658 }; | 1660 }; |
| 1659 | 1661 |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3148 | 3150 |
| 3149 if (msg) { | 3151 if (msg) { |
| 3150 console.log('no no no'); | 3152 console.log('no no no'); |
| 3151 this.alert.show(msg, onAccept); | 3153 this.alert.show(msg, onAccept); |
| 3152 return false; | 3154 return false; |
| 3153 } | 3155 } |
| 3154 | 3156 |
| 3155 return true; | 3157 return true; |
| 3156 }; | 3158 }; |
| 3157 })(); | 3159 })(); |
| OLD | NEW |