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

Side by Side Diff: chrome/browser/resources/settings/about_page/about_page_browser_proxy.js

Issue 1975003002: MD Settings: About page, implementing detailed build info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments. Created 4 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @fileoverview A helper object used from the "About" section to interact with 6 * @fileoverview A helper object used from the "About" section to interact with
7 * the browser. 7 * the browser.
8 */ 8 */
9 9
10 <if expr="chromeos"> 10 <if expr="chromeos">
11 /** 11 /**
12 * @typedef {{ 12 * @typedef {{
13 * text: string, 13 * text: string,
14 * url: string, 14 * url: string,
15 * }} 15 * }}
16 */ 16 */
17 var RegulatoryInfo; 17 var RegulatoryInfo;
18 18
19 /** 19 /**
20 * @typedef {{ 20 * @typedef {{
21 * arcVersion: string, 21 * arcVersion: string,
22 * osFirmware: string, 22 * osFirmware: string,
23 * osVersion: string, 23 * osVersion: string,
24 * }} 24 * }}
25 */ 25 */
26 var VersionInfo; 26 var VersionInfo;
27
28 /**
29 * Enumeration of all possible browser channels.
30 * @enum {string}
31 */
32 var BrowserChannel = {
33 BETA: 'beta-channel',
34 DEV: 'dev-channel',
35 STABLE: 'stable-channel',
36 };
27 </if> 37 </if>
28 38
29 cr.define('settings', function() { 39 cr.define('settings', function() {
30 /**
31 * Enumeration of all possible browser channels.
32 * @enum {string}
33 */
34 var BrowserChannel = {
35 BETA: 'beta-channel',
36 DEV: 'dev-channel',
37 STABLE: 'stable-channel',
38 };
39
40 /** @interface */ 40 /** @interface */
41 function AboutPageBrowserProxy() {} 41 function AboutPageBrowserProxy() {}
42 42
43 AboutPageBrowserProxy.prototype = { 43 AboutPageBrowserProxy.prototype = {
44 /** 44 /**
45 * Called once the page is ready. It results in one or more 45 * Called once the page is ready. It results in one or more
46 * 'update-status-changed' WebUI events. 46 * 'update-status-changed' WebUI events.
47 */ 47 */
48 refreshUpdateStatus: function() {}, 48 refreshUpdateStatus: function() {},
49 49
(...skipping 17 matching lines...) Expand all
67 * Checks for available update and applies if it exists. 67 * Checks for available update and applies if it exists.
68 */ 68 */
69 requestUpdate: function() {}, 69 requestUpdate: function() {},
70 70
71 /** 71 /**
72 * @param {!BrowserChannel} channel 72 * @param {!BrowserChannel} channel
73 * @param {boolean} isPowerwashAllowed 73 * @param {boolean} isPowerwashAllowed
74 */ 74 */
75 setChannel: function(channel, isPowerwashAllowed) {}, 75 setChannel: function(channel, isPowerwashAllowed) {},
76 76
77 /** @return {!Promise<string>} */ 77 /** @return {!Promise<!BrowserChannel>} */
78 getCurrentChannel: function() {}, 78 getCurrentChannel: function() {},
79 79
80 /** @return {!Promise<string>} */ 80 /** @return {!Promise<!BrowserChannel>} */
81 getTargetChannel: function() {}, 81 getTargetChannel: function() {},
82 82
83 /** @return {!Promise<!VersionInfo>} */ 83 /** @return {!Promise<!VersionInfo>} */
84 getVersionInfo: function() {}, 84 getVersionInfo: function() {},
85 85
86 /** @return {!Promise<?RegulatoryInfo>} */ 86 /** @return {!Promise<?RegulatoryInfo>} */
87 getRegulatoryInfo: function() {}, 87 getRegulatoryInfo: function() {},
88 </if> 88 </if>
89 }; 89 };
90 90
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return cr.sendWithPromise('getRegulatoryInfo'); 149 return cr.sendWithPromise('getRegulatoryInfo');
150 } 150 }
151 </if> 151 </if>
152 }; 152 };
153 153
154 return { 154 return {
155 AboutPageBrowserProxy: AboutPageBrowserProxy, 155 AboutPageBrowserProxy: AboutPageBrowserProxy,
156 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, 156 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl,
157 }; 157 };
158 }); 158 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698