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/html/icon.html"> | 3 <link rel="import" href="chrome://resources/html/icon.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
6 <link rel="import" href="/search_engines_page/search_engine_dialog.html"> | 6 <link rel="import" href="/search_engines_page/search_engine_dialog.html"> |
7 <link rel="import" href="/search_engines_page/search_engines_browser_proxy.html"
> | 7 <link rel="import" href="/search_engines_page/search_engines_browser_proxy.html"
> |
8 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
9 | 9 |
10 <dom-module id="settings-search-engine-entry"> | 10 <dom-module id="settings-search-engine-entry"> |
(...skipping 15 matching lines...) Expand all Loading... |
26 overflow: hidden; | 26 overflow: hidden; |
27 text-overflow: ellipsis; | 27 text-overflow: ellipsis; |
28 white-space: nowrap; | 28 white-space: nowrap; |
29 } | 29 } |
30 </style> | 30 </style> |
31 | 31 |
32 <template is="dom-if" if="[[showEditSearchEngineDialog_]]" restamp> | 32 <template is="dom-if" if="[[showEditSearchEngineDialog_]]" restamp> |
33 <settings-search-engine-dialog model="[[engine]]"> | 33 <settings-search-engine-dialog model="[[engine]]"> |
34 </settings-search-engine-dialog> | 34 </settings-search-engine-dialog> |
35 </template> | 35 </template> |
36 <div id="container" class="list-item"> | 36 <div class="list-item"> |
37 <div class="name-column"> | 37 <div class="name-column"> |
38 <span class="favicon-image" | 38 <span class="favicon-image" |
39 style="background-image: [[getIconSet_(engine.iconURL)]]"></span> | 39 style="background-image: [[getIconSet_(engine.iconURL)]]"></span> |
40 <span class="name">[[engine.displayName]]</span> | 40 <span class="name">[[engine.displayName]]</span> |
41 </div> | 41 </div> |
42 <div class="keyword-column">[[engine.keyword]]</div> | 42 <div class="keyword-column">[[engine.keyword]]</div> |
43 <div class="url-column">[[engine.url]]</div> | 43 <div class="url-column">[[engine.url]]</div> |
44 <paper-icon-button icon="cr:more-vert" toggles tabindex$="[[tabindex]]" | 44 <paper-icon-button icon="cr:more-vert" toggles tabindex$="[[tabindex]]" |
45 active="{{editMenuOpened}}"> | 45 active="{{editMenuOpened}}"> |
46 </paper-icon-button> | 46 </paper-icon-button> |
47 <iron-dropdown opened="{{editMenuOpened}}" horizontal-align="right" | 47 <iron-dropdown opened="{{editMenuOpened}}" horizontal-align="right" |
48 vertical-align="auto"> | 48 vertical-align="auto"> |
49 <div class="dropdown-content"> | 49 <div class="dropdown-content"> |
50 <button class="dropdown-item" role="option" on-tap="onMakeDefaultTap_" | 50 <button class="dropdown-item" role="option" on-tap="onMakeDefaultTap_" |
51 hidden$="[[!engine.canBeDefault]]" id="makeDefault"> | 51 hidden$="[[!engine.canBeDefault]]" id="makeDefault"> |
52 $i18n{searchEnginesMakeDefault} | 52 $i18n{searchEnginesMakeDefault} |
53 </button> | 53 </button> |
54 <button class="dropdown-item" role="option" on-tap="onEditTap_" | 54 <button class="dropdown-item" role="option" on-tap="onEditTap_" |
55 hidden$="[[!engine.canBeEdited]]" | 55 hidden$="[[!engine.canBeEdited]]" |
56 id="edit">$i18n{searchEnginesEdit}</button> | 56 id="edit">$i18n{searchEnginesEdit}</button> |
57 <button class="dropdown-item" role="option" on-tap="onDeleteTap_" | 57 <button class="dropdown-item" role="option" on-tap="onDeleteTap_" |
58 hidden$="[[!engine.canBeRemoved]]" | 58 hidden$="[[!engine.canBeRemoved]]" |
59 id="delete">$i18n{searchEnginesRemoveFromList}</button> | 59 id="delete">$i18n{searchEnginesRemoveFromList}</button> |
60 <div> | 60 <div> |
61 </iron-dropdown> | 61 </iron-dropdown> |
62 </div> | 62 </div> |
63 </template> | 63 </template> |
64 <script src="search_engine_entry.js"></script> | 64 <script src="search_engine_entry.js"></script> |
65 </dom-module> | 65 </dom-module> |
OLD | NEW |