</then>
<else>
<message name="IDS_SETTINGS_ABOUT_PROGRAM" desc="Menu title for the About Chromium page.">
- About Chromium
+ About Next Browser <!-- SAMSUNG_NEXT_BROWSER -->
</message>
<message name="IDS_SETTINGS_GET_HELP_USING_CHROME" desc="Text of the button which takes the user to the Chrome help page.">
Get help with Chromium
return 'settings-about-page';
}
+ constructor(){
+ super();
+ this.updateNextBrowserVersion();
+ }
+
static get template() {
return getTemplate();
}
}
return this.showUpdateStatus_;
}
+
+ public updateNextBrowserVersion(){
+ const promiseForNextBrowserVersion = this.aboutBrowserProxy_.getNextBrowserVersion();
+ promiseForNextBrowserVersion.then((result:any) => {
+ this.setNextBrowserVersion(result.Value);
+ });
+ }
// </if>
+
+ private setNextBrowserVersion(value : string) : void{
+ let node = document.querySelector('settings-ui')?.shadowRoot?.childNodes[12] as HTMLElement;
+ if(node && node.querySelector)
+ {
+ let node2 = node.querySelector('settings-main')?.shadowRoot?.querySelector('SETTINGS-ABOUT-PAGE');
+ if(node2 && node2.shadowRoot)
+ {
+ node2 = node2?.shadowRoot?.childNodes[9] as HTMLElement;
+ if(node2)
+ {
+ let node3 = node2.querySelector('.secondary') as HTMLDivElement;
+ let chromiumVer = node3?.innerText;
+ let verHTML = "Next Browser Version : " + value + "\n" + chromiumVer;
+ node3.innerText = verHTML;
+ }
+ }
+
+ }
+ }
}
declare global {
'settings-about-page': SettingsAboutPageElement;
}
}
-
customElements.define(SettingsAboutPageElement.is, SettingsAboutPageElement);
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import {sendWithPromise} from 'chrome://resources/js/cr.js';
+
/**
* @fileoverview A helper object used from the "About" section to interact with
* the browser.
* the ones defined at |AboutHandler::UpdateStatusToString|.
* @enum {string}
*/
+
+export interface QueryResult {
+ info: string;
+ value: string;
+}
+
export enum UpdateStatus {
CHECKING = 'checking',
UPDATING = 'updating',
*/
promoteUpdater(): void;
// </if>
+
+ getNextBrowserVersion() : Promise<QueryResult>;
}
export class AboutPageBrowserProxyImpl implements AboutPageBrowserProxy {
}
// </if>
+ getNextBrowserVersion(){
+ return sendWithPromise('getNextBrowserVersion');
+ }
+
static getInstance(): AboutPageBrowserProxy {
return instance || (instance = new AboutPageBrowserProxyImpl());
}