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

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

Issue 1295903004: [MD settings] adding mock up of location page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup some temp vars Created 5 years, 4 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'cr-settings-privacy-page' is the settings page containing privacy and 7 * 'cr-settings-location-page' is the settings page containing privacy and
8 * security settings. 8 * security settings.
michaelpg 2015/08/17 21:09:58 location settings
dschuyler 2015/08/17 21:48:17 I tried to reword this to be more clear.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <iron-animated-pages> 12 * <cr-settings-location-page prefs="{{prefs}}">
13 * <cr-settings-privacy-page prefs="{{prefs}}"> 13 * </cr-settings-location-page>
14 * </cr-settings-privacy-page>
15 * ... other pages ... 14 * ... other pages ...
16 * </iron-animated-pages>
17 * 15 *
18 * @group Chrome Settings Elements 16 * @group Chrome Settings Elements
19 * @element cr-settings-privacy-page 17 * @element cr-settings-location-page
20 */ 18 */
21 Polymer({ 19 Polymer({
22 is: 'cr-settings-privacy-page', 20 is: 'cr-settings-location-page',
23 21
24 properties: { 22 properties: {
25 /** 23 /**
26 * Preferences state. 24 * Preferences state.
27 */ 25 */
28 prefs: { 26 prefs: {
29 type: Object, 27 type: Object,
30 notify: true, 28 notify: true,
31 }, 29 },
32 30
33 /** 31 /**
34 * Route for the page. 32 * Route for the page.
35 */ 33 */
36 route: String, 34 route: String,
37 35
38 /** 36 /**
39 * Whether the page is a subpage. 37 * Whether the page is a subpage.
40 */ 38 */
41 subpage: { 39 subpage: {
42 type: Boolean, 40 type: Boolean,
43 value: false, 41 value: true,
44 readOnly: true, 42 readOnly: true,
45 }, 43 },
46 44
47 /** 45 /**
48 * ID of the page. 46 * ID of the page.
49 */ 47 */
50 PAGE_ID: { 48 PAGE_ID: {
51 type: String, 49 type: String,
52 value: 'privacy', 50 value: 'location',
53 readOnly: true, 51 readOnly: true,
54 }, 52 },
55 53
56 /** 54 /**
57 * Title for the page header and navigation menu. 55 * Title for the page header and navigation menu.
58 */ 56 */
59 pageTitle: { 57 pageTitle: {
60 type: String, 58 type: String,
61 value: function() { 59 value: '',
62 return loadTimeData.getString('privacyPageTitle');
63 },
64 }, 60 },
65 61
66 /** 62 /**
67 * Name of the 'iron-icon' to show. 63 * Name of the 'iron-icon' to show.
68 */ 64 */
69 icon: { 65 icon: {
70 type: String, 66 type: String,
71 value: 'lock', 67 value: 'communication:location-on',
72 readOnly: true, 68 readOnly: true,
73 }, 69 },
70
71 block: {
michaelpg 2015/08/17 21:09:58 Comment that these are arrays of URLs.
dschuyler 2015/08/17 21:48:18 Done.
72 type: Array,
73 },
74
75 allow: {
76 type: Array,
77 },
78 },
79
80 ready: function() {
81 this.block = [];
82 this.allow = [];
74 }, 83 },
75 }); 84 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698