OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 2 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.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-button/paper-butt
on.html"> |
6 <link rel="import" href="languages.html"> | 7 <link rel="import" href="languages.html"> |
7 <link rel="import" href="../settings_page/settings_subpage_search.html"> | 8 <link rel="import" href="../settings_page/settings_subpage_search.html"> |
8 <link rel="import" href="../settings_shared_css.html"> | 9 <link rel="import" href="../settings_shared_css.html"> |
9 | 10 |
10 <dom-module id="settings-add-languages-dialog"> | 11 <dom-module id="settings-add-languages-dialog"> |
(...skipping 15 matching lines...) Expand all Loading... |
26 flex: 1; | 27 flex: 1; |
27 } | 28 } |
28 | 29 |
29 .ripple-padding { | 30 .ripple-padding { |
30 /* Create a little extra space for checkbox ink ripple to flow into. */ | 31 /* Create a little extra space for checkbox ink ripple to flow into. */ |
31 -webkit-padding-start: 20px; | 32 -webkit-padding-start: 20px; |
32 } | 33 } |
33 </style> | 34 </style> |
34 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> | 35 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> |
35 <div class="title">$i18n{addLanguagesDialogTitle}</div> | 36 <div class="title">$i18n{addLanguagesDialogTitle}</div> |
36 <div class="body"> | 37 <div class="body" scrollable> |
37 <settings-subpage-search label="[[searchLabel]]" | 38 <settings-subpage-search label="[[searchLabel]]" |
38 on-search-changed="onSearchChanged_" autofocus> | 39 on-search-changed="onSearchChanged_" autofocus> |
39 </settings-subpage-search> | 40 </settings-subpage-search> |
40 <iron-list class="ripple-padding" scroll-target="[[$$('.body')]]" | 41 <iron-list class="ripple-padding" scroll-target="[[$$('.body')]]" |
41 items="[[getLanguages_( | 42 items="[[getLanguages_( |
42 languages.supported, languages.enabled.*, filterValue_)]]"> | 43 languages.supported, languages.enabled.*, filterValue_)]]"> |
43 <template> | 44 <template> |
44 <paper-checkbox class="list-item" checked="[[willAdd_(item.code)]]" | 45 <paper-checkbox class="list-item" checked="[[willAdd_(item.code)]]" |
45 title$="[[item.nativeDisplayName]]" | 46 title$="[[item.nativeDisplayName]]" |
46 on-change="onLanguageCheckboxChange_" | 47 on-change="onLanguageCheckboxChange_" |
(...skipping 11 matching lines...) Expand all Loading... |
58 <paper-button class="action-button" on-tap="onActionButtonTap_" | 59 <paper-button class="action-button" on-tap="onActionButtonTap_" |
59 disabled="[[disableActionButton_]]"> | 60 disabled="[[disableActionButton_]]"> |
60 $i18n{add} | 61 $i18n{add} |
61 </paper-button> | 62 </paper-button> |
62 </div> | 63 </div> |
63 </div> | 64 </div> |
64 </dialog> | 65 </dialog> |
65 </template> | 66 </template> |
66 <script src="add_languages_dialog.js"></script> | 67 <script src="add_languages_dialog.js"></script> |
67 </dom-module> | 68 </dom-module> |
OLD | NEW |