Chromium Code Reviews| Index: chrome/browser/resources/settings/people_page/import_data_dialog.html |
| diff --git a/chrome/browser/resources/settings/people_page/import_data_dialog.html b/chrome/browser/resources/settings/people_page/import_data_dialog.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c5c4db7d825e5175da86e410067690d4f63e3df |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/people_page/import_data_dialog.html |
| @@ -0,0 +1,69 @@ |
| +<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> |
| +<link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| +<link rel="import" href="chrome://resources/html/polymer.html"> |
| +<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-checkbox.html"> |
| +<link rel="import" href="/md_select_css.html"> |
| +<link rel="import" href="/people_page/import_data_browser_proxy.html"> |
| + |
| +<dom-module id="settings-import-data-dialog"> |
| + <style> |
| + paper-checkbox { |
| + display: block; |
| + margin-bottom: 20px; |
| + } |
|
tommycli
2016/11/14 18:15:57
Seems odd that we would need to define a custom st
dpapad
2016/11/14 20:35:22
Tried using list-frame, list-item. The problem is
tommycli
2016/11/14 20:45:34
Hmm.. if the only problem is the 24px left padding
dpapad
2016/11/14 21:47:57
I'll leave as-is for now, and will make sure that
|
| + |
| + #description { |
| + align-items: center; |
| + display: flex; |
| + height: 40px; |
|
Dan Beam
2016/11/15 01:27:46
can we use a var() here for the height (and prefer
dpapad
2016/11/15 01:33:46
Done.
|
| + } |
| + </style> |
| + <template> |
| + <style include="settings-shared md-select"></style> |
| + <dialog is="cr-dialog" id="dialog"> |
| + <div class="title">$i18n{importTitle}</div> |
| + <div class="body"> |
| + <span class="md-select-wrapper"> |
| + <select class="md-select" on-change="onChange_"> |
| + <template is="dom-repeat" items="[[browserProfiles_]]"> |
| + <option value="[[item.index]]">[[item.name]]</option> |
| + </template> |
| + </select> |
| + <span class="md-select-underline"></span> |
| + </span> |
| + <div id="description">$i18n{importDescription}</div> |
| + <div> |
| + <paper-checkbox hidden="[[!selected_.history]]"> |
|
Dan Beam
2016/11/14 19:07:20
aren't they persistently stored as prefs somewhere
Dan Beam
2016/11/14 19:07:50
isn't this list persistently stored*
dpapad
2016/11/14 20:35:22
I don't think there are any prefs related to this
tommycli
2016/11/14 20:45:34
The Old Options code does seem to indicate some in
dpapad
2016/11/14 21:47:57
Double checked with old Options, and the checkboxe
Dan Beam
2016/11/14 22:05:45
yeah, all the pref magic in options is done in JS
|
| + $i18n{importHistory} |
| + </paper-checkbox> |
| + <paper-checkbox hidden="[[!selected_.favorites]]"> |
| + $i18n{importFavorites} |
| + </paper-checkbox> |
| + <paper-checkbox hidden="[[!selected_.passwords]]"> |
| + $i18n{importPasswords} |
| + </paper-checkbox> |
| + <paper-checkbox hidden="[[!selected_.search]]"> |
| + $i18n{importSearch} |
| + </paper-checkbox> |
| + <paper-checkbox hidden="[[!selected_.autofillFormData]]"> |
| + $i18n{importAutofillFormData} |
| + </paper-checkbox> |
| + </div> |
| + </div> |
| + <div class="button-container"> |
| + <div class="action-buttons"> |
| + <paper-button class="cancel-button" id="cancel" on-tap="onCancelTap_"> |
| + $i18n{cancel} |
| + </paper-button> |
| + <paper-button id="actionButton" class="action-button" |
| + on-tap="onActionButtonTap_"> |
| + [[getActionButtonText_(selected_)]] |
| + </paper-button> |
| + </div> |
| + </div> |
| + </dialog> |
| + </template> |
| + <script src="import_data_dialog.js"></script> |
| +</dom-module> |