<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.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-item/paper-item.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/paper-dropdown-menu.html">
<link rel="import" href="chrome://md-settings/controls/settings_checkbox.html">
<link rel="import" href="chrome://md-settings/controls/settings_dropdown_menu.html">

<dom-module id="settings-clear-browsing-data-page">
  <link rel="import" type="css"
      href="chrome://md-settings/settings_shared.css">
  <link rel="import" type="css" href="clear_browsing_data_page.css">
  <template>
    <div class="settings-box">
      <span i18n-content="clearFollowingItemsFrom"></span>
      <settings-dropdown-menu id="clearFrom"
          pref="{{prefs.browser.clear_data.time_period}}"
          menu-options="[[clearFromOptions_]]">
      </settings-dropdown-menu>
      <settings-checkbox id="browsingCheckbox"
          pref="{{prefs.browser.clear_data.browsing_history}}"
          i18n-values="label:clearBrowsingHistory">
      </settings-checkbox>
      <settings-checkbox id="downloadCheckbox"
          pref="{{prefs.browser.clear_data.download_history}}"
          i18n-values="label:clearDownloadHistory">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.cache}}"
          i18n-values="label:clearCache">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.cookies}}"
          i18n-values="label:clearCookies">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.passwords}}"
          i18n-values="label:clearPasswords">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.form_data}}"
          i18n-values="label:clearFormData">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.hosted_apps_data}}"
          i18n-values="label:clearHostedAppData">
      </settings-checkbox>
      <settings-checkbox
          pref="{{prefs.browser.clear_data.content_licenses}}"
          i18n-values="label:clearDeauthorizeContentLicenses">
      </settings-checkbox>
    </settings-box>
      <span i18n-content="warnAboutNonClearedData"></span>
      <span i18n-content="clearsSyncedData"></span>
    </settings-box>
    <settings-box>
      <paper-button id="clearDataButton"
          on-tap="onPerformClearBrowsingDataTap_"
          raised i18n-content="clearBrowsingData">
      </paper-button>
    </div>
  </template>
  <script src="clear_browsing_data_page.js"></script>
</dom-module>
