OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list.
html"> | 1 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list.
html"> |
2 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list_
item.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list_
item.html"> |
3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
4 <link rel="import" href="chrome://resources/html/polymer.html"> | 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
9 <link rel="import" href="../settings_page/settings_subpage.html"> | 9 <link rel="import" href="../settings_page/settings_subpage.html"> |
10 <link rel="import" href="../settings_shared_css.html"> | 10 <link rel="import" href="../settings_shared_css.html"> |
11 <link rel="import" href="network_siminfo.html"> | 11 <link rel="import" href="network_siminfo.html"> |
12 | 12 |
13 <dom-module id="network-summary-item"> | 13 <dom-module id="network-summary-item"> |
14 <template> | 14 <template> |
15 <style include="settings-shared"> | 15 <style include="settings-shared"> |
16 network-siminfo { | 16 network-siminfo { |
17 padding: 0 var(--settings-box-row-padding); | 17 padding: 0 var(--settings-box-row-padding); |
18 } | 18 } |
19 | 19 |
20 .padded { | |
21 @apply(--settings-list-frame-padding); | |
22 } | |
23 | |
24 #details { | 20 #details { |
25 align-items: center; | 21 align-items: center; |
26 display: flex; | 22 display: flex; |
27 flex: auto; | 23 flex: auto; |
28 } | 24 } |
29 | 25 |
30 #details[no-flex] { | 26 #details[no-flex] { |
31 flex: none; | 27 flex: none; |
32 } | 28 } |
33 | |
34 #networkList { | |
35 margin: 5px 0 10px; | |
36 max-height: 200px; | |
37 min-height: 50px; | |
38 } | |
39 </style> | 29 </style> |
40 <div actionable class="settings-box two-line" on-tap="onShowDetailsTap_"> | 30 <div actionable class="settings-box two-line" on-tap="onShowDetailsTap_"> |
41 <div id="details" | 31 <div id="details" no-flex$="[[showSimInfo_(deviceState)]]"> |
42 no-flex$="[[showSimInfo_(deviceState)]]"> | |
43 <cr-network-list-item item="[[activeNetworkState]]" class="flex"> | 32 <cr-network-list-item item="[[activeNetworkState]]" class="flex"> |
44 </cr-network-list-item> | 33 </cr-network-list-item> |
45 </div> | 34 </div> |
46 | 35 |
47 <template is="dom-if" if="[[showSimInfo_(deviceState)]]"> | 36 <template is="dom-if" if="[[showSimInfo_(deviceState)]]"> |
48 <network-siminfo editable class="flex" | 37 <network-siminfo editable class="flex" |
49 network-properties="[[getCellularState_(deviceState)]]" | 38 network-properties="[[getCellularState_(deviceState)]]" |
50 networking-private="[[networkingPrivate]]"> | 39 networking-private="[[networkingPrivate]]"> |
51 </network-siminfo> | 40 </network-siminfo> |
52 </template> | 41 </template> |
(...skipping 12 matching lines...) Expand all Loading... |
65 checked="[[deviceIsEnabled_(deviceState)]]" | 54 checked="[[deviceIsEnabled_(deviceState)]]" |
66 enabled="[[enableToggleIsEnabled_(deviceState)]]" | 55 enabled="[[enableToggleIsEnabled_(deviceState)]]" |
67 on-tap="onDeviceEnabledTap_"> | 56 on-tap="onDeviceEnabledTap_"> |
68 </paper-toggle-button> | 57 </paper-toggle-button> |
69 </div> | 58 </div> |
70 </template> | 59 </template> |
71 </div> | 60 </div> |
72 </template> | 61 </template> |
73 <script src="network_summary_item.js"></script> | 62 <script src="network_summary_item.js"></script> |
74 </dom-module> | 63 </dom-module> |
OLD | NEW |