| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 * @return {!Help.ReleaseNote} | 6 * @return {!Help.ReleaseNote} |
| 7 */ | 7 */ |
| 8 Help.latestReleaseNote = function() { | 8 Help.latestReleaseNote = function() { |
| 9 if (!Help._latestReleaseNote) { | 9 if (!Help._latestReleaseNote) { |
| 10 /** @type {!Help.ReleaseNote} */ | 10 /** @type {!Help.ReleaseNote} */ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 return Help._browserVersion; | 52 return Help._browserVersion; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * @const | 56 * @const |
| 57 * @type {string} | 57 * @type {string} |
| 58 */ | 58 */ |
| 59 Help._releaseNoteViewId = 'release-note'; | 59 Help._releaseNoteViewId = 'release-note'; |
| 60 | 60 |
| 61 /** @typedef {!{src: string}} */ | 61 /** @typedef {!{title: string, subtitle: string, link: string}} */ |
| 62 Help.ReleaseNoteImage; | |
| 63 | |
| 64 /** @typedef {!{text: string, link: (string | undefined)}} */ | |
| 65 Help.ReleaseNoteHighlightContent; | |
| 66 | |
| 67 /** @typedef {!{contents: !Array<!Help.ReleaseNoteHighlightContent>, featured: (
boolean | undefined)}} */ | |
| 68 Help.ReleaseNoteHighlight; | 62 Help.ReleaseNoteHighlight; |
| 69 | 63 |
| 70 /** | 64 /** |
| 71 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>, | 65 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>, |
| 72 * link: string, image: !Help.ReleaseNoteImage}} | 66 * link: string}} |
| 73 */ | 67 */ |
| 74 Help.ReleaseNote; | 68 Help.ReleaseNote; |
| OLD | NEW |