Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: chrome/browser/resources/settings/location_page/location_page.js

Issue 1372053002: Flesh out the location-page class to make it more general. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 /**
6 * @fileoverview
7 * 'settings-location-page' is the settings page for location access.
8 *
9 * Example:
10 *
11 * <settings-location-page prefs="{{prefs}}">
12 * </settings-location-page>
13 * ... other pages ...
14 *
15 * @group Chrome Settings Elements
16 * @element settings-location-page
17 */
18 Polymer({
19 is: 'settings-location-page',
20
21 properties: {
22 /**
23 * Preferences state.
24 */
25 prefs: {
26 type: Object,
27 notify: true,
28 },
29
30 /**
31 * Route for the page.
32 */
33 route: String,
34
35 /**
36 * Whether the page is a subpage.
37 */
38 subpage: {
39 type: Boolean,
40 value: true,
41 readOnly: true,
42 },
43
44 /**
45 * ID of the page.
46 */
47 PAGE_ID: {
48 type: String,
49 value: 'location',
50 readOnly: true,
51 },
52
53 /**
54 * Title for the page header and navigation menu.
55 */
56 pageTitle: {
57 type: String,
58 value: '',
59 },
60
61 /**
62 * Name of the 'iron-icon' to show.
63 */
64 icon: {
65 type: String,
66 value: 'communication:location-on',
67 readOnly: true,
68 },
69
70 /**
71 * Array of objects with url members.
72 */
73 block: {
74 type: Array,
75 },
76
77 /**
78 * Array of objects with url members.
79 */
80 allow: {
81 type: Array,
82 },
83 },
84
85 ready: function() {
86 this.block = [];
87 this.allow = [];
88 },
89
90 getTitleAndCount_: function(title, count) {
91 return loadTimeData.getStringF(
92 'titleAndCount', loadTimeData.getString(title), count);
93 },
94 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698