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

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

Issue 2759223002: Revert of DevTools: launch What's New from experiments (Closed)
Patch Set: Created 3 years, 9 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;
36 if (lastSeenVersion >= latestVersion) 38 if (lastSeenVersion >= latestVersion)
37 return; 39 return;
38 Help.releaseNoteVersionSetting().set(latestVersion); 40 Help.releaseNoteVersionSetting().set(latestVersion);
39 UI.viewManager.showView(Help._releaseNoteViewId, true); 41 UI.viewManager.showView(Help._releaseNoteViewId, true);
40 }; 42 };
41 43
42 /** 44 /**
43 * @return {number} 45 * @return {number}
44 */ 46 */
45 Help.browserVersion = function() { 47 Help.browserVersion = function() {
(...skipping 19 matching lines...) Expand all
65 Help.ReleaseNoteHighlightContent; 67 Help.ReleaseNoteHighlightContent;
66 68
67 /** @typedef {!{contents: !Array<!Help.ReleaseNoteHighlightContent>, featured: ( boolean | undefined)}} */ 69 /** @typedef {!{contents: !Array<!Help.ReleaseNoteHighlightContent>, featured: ( boolean | undefined)}} */
68 Help.ReleaseNoteHighlight; 70 Help.ReleaseNoteHighlight;
69 71
70 /** 72 /**
71 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>, 73 * @typedef {!{version: number, highlights: !Array<!Help.ReleaseNoteHighlight>,
72 * link: string, image: !Help.ReleaseNoteImage}} 74 * link: string, image: !Help.ReleaseNoteImage}}
73 */ 75 */
74 Help.ReleaseNote; 76 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