Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / chrome / browser / resources / settings / basic_page / basic_page.js
blob36597089840ccb53414e68bd3deb1aa85a48dbca
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * @fileoverview
7 * 'cr-settings-basic-page' is the settings page containing the basic settings.
9 * Example:
11 * <iron-animated-pages>
12 * <cr-settings-basic-page prefs="{{prefs}}"></cr-settings-basic-page>
13 * ... other pages ...
14 * </iron-animated-pages>
16 * @group Chrome Settings Elements
17 * @element cr-settings-basic-page
19 Polymer({
20 is: 'cr-settings-basic-page',
22 properties: {
23 /**
24 * Preferences state.
26 prefs: {
27 type: Object,
28 notify: true,
31 /**
32 * Route for the page.
34 route: String,
36 /**
37 * Whether the page is a subpage.
39 subpage: {
40 type: Boolean,
41 value: false,
42 readOnly: true,
45 /**
46 * ID of the page.
48 PAGE_ID: {
49 type: String,
50 value: 'basic',
51 readOnly: true,
54 /**
55 * Title for the page header and navigation menu.
57 pageTitle: {
58 type: String,
59 value: function() { return loadTimeData.getString('basicPageTitle'); },
62 /**
63 * Name of the 'iron-icon' to show.
65 icon: {
66 type: String,
67 value: 'menu',
68 readOnly: true,
71 });