Vectorize sad tab image.
[chromium-blink-merge.git] / chrome / browser / resources / settings / location_page / location_page.js
blob1d8201bb641ed66a583086969914c07b7f65bd5d
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-location-page' is the settings page for location access.
9 * Example:
11 * <cr-settings-location-page prefs="{{prefs}}">
12 * </cr-settings-location-page>
13 * ... other pages ...
15 * @group Chrome Settings Elements
16 * @element cr-settings-location-page
18 Polymer({
19 is: 'cr-settings-location-page',
21 properties: {
22 /**
23 * Preferences state.
25 prefs: {
26 type: Object,
27 notify: true,
30 /**
31 * Route for the page.
33 route: String,
35 /**
36 * Whether the page is a subpage.
38 subpage: {
39 type: Boolean,
40 value: true,
41 readOnly: true,
44 /**
45 * ID of the page.
47 PAGE_ID: {
48 type: String,
49 value: 'location',
50 readOnly: true,
53 /**
54 * Title for the page header and navigation menu.
56 pageTitle: {
57 type: String,
58 value: '',
61 /**
62 * Name of the 'iron-icon' to show.
64 icon: {
65 type: String,
66 value: 'communication:location-on',
67 readOnly: true,
70 /**
71 * Array of objects with url members.
73 block: {
74 type: Array,
77 /**
78 * Array of objects with url members.
80 allow: {
81 type: Array,
85 ready: function() {
86 this.block = [];
87 this.allow = [];
90 getTitleAndCount_: function(title, count) {
91 return loadTimeData.getStringF(
92 'titleAndCount', loadTimeData.getString(title), count);
94 });