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

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: Address ftirelo's review comments and try fix closure compilation 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 {
tommycli 2017/07/06 19:00:13 I don't see an about-link id element in here.
proberge 2017/07/06 21:12:56 Good catch! Removed it.
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 /* Left-align the text of the button with the rest of the card's text */
30 -webkit-margin-start: calc(var(--settings-button-edge-spacing) * -1);
23 color: var(--google-blue-700); 31 color: var(--google-blue-700);
24 --paper-button-ink-color: white;
25 text-transform: inherit; 32 text-transform: inherit;
26 } 33 }
27 34
28 #status-icon { 35 #status-icon {
29 height: 24px; 36 height: 24px;
30 width: 24px; 37 width: 24px;
31 } 38 }
32 39
33 .status-icon-container { 40 .status-icon-container {
41 -webkit-padding-end: 12px;
34 min-width: 28px; 42 min-width: 28px;
35 padding-right: 12px;
36 } 43 }
37 44
38 .status-icon-remove { 45 .status-icon-remove {
39 --iron-icon-fill-color: var(--paper-grey-700); 46 --iron-icon-fill-color: var(--paper-grey-700);
40 } 47 }
41 48
42 .status-icon-done { 49 .status-icon-done {
43 --iron-icon-fill-color: var(--paper-blue-500); 50 --iron-icon-fill-color: var(--paper-blue-500);
44 } 51 }
45 52
(...skipping 15 matching lines...) Expand all
61 <template is="dom-if" if="[[showActionButton_]]"> 68 <template is="dom-if" if="[[showActionButton_]]">
62 <div class="separator"></div> 69 <div class="separator"></div>
63 <paper-button id="action-button" class="primary-button" 70 <paper-button id="action-button" class="primary-button"
64 on-tap="proceed_"> 71 on-tap="proceed_">
65 [[actionButtonLabel_]] 72 [[actionButtonLabel_]]
66 </paper-button> 73 </paper-button>
67 </template> 74 </template>
68 </div> 75 </div>
69 <div id="details-container" 76 <div id="details-container"
70 class="settings-box two-line" hidden="[[!showDetails_]]"> 77 class="settings-box two-line" hidden="[[!showDetails_]]">
71 <div>[[detailsDescription]]</div> 78 <div>
79 $i18n{chromeCleanupExplanation}
80 <a href="$i18n{chromeCleanupLearnMoreUrl}" target="_blank">
81 $i18n{learnMore}
82 </a>
83 </div>
72 </div> 84 </div>
73 <div class="settings-box continuation" hidden="[[!showDetails_]]"> 85 <div class="settings-box continuation" hidden="[[!showLogsPermission_]]">
86 <settings-toggle-button class="start"
87 id="chromeCleanupLogsUploadControl"
88 label="$i18n{chromeCleanupLogsUploadPermission}"
89 pref="[[logsUploadPref_]]"
90 on-settings-boolean-control-change="changeLogsPermission_">
91 </settings-toggle-button>
92 </div>
93 <div class="settings-box" hidden="[[!showDetails_]]">
74 <div class="show-files-container start" hidden="[[showFilesToRemove_]]"> 94 <div class="show-files-container start" hidden="[[showFilesToRemove_]]">
75 <paper-button id="show-files-button" on-tap="showFiles_"> 95 <paper-button id="show-files-button" on-tap="showFiles_">
76 $i18n{chromeCleanupLinkShowFiles} 96 $i18n{chromeCleanupLinkShowFiles}
77 </paper-button> 97 </paper-button>
78 </div> 98 </div>
79 <div hidden="[[!showFilesToRemove_]]"> 99 <div hidden="[[!showFilesToRemove_]]">
80 <ul id="files-to-remove-list" class="secondary"> 100 <ul id="files-to-remove-list" class="secondary">
81 <template is="dom-repeat" items="[[filesToRemove_]]" as="fileName"> 101 <template is="dom-repeat" items="[[filesToRemove_]]" as="fileName">
82 <li>[[fileName]]</li> 102 <li>[[fileName]]</li>
83 </template> 103 </template>
84 </ul> 104 </ul>
85 </div> 105 </div>
86 </div> 106 </div>
87 </template> 107 </template>
88 <script src="chrome_cleanup_page.js"></script> 108 <script src="chrome_cleanup_page.js"></script>
89 </dom-module> 109 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698