OLD | NEW |
---|---|
1 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> |
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
4 <link rel="import" href="chrome://resources/html/icon.html"> | 4 <link rel="import" href="chrome://resources/html/icon.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="../extension_control_browser_proxy.html"> | 6 <link rel="import" href="../extension_control_browser_proxy.html"> |
7 <link rel="import" href="../focus_row_behavior.html"> | |
7 <link rel="import" href="search_engine_entry_css.html"> | 8 <link rel="import" href="search_engine_entry_css.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-omnibox-extension-entry"> | 11 <dom-module id="settings-omnibox-extension-entry"> |
11 <template> | 12 <template> |
12 <style include="settings-shared search-engine-entry"> | 13 <style include="settings-shared search-engine-entry"> |
13 .name-column { | 14 .name-column { |
14 align-items: center; | 15 align-items: center; |
15 display: flex; | 16 display: flex; |
16 flex: 3; | 17 flex: 3; |
17 word-break: break-word; | 18 word-break: break-word; |
18 } | 19 } |
19 | 20 |
20 .keyword-column { | 21 .keyword-column { |
21 flex: 7; | 22 flex: 7; |
22 } | 23 } |
23 | 24 |
24 .favicon-image + span { | 25 .favicon-image + span { |
25 -webkit-margin-end: 8px; | 26 -webkit-margin-end: 8px; |
26 } | 27 } |
27 </style> | 28 </style> |
28 <div class="list-item"> | 29 <div class="list-item" focus-row-container> |
29 <div class="name-column"> | 30 <div class="name-column"> |
30 <span class="favicon-image" | 31 <span class="favicon-image" |
31 style="background-image: [[getIconSet_(engine.iconURL)]]"></span> | 32 style="background-image: [[getIconSet_(engine.iconURL)]]"></span> |
32 <span class="name">[[engine.displayName]]</span> | 33 <span class="name">[[engine.displayName]]</span> |
33 </div> | 34 </div> |
34 <div class="keyword-column">[[engine.keyword]]</div> | 35 <div class="keyword-column">[[engine.keyword]]</div> |
35 <paper-icon-button icon="cr:more-vert" tabindex$="[[tabindex]]" | 36 <paper-icon-button icon="cr:more-vert" focus-row-control |
36 on-tap="onDotsTap_" title="$i18n{moreActions}"> | 37 on-tap="onDotsTap_" title="$i18n{moreActions}" |
38 focus-type="cr-menu-button"> | |
dpapad
2017/05/04 16:35:32
What is focus-type="cr-menu-button" ? I could not
scottchen
2017/05/04 21:57:38
https://cs.chromium.org/chromium/src/chrome/browse
| |
37 </paper-icon-button> | 39 </paper-icon-button> |
38 <dialog is="cr-action-menu"> | 40 <dialog is="cr-action-menu"> |
39 <button class="dropdown-item" role="option" on-tap="onManageTap_" | 41 <button class="dropdown-item" role="option" on-tap="onManageTap_" |
40 id="manage"> | 42 id="manage"> |
41 $i18n{searchEnginesManageExtension} | 43 $i18n{searchEnginesManageExtension} |
42 </button> | 44 </button> |
43 <button class="dropdown-item" role="option" on-tap="onDisableTap_" | 45 <button class="dropdown-item" role="option" on-tap="onDisableTap_" |
44 id="disable"> | 46 id="disable"> |
45 $i18n{disable} | 47 $i18n{disable} |
46 </button> | 48 </button> |
47 </dialog> | 49 </dialog> |
48 </div> | 50 </div> |
49 </template> | 51 </template> |
50 <script src="omnibox_extension_entry.js"></script> | 52 <script src="omnibox_extension_entry.js"></script> |
51 </dom-module> | 53 </dom-module> |
OLD | NEW |