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

Unified Diff: chrome/browser/resources/settings/date_time_page/date_time_page.js

Issue 1137063002: Convert date_time_page to 0.8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Escape ampersand in XML file. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/date_time_page/date_time_page.js
diff --git a/chrome/browser/resources/settings/date_time_page/date_time_page.js b/chrome/browser/resources/settings/date_time_page/date_time_page.js
index eda4b730f2d4ae7652e4cf71c873373bddf456d0..2618a8f5de72e13f6e103409fe45cf76c08c3a2d 100644
--- a/chrome/browser/resources/settings/date_time_page/date_time_page.js
+++ b/chrome/browser/resources/settings/date_time_page/date_time_page.js
@@ -18,60 +18,56 @@
* @group Chrome Settings Elements
* @element cr-settings-date-time-page
*/
-Polymer('cr-settings-date-time-page', {
- publish: {
+Polymer({
+ is: 'cr-settings-date-time-page',
+
+ properties: {
/**
* Preferences state.
- *
- * @attribute prefs
- * @type CrSettingsPrefsElement
- * @default null
+ * @type {?CrSettingsPrefsElement}
*/
- prefs: null,
+ prefs: {
Jeremy Klein 2015/05/11 21:20:48 This may need notify: true.
Kyle Horimoto 2015/05/11 21:34:58 Done.
+ type: Object
+ },
/**
* Route for the page.
- *
- * @attribute route
- * @type string
- * @default ''
*/
- route: '',
+ route: {
+ type: String,
+ value: ''
+ },
/**
* Whether the page is a subpage.
- *
- * @attribute subpage
- * @type boolean
- * @default false
*/
- subpage: false,
+ subpage: {
+ type: Boolean,
+ value: false
+ }
/**
* ID of the page.
- *
- * @attribute PAGE_ID
- * @const string
- * @default 'date-time'
*/
- PAGE_ID: 'date-time',
+ PAGE_ID: {
+ type: String,
+ value: 'date-time'
+ },
/**
* Title for the page header and navigation menu.
- *
- * @attribute pageTitle
- * @type string
- * @default 'Date & Time'
*/
- pageTitle: 'Date & Time',
+ pageTitle: {
+ type: String,
+ value: function() { return loadTimeData.getString('dateTimePageTitle'); }
+ },
/**
* Name of the 'core-icon' to show.
- *
- * @attribute icon
- * @type string
- * @default 'device:access-time'
*/
- icon: 'device:access-time',
+ icon: {
+ type: String,
+ value: 'device:access-time'
+ },
},
});

Powered by Google App Engine
This is Rietveld 408576698