summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-09-18 14:34:04 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-10-04 11:15:27 +0000
commite6430e577f105ad8813c92e75c54660c4985026e (patch)
tree88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
parent53d399fe6415a96ea6986ec0d402a9c07da72453 (diff)
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js')
-rw-r--r--chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js117
1 files changed, 60 insertions, 57 deletions
diff --git a/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js b/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
index 892ceca55f2..beb4b67e2ec 100644
--- a/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
+++ b/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
@@ -100,9 +100,12 @@ cr.define('settings', function() {
*/
function browserChannelToI18nId(channel) {
switch (channel) {
- case BrowserChannel.BETA: return 'aboutChannelBeta';
- case BrowserChannel.DEV: return 'aboutChannelDev';
- case BrowserChannel.STABLE: return 'aboutChannelStable';
+ case BrowserChannel.BETA:
+ return 'aboutChannelBeta';
+ case BrowserChannel.DEV:
+ return 'aboutChannelDev';
+ case BrowserChannel.STABLE:
+ return 'aboutChannelStable';
}
assertNotReached();
@@ -127,35 +130,34 @@ cr.define('settings', function() {
}
/** @interface */
- function AboutPageBrowserProxy() {}
-
- AboutPageBrowserProxy.prototype = {
+ class AboutPageBrowserProxy {
/**
* Indicates to the browser that the page is ready.
*/
- pageReady: function() {},
+ pageReady() {}
/**
* Request update status from the browser. It results in one or more
* 'update-status-changed' WebUI events.
*/
- refreshUpdateStatus: function() {},
+ refreshUpdateStatus() {}
/** Opens the help page. */
- openHelpPage: function() {},
+ openHelpPage() {}
-// <if expr="_google_chrome">
+ // <if expr="_google_chrome">
/**
* Opens the feedback dialog.
*/
- openFeedbackDialog: function() {},
-// </if>
+ openFeedbackDialog() {}
-// <if expr="chromeos">
+ // </if>
+
+ // <if expr="chromeos">
/**
* Checks for available update and applies if it exists.
*/
- requestUpdate: function() {},
+ requestUpdate() {}
/**
* Checks for the update with specified version and size and applies over
@@ -167,101 +169,102 @@ cr.define('settings', function() {
* @param {string} target_version
* @param {string} target_size
*/
- requestUpdateOverCellular: function(target_version, target_size) {},
+ requestUpdateOverCellular(target_version, target_size) {}
/**
* @param {!BrowserChannel} channel
* @param {boolean} isPowerwashAllowed
*/
- setChannel: function(channel, isPowerwashAllowed) {},
+ setChannel(channel, isPowerwashAllowed) {}
/** @return {!Promise<!ChannelInfo>} */
- getChannelInfo: function() {},
+ getChannelInfo() {}
/** @return {!Promise<!VersionInfo>} */
- getVersionInfo: function() {},
+ getVersionInfo() {}
/** @return {!Promise<?RegulatoryInfo>} */
- getRegulatoryInfo: function() {},
-// </if>
+ getRegulatoryInfo() {}
-// <if expr="_google_chrome and is_macosx">
+ // </if>
+
+ // <if expr="_google_chrome and is_macosx">
/**
* Triggers setting up auto-updates for all users.
*/
- promoteUpdater: function() {},
-// </if>
- };
+ promoteUpdater() {}
+ // </if>
+ }
/**
* @implements {settings.AboutPageBrowserProxy}
- * @constructor
*/
- function AboutPageBrowserProxyImpl() {}
- cr.addSingletonGetter(AboutPageBrowserProxyImpl);
-
- AboutPageBrowserProxyImpl.prototype = {
+ class AboutPageBrowserProxyImpl {
/** @override */
- pageReady: function() {
+ pageReady() {
chrome.send('aboutPageReady');
- },
+ }
/** @override */
- refreshUpdateStatus: function() {
+ refreshUpdateStatus() {
chrome.send('refreshUpdateStatus');
- },
+ }
-// <if expr="_google_chrome and is_macosx">
+ // <if expr="_google_chrome and is_macosx">
/** @override */
- promoteUpdater: function() {
+ promoteUpdater() {
chrome.send('promoteUpdater');
- },
-// </if>
+ }
+
+ // </if>
/** @override */
- openHelpPage: function() {
+ openHelpPage() {
chrome.send('openHelpPage');
- },
+ }
-// <if expr="_google_chrome">
+ // <if expr="_google_chrome">
/** @override */
- openFeedbackDialog: function() {
+ openFeedbackDialog() {
chrome.send('openFeedbackDialog');
- },
-// </if>
+ }
-// <if expr="chromeos">
+ // </if>
+
+ // <if expr="chromeos">
/** @override */
- requestUpdate: function() {
+ requestUpdate() {
chrome.send('requestUpdate');
- },
+ }
/** @override */
- requestUpdateOverCellular: function(target_version, target_size) {
+ requestUpdateOverCellular(target_version, target_size) {
chrome.send('requestUpdateOverCellular', [target_version, target_size]);
- },
+ }
/** @override */
- setChannel: function(channel, isPowerwashAllowed) {
+ setChannel(channel, isPowerwashAllowed) {
chrome.send('setChannel', [channel, isPowerwashAllowed]);
- },
+ }
/** @override */
- getChannelInfo: function() {
+ getChannelInfo() {
return cr.sendWithPromise('getChannelInfo');
- },
+ }
/** @override */
- getVersionInfo: function() {
+ getVersionInfo() {
return cr.sendWithPromise('getVersionInfo');
- },
+ }
/** @override */
- getRegulatoryInfo: function() {
+ getRegulatoryInfo() {
return cr.sendWithPromise('getRegulatoryInfo');
}
-// </if>
- };
+ // </if>
+ }
+
+ cr.addSingletonGetter(AboutPageBrowserProxyImpl);
return {
AboutPageBrowserProxy: AboutPageBrowserProxy,