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

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

Issue 1159623003: Add skeleton UI for sync page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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-a11y-page' is the settings page containing accessibility 7 * 'cr-settings-sync-page' is the settings page containing sync settings.
8 * settings.
9 * 8 *
10 * Example: 9 * Example:
11 * 10 *
12 * <iron-animated-pages> 11 * <iron-animated-pages>
13 * <cr-settings-a11y-page prefs="{{prefs}}"></cr-settings-a11y-page> 12 * <cr-settings-sync-page></cr-settings-sync-page>
14 * ... other pages ... 13 * ... other pages ...
15 * </iron-animated-pages> 14 * </iron-animated-pages>
16 * 15 *
17 * @group Chrome Settings Elements 16 * @group Chrome Settings Elements
18 * @element cr-settings-a11y-page 17 * @element cr-settings-sync-page
19 */ 18 */
20 Polymer({ 19 Polymer({
21 is: 'cr-settings-a11y-page', 20 is: 'cr-settings-sync-page',
22 21
23 properties: { 22 properties: {
24 /** 23 /**
25 * Preferences state. 24 * Route for the page.
26 */ 25 */
27 prefs: { 26 route: {
28 type: Object, 27 type: String,
29 notify: true, 28 value: ''
30 }, 29 },
31 30
32 /** 31 /**
33 * Route for the page.
34 */
35 route: String,
36
37 /**
38 * Whether the page is a subpage. 32 * Whether the page is a subpage.
33 * TODO(khorimoto): Make this a subpage once the "People" full page has
34 * landed, since this is supposed to be that page's subpage.
39 */ 35 */
40 subpage: { 36 subpage: {
41 type: Boolean, 37 type: Boolean,
42 value: false, 38 value: false,
43 readOnly: true, 39 readOnly: true,
44 }, 40 },
45 41
46 /** 42 /**
47 * ID of the page. 43 * ID of the page.
48 */ 44 */
49 PAGE_ID: { 45 PAGE_ID: {
50 type: String, 46 type: String,
51 value: 'a11y', 47 value: 'sync',
52 readOnly: true, 48 readOnly: true,
53 }, 49 },
54 50
55 /** 51 /**
56 * Title for the page header and navigation menu. 52 * Title for the page header and navigation menu.
57 */ 53 */
58 pageTitle: { 54 pageTitle: {
59 type: String, 55 type: String,
60 value: function() { return loadTimeData.getString('a11yPageTitle'); }, 56 value: function() { return loadTimeData.getString('syncPageTitle'); },
61 }, 57 },
62 58
63 /** 59 /**
64 * Name of the 'iron-icon' to show. 60 * Name of the 'iron-icon' to show.
61 * TODO(khorimoto): Find the correct icon to show.
65 */ 62 */
66 icon: { 63 icon: {
67 type: String, 64 type: String,
68 value: 'accessibility', 65 value: 'accessibility',
69 readOnly: true, 66 readOnly: true,
70 }, 67 },
71 }, 68 },
72 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698