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

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: fixed accidental change in last patch 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-certificate-manager-page' is the settings page containing SSL 7 * 'cr-settings-location-page' is the settings page for location access.
8 * certificate settings.
9 * 8 *
10 * Example: 9 * Example:
11 * 10 *
12 * <iron-animated-pages> 11 * <cr-settings-location-page prefs="{{prefs}}">
13 * <cr-settings-certificate-manager-page prefs="{{prefs}}"> 12 * </cr-settings-location-page>
14 * </cr-settings-certificate-manager-page>
15 * ... other pages ... 13 * ... other pages ...
16 * </iron-animated-pages>
17 * 14 *
18 * @group Chrome Settings Elements 15 * @group Chrome Settings Elements
19 * @element cr-settings-certificate-manager-page 16 * @element cr-settings-location-page
20 */ 17 */
21 Polymer({ 18 Polymer({
22 is: 'cr-settings-certificate-manager-page', 19 is: 'cr-settings-location-page',
23 20
24 properties: { 21 properties: {
25 /** 22 /**
26 * Preferences state. 23 * Preferences state.
27 * TODO(dschuyler) check whether this is necessary.
28 */ 24 */
29 prefs: { 25 prefs: {
30 type: Object, 26 type: Object,
31 notify: true, 27 notify: true,
32 }, 28 },
33 29
34 /** 30 /**
35 * Route for the page. 31 * Route for the page.
36 */ 32 */
37 route: String, 33 route: String,
38 34
39 /** 35 /**
40 * Whether the page is a subpage. 36 * Whether the page is a subpage.
41 */ 37 */
42 subpage: { 38 subpage: {
43 type: Boolean, 39 type: Boolean,
44 value: true, 40 value: true,
45 readOnly: true, 41 readOnly: true,
46 }, 42 },
47 43
48 /** 44 /**
49 * ID of the page. 45 * ID of the page.
50 */ 46 */
51 PAGE_ID: { 47 PAGE_ID: {
52 type: String, 48 type: String,
53 value: 'certificate-manager', 49 value: 'location',
54 readOnly: true, 50 readOnly: true,
55 }, 51 },
56 52
57 /** 53 /**
58 * Title for the page header and navigation menu. 54 * Title for the page header and navigation menu.
59 */ 55 */
60 pageTitle: { 56 pageTitle: {
61 type: String, 57 type: String,
62 value: function() { 58 value: '',
63 return loadTimeData.getString('certificateManagerPageTitle');
64 },
65 }, 59 },
66 60
67 /** 61 /**
68 * Name of the 'iron-icon' to show. 62 * Name of the 'iron-icon' to show.
69 */ 63 */
70 icon: { 64 icon: {
71 type: String, 65 type: String,
72 value: 'lock', 66 value: 'communication:location-on',
73 readOnly: true, 67 readOnly: true,
74 }, 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);
75 }, 93 },
76 }); 94 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/location_page/location_page.html ('k') | chrome/browser/resources/settings/routes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698