{"size": 1254, "ext": "js", "max_stars_repo_path": "chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js", "max_stars_repo_name": "metux/chromium-deb", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js", "max_issues_repo_name": "metux/chromium-deb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js", "max_forks_repo_name": "metux/chromium-deb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.5882352941, "max_line_length": 73, "alphanum_fraction": 0.6483253589}
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Polymer({
  is: 'settings-passwords-and-forms-page',

  behaviors: [PrefsBehavior],

  properties: {
    /** @private Filter applied to passwords and password exceptions. */
    passwordFilter_: String,

    /** @type {?Map<string, string>} */
    focusConfig: Object,
  },

  /** @override */
  ready: function() {
    this.focusConfig_ = new Map();
    if (settings.routes.AUTOFILL) {
      this.focusConfig_.set(
          settings.routes.AUTOFILL.path,
          '#autofillManagerButton .subpage-arrow');
    }
    if (settings.routes.MANAGE_PASSWORDS) {
      this.focusConfig_.set(
          settings.routes.MANAGE_PASSWORDS.path,
          '#passwordManagerButton .subpage-arrow');
    }
  },

  /**
   * Shows the manage autofill sub page.
   * @param {!Event} event
   * @private
   */
  onAutofillTap_: function(event) {
    settings.navigateTo(settings.routes.AUTOFILL);
  },

  /**
   * Shows the manage passwords sub page.
   * @param {!Event} event
   * @private
   */
  onPasswordsTap_: function(event) {
    settings.navigateTo(settings.routes.MANAGE_PASSWORDS);
  },
});
