| OLD | NEW | 
|---|
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
     tml"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
     tml"> | 
|  | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
     on.html"> | 
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
     eckbox.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
     eckbox.html"> | 
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
     og.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
     og.html"> | 
| 5 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button
     .html"> |  | 
| 6 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_input/cr_input.h
     tml"> | 6 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_input/cr_input.h
     tml"> | 
| 7 <link rel="import" href="chrome://resources/cr_elements/v1_0/network/cr_onc_type
     s.html"> | 7 <link rel="import" href="chrome://resources/cr_elements/v1_0/network/cr_onc_type
     s.html"> | 
| 8 <link rel="import" href="network_property_list.html"> | 8 <link rel="import" href="network_property_list.html"> | 
| 9 | 9 | 
| 10 <dom-module id="network-siminfo"> | 10 <dom-module id="network-siminfo"> | 
| 11   <link rel="import" type="css" href="network_siminfo.css"> | 11   <link rel="import" type="css" href="network_siminfo.css"> | 
| 12   <template> | 12   <template> | 
| 13     <div id="outerDiv" class="layout vertical"> | 13     <div id="outerDiv" class="layout vertical"> | 
| 14       <div class="layout horizontal center" | 14       <div class="layout horizontal center" | 
| 15           hidden$="[[state.Cellular.SIMPresent]]"> | 15           hidden$="[[state.Cellular.SIMPresent]]"> | 
| 16         <!-- SIM missing UI --> | 16         <!-- SIM missing UI --> | 
| 17         <iron-icon icon="sim-card-alert"></iron-icon> | 17         <iron-icon icon="sim-card-alert"></iron-icon> | 
| 18         <span>Missing SIM card</span> | 18         <span>Missing SIM card</span> | 
| 19       </div> | 19       </div> | 
| 20       <div class="layout vertical" | 20       <div class="layout vertical" | 
| 21           hidden$="[[!state.Cellular.SIMPresent]]"> | 21           hidden$="[[!state.Cellular.SIMPresent]]"> | 
| 22         <div id="lockedDiv" class="layout horizontal center" | 22         <div id="lockedDiv" class="layout horizontal center" | 
| 23             hidden$="[[!isSimLocked_(networkState)]]"> | 23             hidden$="[[!isSimLocked_(networkState)]]"> | 
| 24           <!-- SIM locked --> | 24           <!-- SIM locked --> | 
| 25           <iron-icon icon="lock"></iron-icon> | 25           <iron-icon icon="lock"></iron-icon> | 
| 26           <span>SIM card is locked.</span> | 26           <span>SIM card is locked.</span> | 
| 27           <cr-button on-click="unlockPin_">Unlock</cr-button> | 27           <paper-button on-tap="unlockPin_">Unlock</paper-button> | 
| 28         </div> | 28         </div> | 
| 29         <div class="layout vertical" | 29         <div class="layout vertical" | 
| 30             hidden$="[[isSimLocked_(networkState)]]"> | 30             hidden$="[[isSimLocked_(networkState)]]"> | 
| 31           <!-- SIM unlocked --> | 31           <!-- SIM unlocked --> | 
| 32           <paper-checkbox | 32           <paper-checkbox | 
| 33               checked="[[networkState.Cellular.SIMLockStatus.LockEnabled]]" | 33               checked="[[networkState.Cellular.SIMLockStatus.LockEnabled]]" | 
| 34               on-change="onSimLockEnabledChange_"> | 34               on-change="onSimLockEnabledChange_"> | 
| 35             Enable SIM card locking (require PIN to use mobile data) | 35             Enable SIM card locking (require PIN to use mobile data) | 
| 36           </paper-checkbox> | 36           </paper-checkbox> | 
| 37           <div class="layout horizontal center" | 37           <div class="layout horizontal center" | 
| 38                hidden$="[[!networkState.Cellular.SIMLockStatus.LockEnabled]]"> | 38                hidden$="[[!networkState.Cellular.SIMLockStatus.LockEnabled]]"> | 
| 39             <!-- SIM lock enabled --> | 39             <!-- SIM lock enabled --> | 
| 40             <cr-button on-click="onChangePin_">Change PIN</cr-button> | 40             <paper-button on-tap="onChangePin_">Change PIN</paper-button> | 
| 41           </div> | 41           </div> | 
| 42         </div> | 42         </div> | 
| 43       </div> | 43       </div> | 
| 44     </div> | 44     </div> | 
| 45 | 45 | 
| 46     <!-- Enter PIN dialog --> | 46     <!-- Enter PIN dialog --> | 
| 47     <paper-dialog modal id="enterPinDialog" class="layout vertical" | 47     <paper-dialog modal id="enterPinDialog" class="layout vertical" | 
| 48         on-iron-overlay-opened="onEnterPinDialogOpened_"> | 48         on-iron-overlay-opened="onEnterPinDialogOpened_"> | 
| 49       <div class="layout vertical"> | 49       <div class="layout vertical"> | 
| 50         <h2>Enter SIM PIN</h2> | 50         <h2>Enter SIM PIN</h2> | 
| 51         <div class="layout vertical"> | 51         <div class="layout vertical"> | 
| 52           <div class="layout horizontal"> | 52           <div class="layout horizontal"> | 
| 53             <cr-input id="enterPin" class="pin" no-label-float | 53             <cr-input id="enterPin" class="pin" no-label-float | 
| 54                 label="Enter PIN"> | 54                 label="Enter PIN"> | 
| 55             </cr-input> | 55             </cr-input> | 
| 56             <cr-button on-click="sendEnterPin_">Enter</cr-button> | 56             <paper-button on-tap="sendEnterPin_">Enter</paper-button> | 
| 57           </div> | 57           </div> | 
| 58         </div> | 58         </div> | 
| 59         <div class="layout horizontal"> | 59         <div class="layout horizontal"> | 
| 60           <span class="error" hidden$="[[!showError_(error)]]" | 60           <span class="error" hidden$="[[!showError_(error)]]" | 
| 61               >[[getErrorMsg_(error)]] | 61               >[[getErrorMsg_(error)]] | 
| 62           </span> | 62           </span> | 
| 63           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 63           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 
| 64         </div> | 64         </div> | 
| 65       </div> | 65       </div> | 
| 66     </paper-dialog> | 66     </paper-dialog> | 
| 67 | 67 | 
| 68     <!-- Change PIN dialog --> | 68     <!-- Change PIN dialog --> | 
| 69     <paper-dialog modal id="changePinDialog" class="layout vertical" | 69     <paper-dialog modal id="changePinDialog" class="layout vertical" | 
| 70         on-iron-overlay-opened="onChangePinDialogOpened_"> | 70         on-iron-overlay-opened="onChangePinDialogOpened_"> | 
| 71       <div class="layout vertical"> | 71       <div class="layout vertical"> | 
| 72         <h2>Change SIM PIN</h2> | 72         <h2>Change SIM PIN</h2> | 
| 73         <div class="layout horizontal end"> | 73         <div class="layout horizontal end"> | 
| 74           <div class="layout vertical"> | 74           <div class="layout vertical"> | 
| 75             <cr-input id="changePinOld" class="pin" no-label-float | 75             <cr-input id="changePinOld" class="pin" no-label-float | 
| 76                 label="Enter old PIN"> | 76                 label="Enter old PIN"> | 
| 77             </cr-input> | 77             </cr-input> | 
| 78             <cr-input id="changePinNew1" class="pin" no-label-float | 78             <cr-input id="changePinNew1" class="pin" no-label-float | 
| 79                 label="Enter new PIN"> | 79                 label="Enter new PIN"> | 
| 80             </cr-input> | 80             </cr-input> | 
| 81             <cr-input id="changePinNew2" class="pin" no-label-float | 81             <cr-input id="changePinNew2" class="pin" no-label-float | 
| 82                 label="Re-enter new PIN"> | 82                 label="Re-enter new PIN"> | 
| 83             </cr-input> | 83             </cr-input> | 
| 84           </div> | 84           </div> | 
| 85           <cr-button on-click="sendChangePin_">Change</cr-button> | 85           <paper-button on-tap="sendChangePin_">Change</paper-button> | 
| 86         </div> | 86         </div> | 
| 87         <div class="layout horizontal"> | 87         <div class="layout horizontal"> | 
| 88           <span class="error" hidden$="[[!showError_(error)]]" | 88           <span class="error" hidden$="[[!showError_(error)]]" | 
| 89               >[[getErrorMsg_(error)]] | 89               >[[getErrorMsg_(error)]] | 
| 90           </span> | 90           </span> | 
| 91           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 91           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 
| 92         </div> | 92         </div> | 
| 93       </div> | 93       </div> | 
| 94     </paper-dialog> | 94     </paper-dialog> | 
| 95 | 95 | 
| 96     <!-- Unlock PIN dialog --> | 96     <!-- Unlock PIN dialog --> | 
| 97     <paper-dialog modal id="unlockPinDialog" class="layout vertical" | 97     <paper-dialog modal id="unlockPinDialog" class="layout vertical" | 
| 98         on-iron-overlay-opened="onUnlockPinDialogOpened_"> | 98         on-iron-overlay-opened="onUnlockPinDialogOpened_"> | 
| 99       <div class="layout vertical"> | 99       <div class="layout vertical"> | 
| 100         <h2>SIM Card is locked.</h2> | 100         <h2>SIM Card is locked.</h2> | 
| 101         <div class="layout horizontal"> | 101         <div class="layout horizontal"> | 
| 102           <cr-input id="unlockPin" class="pin" no-label-float | 102           <cr-input id="unlockPin" class="pin" no-label-float | 
| 103               label="Enter PIN"> | 103               label="Enter PIN"> | 
| 104           </cr-input> | 104           </cr-input> | 
| 105           <cr-button on-click="sendUnlockPin_">Unlock</cr-button> | 105           <paper-button on-tap="sendUnlockPin_">Unlock</paper-button> | 
| 106         </div> | 106         </div> | 
| 107         <div class="layout horizontal"> | 107         <div class="layout horizontal"> | 
| 108           <span class="error" hidden$="[[!showError_(error)]]" | 108           <span class="error" hidden$="[[!showError_(error)]]" | 
| 109               >[[getErrorMsg_(error)]] | 109               >[[getErrorMsg_(error)]] | 
| 110           </span> | 110           </span> | 
| 111           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 111           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 
| 112         </div> | 112         </div> | 
| 113       </div> | 113       </div> | 
| 114     </paper-dialog> | 114     </paper-dialog> | 
| 115 | 115 | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 128             </cr-input> | 128             </cr-input> | 
| 129             <div class="layout horizontal end"> | 129             <div class="layout horizontal end"> | 
| 130               <div class="layout vertical"> | 130               <div class="layout vertical"> | 
| 131                 <cr-input id="unlockPin1" class="pin" no-label-float | 131                 <cr-input id="unlockPin1" class="pin" no-label-float | 
| 132                     label="Enter PIN"> | 132                     label="Enter PIN"> | 
| 133                 </cr-input> | 133                 </cr-input> | 
| 134                 <cr-input id="unlockPin2" class="pin" no-label-float | 134                 <cr-input id="unlockPin2" class="pin" no-label-float | 
| 135                     label="Re-enter PIN"> | 135                     label="Re-enter PIN"> | 
| 136                 </cr-input> | 136                 </cr-input> | 
| 137               </div> | 137               </div> | 
| 138               <cr-button on-click="sendUnlockPuk_">Unlock</cr-button> | 138               <paper-button on-tap="sendUnlockPuk_">Unlock</paper-button> | 
| 139             </div> | 139             </div> | 
| 140           </div> | 140           </div> | 
| 141           <div class="flex"></div>. | 141           <div class="flex"></div>. | 
| 142         </div> | 142         </div> | 
| 143         <span class="error"> | 143         <span class="error"> | 
| 144           Your SIM card will be permanently disabled if you cannot enter | 144           Your SIM card will be permanently disabled if you cannot enter | 
| 145           the correct PIN Unblocking key. | 145           the correct PIN Unblocking key. | 
| 146         </span> | 146         </span> | 
| 147         <div class="layout horizontal"> | 147         <div class="layout horizontal"> | 
| 148           <span class="error" hidden$="[[!showError_(error)]]" | 148           <span class="error" hidden$="[[!showError_(error)]]" | 
| 149               >[[getErrorMsg_(error)]] | 149               >[[getErrorMsg_(error)]] | 
| 150           </span> | 150           </span> | 
| 151           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 151           <span>[[getRetriesLeftMsg_(networkState)]]</span> | 
| 152         </div> | 152         </div> | 
| 153       </div> | 153       </div> | 
| 154     </paper-dialog> | 154     </paper-dialog> | 
| 155 | 155 | 
| 156   </template> | 156   </template> | 
| 157   <script src="network_siminfo.js"></script> | 157   <script src="network_siminfo.js"></script> | 
| 158 </dom-module> | 158 </dom-module> | 
| OLD | NEW | 
|---|