Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Side by Side Diff: chrome/browser/resources/settings/languages_page/edit_dictionary_page.html

Issue 2949873003: MD Settings: add 'preserve-focus' flag to fix iron-list focus bugs. (Closed)
Patch Set: remove debug code Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 2
3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 3 <link rel="import" href="chrome://resources/cr_elements/icons.html">
4 <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-a11y-keys/iron-a11 y-keys.html">
5 <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/iron-list/iron-list.htm l">
6 <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">
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-input/paper-input .html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
9 <link rel="import" href="../global_scroll_target_behavior.html"> 9 <link rel="import" href="../global_scroll_target_behavior.html">
10 <link rel="import" href="../prefs/prefs.html"> 10 <link rel="import" href="../prefs/prefs.html">
(...skipping 30 matching lines...) Expand all
41 <paper-button class="secondary-button" on-tap="onAddWordTap_" 41 <paper-button class="secondary-button" on-tap="onAddWordTap_"
42 disabled="[[!validateWord_(newWordValue_)]]" id="addWord"> 42 disabled="[[!validateWord_(newWordValue_)]]" id="addWord">
43 $i18n{addDictionaryWordButton} 43 $i18n{addDictionaryWordButton}
44 </paper-button> 44 </paper-button>
45 </div> 45 </div>
46 <div class="settings-box continuation block"> 46 <div class="settings-box continuation block">
47 <h2>$i18n{customDictionaryWords}</h2> 47 <h2>$i18n{customDictionaryWords}</h2>
48 </div> 48 </div>
49 <div class="list-frame"> 49 <div class="list-frame">
50 <template is="dom-if" if="[[hasWords_(words_.length)]]"> 50 <template is="dom-if" if="[[hasWords_(words_.length)]]">
51 <iron-list id="list" items="[[words_]]" 51 <iron-list id="list" items="[[words_]]" preserve-focus
52 scroll-target="[[subpageScrollTarget]]"> 52 scroll-target="[[subpageScrollTarget]]">
53 <template> 53 <template>
54 <div class="list-item"> 54 <div class="list-item">
55 <div class="word text-elide">[[item]]</div> 55 <div class="word text-elide">[[item]]</div>
56 <button is="paper-icon-button-light" class="icon-clear" 56 <button is="paper-icon-button-light" class="icon-clear"
57 on-tap="onRemoveWordTap_" tabindex$="[[tabIndex]]"> 57 on-tap="onRemoveWordTap_" tabindex$="[[tabIndex]]">
58 </button> 58 </button>
59 </div> 59 </div>
60 </template> 60 </template>
61 </iron-list> 61 </iron-list>
62 </template> 62 </template>
63 <template is="dom-if" if="[[!hasWords_(words_.length)]]"> 63 <template is="dom-if" if="[[!hasWords_(words_.length)]]">
64 <div id="noWordsLabel" class="list-item"> 64 <div id="noWordsLabel" class="list-item">
65 $i18n{noCustomDictionaryWordsFound} 65 $i18n{noCustomDictionaryWordsFound}
66 </div> 66 </div>
67 </template> 67 </template>
68 </div> 68 </div>
69 </template> 69 </template>
70 <script src="edit_dictionary_page.js"></script> 70 <script src="edit_dictionary_page.js"></script>
71 </dom-module> 71 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698