Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> |
|
dpapad
2016/07/07 21:03:55
No longer needed.
stevenjb
2016/07/07 21:39:06
Done.
| |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html"> |
| 7 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 7 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 8 <link rel="import" href="/i18n_setup.html"> | 8 <link rel="import" href="/i18n_setup.html"> |
| 9 <link rel="import" href="/settings_shared_css.html"> | 9 <link rel="import" href="/settings_shared_css.html"> |
| 10 <link rel="import" href="/site_settings/constants.html"> | 10 <link rel="import" href="/site_settings/constants.html"> |
| 11 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 11 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 12 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> | 12 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 13 | 13 |
| 14 <dom-module id="site-details-permission"> | 14 <dom-module id="site-details-permission"> |
| 15 <template> | 15 <template> |
| 16 <style include="settings-shared"> | 16 <style include="settings-shared"> |
| 17 :host { | 17 :host { |
| 18 display: block; | 18 display: block; |
| 19 } | 19 } |
| 20 | 20 |
| 21 paper-dropdown-menu { | |
| 22 --paper-input-container-input: { | |
| 23 font-size: inherit; | |
| 24 }; | |
| 25 | |
| 26 --paper-font-caption: { | |
| 27 font-size: inherit; | |
| 28 } | |
| 29 } | |
| 30 | |
| 31 .left-column { | 21 .left-column { |
| 32 -webkit-margin-start: 15px; | 22 -webkit-margin-start: 15px; |
| 33 } | 23 } |
| 34 | 24 |
| 35 .right-column { | 25 .right-column { |
| 36 -webkit-margin-start: 10px; | 26 -webkit-margin-start: 10px; |
| 37 } | 27 } |
| 38 | 28 |
| 39 .permission-header { | 29 .permission-header { |
| 40 -webkit-margin-start: -1px; | 30 -webkit-margin-start: -1px; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 64 </div> | 54 </div> |
| 65 <div class="flex right-column"> | 55 <div class="flex right-column"> |
| 66 <div class="permission-header"> | 56 <div class="permission-header"> |
| 67 [[computeTitleForContentCategory(category)]] | 57 [[computeTitleForContentCategory(category)]] |
| 68 </div> | 58 </div> |
| 69 <div class="permission-list"> | 59 <div class="permission-list"> |
| 70 <paper-dropdown-menu> | 60 <paper-dropdown-menu> |
| 71 <paper-listbox id="permission" class="dropdown-content" | 61 <paper-listbox id="permission" class="dropdown-content" |
| 72 on-iron-activate="onPermissionMenuIronActivate_" | 62 on-iron-activate="onPermissionMenuIronActivate_" |
| 73 attr-for-selected="data-permission-value"> | 63 attr-for-selected="data-permission-value"> |
| 74 <paper-item id="allow" | 64 <div id="allow" class="dropdown-item" |
|
dpapad
2016/07/07 21:03:55
Same here and below, role="option"
stevenjb
2016/07/07 21:39:06
Done.
| |
| 75 data-permission-value$="[[PermissionValues.ALLOW]]"> | 65 data-permission-value$="[[PermissionValues.ALLOW]]"> |
| 76 [[i18n_.allowAction]] | 66 [[i18n_.allowAction]] |
| 77 </paper-item> | 67 </div> |
| 78 <paper-item id="block" | 68 <div id="block" class="dropdown-item" |
| 79 data-permission-value$="[[PermissionValues.BLOCK]]"> | 69 data-permission-value$="[[PermissionValues.BLOCK]]"> |
| 80 [[i18n_.blockAction]] | 70 [[i18n_.blockAction]] |
| 81 </paper-item> | 71 </div> |
| 82 </paper-listbox> | 72 </paper-listbox> |
| 83 </paper-dropdown-menu> | 73 </paper-dropdown-menu> |
| 84 </div> | 74 </div> |
| 85 </div> | 75 </div> |
| 86 </div> | 76 </div> |
| 87 </template> | 77 </template> |
| 88 <script src="site_details_permission.js"></script> | 78 <script src="site_details_permission.js"></script> |
| 89 </dom-module> | 79 </dom-module> |
| OLD | NEW |