OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> |
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/iron-list/iron-list.htm
l"> |
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-icon-button/paper
-icon-button.html"> | 6 <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-input/paper-input
.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
8 <link rel="import" href="../global_scroll_target_behavior.html"> | 8 <link rel="import" href="../global_scroll_target_behavior.html"> |
9 <link rel="import" href="../prefs/prefs.html"> | 9 <link rel="import" href="../prefs/prefs.html"> |
10 <link rel="import" href="../prefs/prefs_behavior.html"> | 10 <link rel="import" href="../prefs/prefs_behavior.html"> |
11 <link rel="import" href="../settings_shared_css.html"> | 11 <link rel="import" href="../settings_shared_css.html"> |
12 | 12 |
13 <dom-module id="settings-edit-dictionary-page"> | 13 <dom-module id="settings-edit-dictionary-page"> |
14 <template> | 14 <template> |
15 <style include="settings-shared"> | 15 <style include="settings-shared"> |
16 :host { | 16 :host { |
(...skipping 28 matching lines...) Expand all Loading... |
45 <div class="settings-box continuation block"> | 45 <div class="settings-box continuation block"> |
46 <h2>$i18n{customDictionaryWords}</h2> | 46 <h2>$i18n{customDictionaryWords}</h2> |
47 </div> | 47 </div> |
48 <div class="list-frame"> | 48 <div class="list-frame"> |
49 <template is="dom-if" if="[[hasWords_(words_.length)]]"> | 49 <template is="dom-if" if="[[hasWords_(words_.length)]]"> |
50 <iron-list id="list" items="{{words_}}" | 50 <iron-list id="list" items="{{words_}}" |
51 scroll-target="[[subpageScrollTarget]]"> | 51 scroll-target="[[subpageScrollTarget]]"> |
52 <template> | 52 <template> |
53 <div class="list-item"> | 53 <div class="list-item"> |
54 <div class="word text-elide">[[item]]</div> | 54 <div class="word text-elide">[[item]]</div> |
55 <paper-icon-button icon="cr:clear" on-tap="onRemoveWordTap_" | 55 <button is="paper-icon-button-light" class="icon-clear" |
56 tabindex$="[[tabIndex]]"> | 56 on-tap="onRemoveWordTap_" tabindex$="[[tabIndex]]"> |
57 </paper-icon-button> | 57 </button> |
58 </div> | 58 </div> |
59 </template> | 59 </template> |
60 </iron-list> | 60 </iron-list> |
61 </template> | 61 </template> |
62 <template is="dom-if" if="[[!hasWords_(words_.length)]]"> | 62 <template is="dom-if" if="[[!hasWords_(words_.length)]]"> |
63 <div id="noWordsLabel" class="list-item"> | 63 <div id="noWordsLabel" class="list-item"> |
64 $i18n{noCustomDictionaryWordsFound} | 64 $i18n{noCustomDictionaryWordsFound} |
65 </div> | 65 </div> |
66 </template> | 66 </template> |
67 </div> | 67 </div> |
68 </template> | 68 </template> |
69 <script src="edit_dictionary_page.js"></script> | 69 <script src="edit_dictionary_page.js"></script> |
70 </dom-module> | 70 </dom-module> |
OLD | NEW |