Commit 8c2c4805 authored by Michael Checo's avatar Michael Checo Committed by Commit Bot

Diagnostics: Add missing type annotations

Bug: 1125150
Test: browser_tests --gtest_Filter=DiagnosticsApp*
Change-Id: Ia61f672578543693b0107f65a91d1be033e2d081
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2544752Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Michael Checo <michaelcheco@google.com>
Cr-Commit-Position: refs/heads/master@{#828751}
parent a0c6e969
...@@ -38,6 +38,7 @@ Polymer({ ...@@ -38,6 +38,7 @@ Polymer({
cpuUsageObserverReceiver_: null, cpuUsageObserverReceiver_: null,
properties: { properties: {
/** @private {!Array<!RoutineName>} */
routines_: { routines_: {
type: Array, type: Array,
value: () => { value: () => {
......
...@@ -18,10 +18,12 @@ Polymer({ ...@@ -18,10 +18,12 @@ Polymer({
_template: html`{__html_template__}`, _template: html`{__html_template__}`,
properties: { properties: {
/** @type {string} */
header: { header: {
type: String, type: String,
}, },
/** @type {string} */
value: { value: {
type: String, type: String,
value: '', value: '',
......
...@@ -35,7 +35,7 @@ Polymer({ ...@@ -35,7 +35,7 @@ Polymer({
systemDataProvider_: null, systemDataProvider_: null,
properties: { properties: {
/** @private */ /** @private {boolean} */
showBatteryStatusCard_: { showBatteryStatusCard_: {
type: Boolean, type: Boolean,
value: false, value: false,
......
...@@ -23,20 +23,24 @@ Polymer({ ...@@ -23,20 +23,24 @@ Polymer({
_template: html`{__html_template__}`, _template: html`{__html_template__}`,
properties: { properties: {
/** @type {string} */
header: { header: {
type: String, type: String,
}, },
/** @type {string} */
headerIcon: { headerIcon: {
type: String, type: String,
value: '', value: '',
}, },
/** @type {number} */
value: { value: {
type: Number, type: Number,
value: 0, value: 0,
}, },
/** @type {number} */
max: { max: {
type: Number, type: Number,
value: 100, value: 100,
......
...@@ -36,7 +36,7 @@ Polymer({ ...@@ -36,7 +36,7 @@ Polymer({
*/ */
yAxisScaleFn_: null, yAxisScaleFn_: null,
/** @private {!Array<Object>} */ /** @private {!Array<!Object>} */
data_: [], data_: [],
/** /**
...@@ -46,54 +46,56 @@ Polymer({ ...@@ -46,54 +46,56 @@ Polymer({
dataLastUpdated_: 0, dataLastUpdated_: 0,
properties: { properties: {
/** @type {number} */
user: { user: {
type: Number, type: Number,
value: 0, value: 0,
}, },
/** @type {number} */
system: { system: {
type: Number, type: Number,
value: 0, value: 0,
}, },
/** @private */ /** @private {number} */
numDataPoints_: { numDataPoints_: {
type: Number, type: Number,
value: 50, value: 50,
}, },
/** @private */ /** @private {number} */
refreshInterval_: { refreshInterval_: {
type: Number, type: Number,
value: 200, // in milliseconds. value: 200, // in milliseconds.
}, },
/** @private */ /** @private {number} */
width_: { width_: {
type: Number, type: Number,
value: 350, value: 350,
}, },
/** @private */ /** @private {number} */
height_: { height_: {
type: Number, type: Number,
value: 100, value: 100,
}, },
/** @private */ /** @private {!Object} */
margin_: { margin_: {
type: Object, type: Object,
value: {top: 10, right: 20, bottom: 10, left: 30}, value: {top: 10, right: 20, bottom: 10, left: 30},
}, },
/** @private */ /** @private {number} */
graphWidth_: { graphWidth_: {
readOnly: true, readOnly: true,
type: Number, type: Number,
computed: 'getGraphDimension_(width_, margin_.left, margin_.right)' computed: 'getGraphDimension_(width_, margin_.left, margin_.right)'
}, },
/** @private */ /** @private {number} */
graphHeight_: { graphHeight_: {
readOnly: true, readOnly: true,
type: Number, type: Number,
......
...@@ -64,20 +64,20 @@ Polymer({ ...@@ -64,20 +64,20 @@ Polymer({
/** /**
* Name of currently running test * Name of currently running test
* @private * @private {string}
*/ */
currentTestName_: { currentTestName_: {
type: String, type: String,
value: '', value: '',
}, },
/** @private */ /** @private {boolean} */
isRunTestsDisabled_: { isRunTestsDisabled_: {
type: Boolean, type: Boolean,
value: false, value: false,
}, },
/** @private */ /** @private {boolean} */
isReportListHidden_: { isReportListHidden_: {
type: Boolean, type: Boolean,
value: true, value: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment