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

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

Issue 990473002: Add initial implementation of date-time-settings MD settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing issues Created 5 years, 8 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-date-time-page' is the settings page containing date-time
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <core-animated-pages> 12 * <core-animated-pages>
13 * <cr-settings-a11y-page prefs="{{prefs}}"></cr-settings-a11y-page> 13 * <cr-settings-date-time-page prefs="{{prefs}}">
14 * </cr-settings-date-time-page>
14 * ... other pages ... 15 * ... other pages ...
15 * </core-animated-pages> 16 * </core-animated-pages>
16 * 17 *
17 * @group Chrome Settings Elements 18 * @group Chrome Settings Elements
18 * @element cr-settings-a11y-page 19 * @element cr-settings-date-time-page
19 */ 20 */
20 Polymer('cr-settings-a11y-page', { 21 Polymer('cr-settings-date-time-page', {
21 publish: { 22 publish: {
22 /** 23 /**
23 * Preferences state. 24 * Preferences state.
24 * 25 *
25 * @attribute prefs 26 * @attribute prefs
26 * @type CrSettingsPrefsElement 27 * @type CrSettingsPrefsElement
27 * @default null 28 * @default null
28 */ 29 */
29 prefs: null, 30 prefs: null,
30 31
31 /** 32 /**
32 * ID of the page. 33 * ID of the page.
33 * 34 *
34 * @attribute PAGE_ID 35 * @attribute PAGE_ID
35 * @const string 36 * @const string
36 * @default 'a11y' 37 * @default 'date-time'
37 */ 38 */
38 PAGE_ID: 'a11y', 39 PAGE_ID: 'date-time',
39 40
40 /** 41 /**
41 * Title for the page header and navigation menu. 42 * Title for the page header and navigation menu.
42 * 43 *
43 * @attribute pageTitle 44 * @attribute pageTitle
44 * @type string 45 * @type string
46 * @default 'Date & Time'
45 */ 47 */
46 pageTitle: loadTimeData.getString('a11yPageTitle'), 48 pageTitle: 'Date & Time',
47 49
48 /** 50 /**
49 * Name of the 'core-icon' to show. 51 * Name of the 'core-icon' to show.
50 * 52 *
51 * @attribute icon 53 * @attribute icon
52 * @type string 54 * @type string
53 * @default 'accessibility' 55 * @default 'device:access-time'
54 */ 56 */
55 icon: 'accessibility', 57 icon: 'device:access-time',
56 }, 58 },
57 }); 59 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698