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

Side by Side Diff: chrome/browser/resources/settings/chrome_cleanup_page/chrome_cleanup_page.html

Issue 2971823002: Cleanup Tool WebUI: Add logs upload checkbox and minor polishing (Closed)
Patch Set: Minor fixes Created 3 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
1 <link rel="import" href="chrome://resources/html/util.html"> 1 <link rel="import" href="chrome://resources/html/util.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.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-button/paper-butt on.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
7 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 7 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
8 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 8 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
9 <link rel="import" href="../controls/controlled_button.html"> 9 <link rel="import" href="../controls/controlled_button.html">
10 <link rel="import" href="../controls/settings_toggle_button.html"> 10 <link rel="import" href="../controls/settings_toggle_button.html">
11 <link rel="import" href="../settings_shared_css.html"> 11 <link rel="import" href="../settings_shared_css.html">
12 <link rel="import" href="chrome_cleanup_proxy.html"> 12 <link rel="import" href="chrome_cleanup_proxy.html">
13 13
14 <dom-module id="settings-chrome-cleanup-page"> 14 <dom-module id="settings-chrome-cleanup-page">
15 <template> 15 <template>
16 <style include="settings-shared"> 16 <style include="settings-shared">
17 #about-link {
18 color: var(--paper-blue-700);
19 text-decoration: none;
20 }
21
17 #files-to-remove-list { 22 #files-to-remove-list {
18 -webkit-user-select: text; 23 -webkit-user-select: text;
19 word-break: break-all; 24 word-break: break-all;
20 } 25 }
21 26
22 #show-files-button { 27 #show-files-button {
28 --paper-button-ink-color: white;
29 -webkit-margin-start: calc(var(--settings-button-edge-spacing) * -1);
ftirelo 2017/07/05 19:02:25 Please describe why you need this incantation.
proberge 2017/07/05 20:14:20 Done.
23 color: var(--google-blue-700); 30 color: var(--google-blue-700);
24 --paper-button-ink-color: white;
25 text-transform: inherit; 31 text-transform: inherit;
26 } 32 }
27 33
28 #status-icon { 34 #status-icon {
29 height: 24px; 35 height: 24px;
30 width: 24px; 36 width: 24px;
31 } 37 }
32 38
33 .status-icon-container { 39 .status-icon-container {
40 -webkit-padding-end: 12px;
34 min-width: 28px; 41 min-width: 28px;
35 padding-right: 12px;
36 } 42 }
37 43
38 .status-icon-remove { 44 .status-icon-remove {
39 --iron-icon-fill-color: var(--paper-grey-700); 45 --iron-icon-fill-color: var(--paper-grey-700);
40 } 46 }
41 47
42 .status-icon-done { 48 .status-icon-done {
43 --iron-icon-fill-color: var(--paper-blue-500); 49 --iron-icon-fill-color: var(--paper-blue-500);
44 } 50 }
45 51
(...skipping 15 matching lines...) Expand all
61 <template is="dom-if" if="[[showActionButton_]]"> 67 <template is="dom-if" if="[[showActionButton_]]">
62 <div class="separator"></div> 68 <div class="separator"></div>
63 <paper-button id="action-button" class="primary-button" 69 <paper-button id="action-button" class="primary-button"
64 on-tap="proceed_"> 70 on-tap="proceed_">
65 [[actionButtonLabel_]] 71 [[actionButtonLabel_]]
66 </paper-button> 72 </paper-button>
67 </template> 73 </template>
68 </div> 74 </div>
69 <div id="details-container" 75 <div id="details-container"
70 class="settings-box two-line" hidden="[[!showDetails_]]"> 76 class="settings-box two-line" hidden="[[!showDetails_]]">
71 <div>[[detailsDescription]]</div> 77 <div>
78 $i18n{chromeCleanupExplanation}
79 <a href="$i18n{chromeCleanupLearnMoreUrl}" target="_blank">
80 $i18n{learnMore}
81 </a>
82 </div>
72 </div> 83 </div>
73 <div class="settings-box continuation" hidden="[[!showDetails_]]"> 84 <div class="settings-box continuation" hidden="[[!showLogsPermission_]]">
85 <settings-toggle-button class="start"
86 id="logsUploadControl"
ftirelo 2017/07/05 19:02:25 Nit: chromeCleanupLogsUploadControl just to be uni
proberge 2017/07/05 20:14:20 Done.
87 label="$i18n{chromeCleanupLogsUploadPermission}"
88 pref="[[logsUploadPref_]]"
89 on-settings-boolean-control-change="changeLogsPermission_">
90 </settings-toggle-button>
91 </div>
92 <div class="settings-box" hidden="[[!showDetails_]]">
74 <div class="show-files-container start" hidden="[[showFilesToRemove_]]"> 93 <div class="show-files-container start" hidden="[[showFilesToRemove_]]">
75 <paper-button id="show-files-button" on-tap="showFiles_"> 94 <paper-button id="show-files-button" on-tap="showFiles_">
76 $i18n{chromeCleanupLinkShowFiles} 95 $i18n{chromeCleanupLinkShowFiles}
77 </paper-button> 96 </paper-button>
78 </div> 97 </div>
79 <div hidden="[[!showFilesToRemove_]]"> 98 <div hidden="[[!showFilesToRemove_]]">
80 <ul id="files-to-remove-list" class="secondary"> 99 <ul id="files-to-remove-list" class="secondary">
81 <template is="dom-repeat" items="[[filesToRemove_]]" as="fileName"> 100 <template is="dom-repeat" items="[[filesToRemove_]]" as="fileName">
82 <li>[[fileName]]</li> 101 <li>[[fileName]]</li>
83 </template> 102 </template>
84 </ul> 103 </ul>
85 </div> 104 </div>
86 </div> 105 </div>
87 </template> 106 </template>
88 <script src="chrome_cleanup_page.js"></script> 107 <script src="chrome_cleanup_page.js"></script>
89 </dom-module> 108 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698