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

Unified Diff: chrome/browser/resources/print_preview/data/app_state.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
Patch Set: Created 6 years, 3 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/print_preview/data/app_state.js
diff --git a/chrome/browser/resources/print_preview/data/app_state.js b/chrome/browser/resources/print_preview/data/app_state.js
index 230ad3ea607c21677fa82cac63b229fc9e5f67e1..626cd56e946c524f92b7c8cb7a4af3cc7a49031f 100644
--- a/chrome/browser/resources/print_preview/data/app_state.js
+++ b/chrome/browser/resources/print_preview/data/app_state.js
@@ -12,7 +12,7 @@ cr.define('print_preview', function() {
function AppState() {
/**
* Internal representation of application state.
- * @type {Object.<string: Object>}
+ * @type {Object.<string,print_preview.ValueType>}
Aleksey Shlyapnikov 2014/09/22 22:00:40 Space after comma.
Vitaly Pavlenko 2014/09/22 22:33:10 Done.
* @private
*/
this.state_ = {};
@@ -56,7 +56,10 @@ cr.define('print_preview', function() {
return this.state_[AppState.Field.SELECTED_DESTINATION_ACCOUNT];
},
- /** @return {?string} Origin of the selected destination. */
+ /**
+ * @return {?print_preview.Destination.Origin.<string>} Origin of the
+ * selected destination.
+ */
get selectedDestinationOrigin() {
return this.state_[AppState.Field.SELECTED_DESTINATION_ORIGIN];
},
@@ -87,7 +90,7 @@ cr.define('print_preview', function() {
/**
* @param {!print_preview.AppState.Field} field App state field to get.
- * @return {Object} Value of the app state field.
+ * @return {print_preview.ValueType} Value of the app state field.
*/
getField: function(field) {
if (field == AppState.Field.CUSTOM_MARGINS) {
@@ -139,7 +142,7 @@ cr.define('print_preview', function() {
/**
* Persists the given value for the given field.
* @param {!print_preview.AppState.Field} field Field to persist.
- * @param {Object} value Value of field to persist.
+ * @param {print_preview.ValueType} value Value of field to persist.
*/
persistField: function(field, value) {
if (!this.isInitialized_)

Powered by Google App Engine
This is Rietveld 408576698