OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/communicatio n-icons.html"> | |
4 <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-menu/paper-menu.h tml"> | |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-submen u.html"> | |
7 | |
8 <dom-module id="cr-settings-site-list"> | |
Dan Beam
2015/10/10 01:27:40
remove cr-
Finnur
2015/10/15 15:46:33
Done.
| |
9 <link rel="import" type="css" | |
10 href="chrome://md-settings/settings_page/settings_page.css"> | |
11 <link rel="import" type="css" href="site_list.css"> | |
12 <template> | |
13 <paper-menu> | |
14 <paper-submenu> | |
15 <paper-item class="menu-trigger"> | |
16 <div>[[computeSiteListHeader_(siteList_, toggleState_)]]</div> | |
17 </paper-item> | |
18 <paper-menu class="menu-content"> | |
19 <template is="dom-repeat" items="{{siteList_}}"> | |
20 <div class="horizontal layout center"> | |
21 <div><iron-icon | |
22 icon="[[computeSiteIcon_(item.url)]]" | |
23 item-icon></iron-icon></div> | |
Dan Beam
2015/10/10 01:27:40
wrapped weirdly. does
<div>
<iron-icon icon="[
Finnur
2015/10/15 15:46:33
It isn't. Removed.
| |
24 <div class="flex"><paper-item | |
25 on-click="handleClick_">[[item.url]]</paper-item></div> | |
26 <div> | |
27 <paper-menu-button> | |
28 <paper-icon-button icon="menu" class="dropdown-trigger" | |
29 alt="menu"></paper-icon-button> | |
Dan Beam
2015/10/10 01:27:40
alt="menu"?
Finnur
2015/10/15 15:46:33
Huh. Removed.
| |
30 <paper-menu id="actionMenu" class="dropdown-content" | |
31 on-iron-select="selectAction_"> | |
Dan Beam
2015/10/10 01:27:40
onActionMenuIronSelect_
Finnur
2015/10/15 15:46:33
Done.
| |
32 <template is="dom-if" if="[[showAllowAction_]]"> | |
33 <paper-item | |
34 value="Allow">[[allowActionLabel_]]</paper-item> | |
35 </template> | |
36 <template is="dom-if" if="[[showBlockAction_]]"> | |
37 <paper-item | |
38 value="Block">[[blockActionLabel_]]</paper-item> | |
39 </template> | |
Dan Beam
2015/10/10 01:27:40
for these maybe consider hidden="[[!showBlockActio
Finnur
2015/10/15 15:46:33
Done. My thinking here was that this list could ge
| |
40 <paper-item value="Reset">[[resetActionLabel_]]</paper-item> | |
41 </paper-menu> | |
42 </paper-menu-button> | |
43 </div> | |
44 </div> | |
45 </template> | |
46 </paper-menu> | |
47 </paper-submenu> | |
48 </paper-menu> | |
49 </template> | |
50 <script src="site_list.js"></script> | |
51 </dom-module> | |
OLD | NEW |