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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/help/Help.js

Issue 2749423003: DevTools: launch What's New from experiments (Closed)
Patch Set: patched Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/help/module.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 26
27 Help.showReleaseNoteIfNeeded = function() { 27 Help.showReleaseNoteIfNeeded = function() {
28 Help._showReleaseNoteIfNeeded(Help.releaseNoteVersionSetting().get(), Help.lat estReleaseNote().version); 28 Help._showReleaseNoteIfNeeded(Help.releaseNoteVersionSetting().get(), Help.lat estReleaseNote().version);
29 }; 29 };
30 30
31 /** 31 /**
32 * @param {number} lastSeenVersion 32 * @param {number} lastSeenVersion
33 * @param {number} latestVersion 33 * @param {number} latestVersion
34 */ 34 */
35 Help._showReleaseNoteIfNeeded = function(lastSeenVersion, latestVersion) { 35 Help._showReleaseNoteIfNeeded = function(lastSeenVersion, latestVersion) {
36 if (!Runtime.experiments.isEnabled('releaseNote'))
37 return;
38 if (lastSeenVersion >= latestVersion) 36 if (lastSeenVersion >= latestVersion)
39 return; 37 return;
40 Help.releaseNoteVersionSetting().set(latestVersion); 38 Help.releaseNoteVersionSetting().set(latestVersion);
41 UI.viewManager.showView(Help._releaseNoteViewId, true); 39 UI.viewManager.showView(Help._releaseNoteViewId, true);
42 }; 40 };
43 41
44 /** 42 /**
45 * @return {number} 43 * @return {number}
46 */ 44 */
47 Help.browserVersion = function() { 45 Help.browserVersion = function() {
(...skipping 13 matching lines...) Expand all
61 Help._releaseNoteViewId = 'release-note'; 59 Help._releaseNoteViewId = 'release-note';
62 60
63 /** @typedef {!{title: string, subtitle: string, link: string}} */ 61 /** @typedef {!{title: string, subtitle: string, link: string}} */
64 Help.ReleaseNoteHighlight; 62 Help.ReleaseNoteHighlight;
65 63
66 /** 64 /**
67 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>, 65 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>,
68 * link: string}} 66 * link: string}}
69 */ 67 */
70 Help.ReleaseNote; 68 Help.ReleaseNote;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/help/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698