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

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: 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">
michaelpg 2016/07/08 20:56:00 cr/icons.html
Finnur 2016/07/10 00:40:16 I'm assuming you mean cr_elements/icons.html. ? D
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
4 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
5 <link rel="import" href="/i18n_setup.html">
6 <link rel="import" href="/settings_shared_css.html">
7 <link rel="import" href="/site_settings/site_settings_behavior.html">
8 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html">
9
10 <dom-module id="protocol-handlers">
11 <template>
12 <style include="settings-shared">
13 :host {
14 display: block;
15 }
16
17 .protocol {
18 -webkit-margin-start: 20px;
19 margin-bottom: 15px;
20 margin-top: 15px;
21 }
22 </style>
23 <div class="settings-box first two-line">
24 <div class="start secondary">
25 [[computeHandlersDescription_(categoryEnabled)]]
26 </div>
27 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}"
28 on-change="onToggleChange_"></paper-toggle-button>
29 </div>
30
31 <template is="dom-repeat" items="[[protocols]]" as="protocol">
32 <div class="protocol">[[protocol.protocol]]</div>
33
34 <div class="list-frame menu-content vertical-list">
35 <template is="dom-repeat" items="[[protocol.handlers]]">
michaelpg 2016/07/08 20:56:00 indent
Finnur 2016/07/10 00:40:16 Done.
36
37 <div class="list-item underscore">
38 <div class="middle" >
39 <div>[[item.host]]</div>
40 <div class="secondary"
41 hidden$="[[!isDefault_(index, protocol.default_handler)]]">
42 $i18n{handlerIsDefault}
43 </div>
44 </div>
45
46 <paper-menu-button>
47 <paper-icon-button icon="cr:more-vert"
48 class="dropdown-trigger">
49 </paper-icon-button>
50 <paper-menu id="actionMenu" class="dropdown-content"
51 on-iron-activate="onActionMenuIronActivate_"
52 attr-for-selected="menu-value">
53 <paper-item menu-value$="[[MenuActions.SET_DEFAULT]]"
54 hidden$="[[isDefault_(index, protocol.default_handler)]]">
michaelpg 2016/07/08 20:56:00 4-space indent
Finnur 2016/07/10 00:40:16 Done. Hmm... looks like Rietveld freaked out beca
55 $i18n{handlerSetDefault}
56 </paper-item>
57 <paper-item menu-value$="[[MenuActions.REMOVE]]">
58 $i18n{handlerRemove}
59 </paper-item>
60 </paper-menu>
61 </paper-menu-button>
62 </div>
63
64 </template>
65 </template>
michaelpg 2016/07/08 20:56:00 </div> missing?
Finnur 2016/07/10 00:40:16 Good catch. Done.
66 </template>
67 <script src="protocol_handlers.js"></script>
68 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698