Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> | 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 2 <link rel="import" href="chrome://resources/html/cr.html"> | 2 <link rel="import" href="chrome://resources/html/cr.html"> |
| 3 <link rel="import" href="chrome://resources/html/load_time_data.html"> | 3 <link rel="import" href="chrome://resources/html/load_time_data.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma terial.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma terial.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr ogress.html"> |
| 8 <link rel="import" href="chrome://downloads/action_service.html"> | 8 <link rel="import" href="chrome://downloads/action_service.html"> |
| 9 <link rel="import" href="chrome://downloads/constants.html"> | 9 <link rel="import" href="chrome://downloads/constants.html"> |
| 10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html"> | 10 <link rel="import" href="chrome://downloads/throttled_icon_loader.html"> |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 --><a is="action-link" id="file-link" | 28 --><a is="action-link" id="file-link" |
| 29 on-click="onFileLinkClick_"></a><!-- Before #name. | 29 on-click="onFileLinkClick_"></a><!-- Before #name. |
| 30 --><span id="name">[[data_.file_name]]</span> | 30 --><span id="name">[[data_.file_name]]</span> |
| 31 <span id="tag"></span> | 31 <span id="tag"></span> |
| 32 </div> | 32 </div> |
| 33 | 33 |
| 34 <a id="url" target="_blank" href="[[data_.url]]">[[data_.url]]</a> | 34 <a id="url" target="_blank" href="[[data_.url]]">[[data_.url]]</a> |
| 35 | 35 |
| 36 <div id="description"></div> | 36 <div id="description"></div> |
| 37 | 37 |
| 38 <paper-progress id="progress"></paper-progress> | 38 <template if="dom-if" if="[[showProgress_]]"> |
| 39 <paper-progress indeterminate="[[isIndeterminate_(data_.percent)]]" | |
| 40 value="[[data_.percent]]"></paper-progress> | |
| 41 </template> | |
| 39 | 42 |
| 40 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> | 43 <div id="safe" class="controls" hidden$="[[isDangerous_]]"> |
|
Dan Beam
2015/09/05 01:00:44
this might be a dom-if
| |
| 41 <paper-button id="show" on-click="onShowClick_" | 44 <template is="dom-if" if="[[completelyOnDisk_]]"> |
| 42 i18n-content="controlShowInFolder" lowercase noink></paper-button> | 45 <paper-button id="show-in-folder" on-click="onShowInFolderClick_" |
| 43 <paper-button id="retry" on-click="onRetryClick_" | 46 lowercase noink>[[i18n_.showInFolder]]</paper-button> |
| 44 i18n-content="controlRetry"></paper-button> | 47 </template> |
| 45 <paper-button id="pause" on-click="onPauseClick_" | 48 <template is="dom-if" if="[[data_.retry]]"> |
| 46 i18n-content="controlPause"></paper-button> | 49 <paper-button id="retry" |
| 47 <paper-button id="resume" on-click="onResumeClick_" | 50 on-click="onRetryClick_">[[i18n_.retry]]</paper-button> |
| 48 i18n-content="controlResume"></paper-button> | 51 </template> |
| 49 <paper-button id="cancel" on-click="onCancelClick_" | 52 <template is="dom-if" if="[[isInProgress_]]"> |
| 50 i18n-content="controlCancel"></paper-button> | 53 <paper-button id="pause" |
| 54 on-click="onPauseClick_">[[i18n_.pause]]</paper-button> | |
| 55 </template> | |
| 56 <template is="dom-if" if="[[data_.resume]]"> | |
| 57 <paper-button id="resume" | |
| 58 on-click="onResumeClick_">[[i18n_.resume]]</paper-button> | |
| 59 </template> | |
| 60 <template is="dom-if" if="[[showCancel_]]"> | |
| 61 <paper-button id="cancel" | |
| 62 on-click="onCancelClick_">[[i18n_.cancel]]</paper-button> | |
| 63 </template> | |
| 51 <span id="controlled-by" | 64 <span id="controlled-by" |
| 52 i18n-values=".innerHTML:controlByExtension"></span> | 65 i18n-values=".innerHTML:controlByExtension"></span> |
| 53 </div> | 66 </div> |
| 54 | 67 |
| 55 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]"> | 68 <div id="dangerous" class="controls" hidden$="[[!isDangerous_]]"> |
|
Dan Beam
2015/09/05 01:00:44
these are next up
| |
| 56 <!-- Dangerous file types (e.g. .exe, .jar). --> | 69 <!-- Dangerous file types (e.g. .exe, .jar). --> |
| 57 <paper-button id="discard" i18n-content="dangerDiscard" | 70 <paper-button id="discard" i18n-content="dangerDiscard" |
| 58 on-click="onDiscardDangerous_" class="discard" | 71 on-click="onDiscardDangerous_" class="discard" |
| 59 hidden$="[[isMalware_]]"></paper-button> | 72 hidden$="[[isMalware_]]"></paper-button> |
| 60 <paper-button id="save" i18n-content="dangerSave" | 73 <paper-button id="save" i18n-content="dangerSave" |
| 61 on-click="onSaveDangerous_" class="keep" | 74 on-click="onSaveDangerous_" class="keep" |
| 62 hidden$="[[isMalware_]]"></paper-button> | 75 hidden$="[[isMalware_]]"></paper-button> |
| 63 | 76 |
| 64 <!-- Things that safe browsing has determined to be dangerous. --> | 77 <!-- Things that safe browsing has determined to be dangerous. --> |
| 65 <paper-button id="danger-remove" i18n-content="controlRemoveFromList" | 78 <paper-button id="danger-remove" i18n-content="controlRemoveFromList" |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 80 </paper-material> | 93 </paper-material> |
| 81 | 94 |
| 82 <div id="end-cap"></div> | 95 <div id="end-cap"></div> |
| 83 | 96 |
| 84 </template> | 97 </template> |
| 85 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 98 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
| 86 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> | 99 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> |
| 87 <link rel="import" type="css" href="chrome://downloads/item.css"> | 100 <link rel="import" type="css" href="chrome://downloads/item.css"> |
| 88 <script src="chrome://downloads/item.js"></script> | 101 <script src="chrome://downloads/item.js"></script> |
| 89 </dom-module> | 102 </dom-module> |
| OLD | NEW |