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

Side by Side Diff: chrome/browser/resources/settings/site_settings/protocol_handlers.html

Issue 2131953002: Site Settings Desktop: Implement protocol handler section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 years, 5 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
(Empty)
1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/icons.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
5 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
6 <link rel="import" href="/i18n_setup.html">
7 <link rel="import" href="/settings_shared_css.html">
8 <link rel="import" href="/site_settings/site_settings_behavior.html">
9 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html">
10
11 <dom-module id="protocol-handlers">
12 <template>
13 <style include="settings-shared">
14 :host {
15 display: block;
16 }
17
18 .protocol {
19 -webkit-margin-start: 20px;
20 margin-bottom: 15px;
21 margin-top: 15px;
22 }
23 </style>
24 <div class="settings-box first two-line">
25 <div class="start secondary">
26 [[computeHandlersDescription_(categoryEnabled)]]
27 </div>
28 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}"
29 on-change="onToggleChange_"></paper-toggle-button>
30 </div>
31
32 <template is="dom-repeat" items="[[protocols]]" as="protocol">
33 <div class="protocol">[[protocol.protocol]]</div>
34
35 <div class="list-frame menu-content vertical-list">
36 <template is="dom-repeat" items="[[protocol.handlers]]">
37
38 <div class="list-item underscore">
39 <div class="middle" >
40 <div>[[item.host]]</div>
41 <div class="secondary"
42 hidden$="[[!isDefault_(index, protocol.default_handler)]]">
43 $i18n{handlerIsDefault}
44 </div>
45 </div>
46
47 <paper-menu-button>
michaelpg 2016/07/10 17:54:43 import paper-item, paper-menu, paper-menu-button
48 <paper-icon-button icon="cr:more-vert"
49 class="dropdown-trigger">
50 </paper-icon-button>
51 <paper-menu id="actionMenu" class="dropdown-content"
52 on-iron-activate="onActionMenuIronActivate_"
53 attr-for-selected="menu-value">
54 <paper-item menu-value$="[[menuActions_.SET_DEFAULT]]"
55 hidden$="[[isDefault_(index, protocol.default_handler)]]">
56 $i18n{handlerSetDefault}
57 </paper-item>
58 <paper-item menu-value$="[[menuActions_.REMOVE]]">
59 $i18n{handlerRemove}
60 </paper-item>
61 </paper-menu>
62 </paper-menu-button>
63 </div>
64
65 </template>
66 </div>
67 </template>
68 </template>
69 <script src="protocol_handlers.js"></script>
70 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698