// mojom-webui/chrome/browser/new_tab_page/modules/drive/drive.mojom-webui.js is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {mojo} from '//resources/mojo/mojo/public/js/bindings.js'; import { Url as url_mojom_Url, UrlSpec as url_mojom_UrlSpec } from 'chrome://resources/mojo/url/mojom/url.mojom-webui.js'; /** * @implements {mojo.internal.interfaceSupport.PendingReceiver} */ export class DriveHandlerPendingReceiver { /** * @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle */ constructor(handle) { /** @public {!mojo.internal.interfaceSupport.Endpoint} */ this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle); } /** @param {string=} scope */ bindInBrowser(scope = 'context') { mojo.internal.interfaceSupport.bind( this.handle, 'drive.mojom.DriveHandler', scope); } } /** @interface */ export class DriveHandlerInterface { /** * @return {!Promise<{ files: !Array<!File>, * }>} */ getFiles() {} /** */ dismissModule() {} /** */ restoreModule() {} } /** * @implements { DriveHandlerInterface } */ export class DriveHandlerRemote { /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ constructor(handle = undefined) { /** * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!DriveHandlerPendingReceiver>} */ this.proxy = new mojo.internal.interfaceSupport.InterfaceRemoteBase( DriveHandlerPendingReceiver, handle); /** * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!DriveHandlerPendingReceiver>} */ this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); } /** * @return {!Promise<{ files: !Array<!File>, * }>} */ getFiles() { return this.proxy.sendMessage( 1360105483, DriveHandler_GetFiles_ParamsSpec.$, DriveHandler_GetFiles_ResponseParamsSpec.$, [ ]); } /** */ dismissModule() { this.proxy.sendMessage( 1238778392, DriveHandler_DismissModule_ParamsSpec.$, null, [ ]); } /** */ restoreModule() { this.proxy.sendMessage( 444640207, DriveHandler_RestoreModule_ParamsSpec.$, null, [ ]); } } /** * An object which receives request messages for the DriveHandler * mojom interface. Must be constructed over an object which implements that * interface. */ export class DriveHandlerReceiver { /** * @param {!DriveHandlerInterface } impl */ constructor(impl) { /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!DriveHandlerRemote>} */ this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( DriveHandlerRemote); /** * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DriveHandlerRemote>} */ this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); this.helper_internal_.registerHandler( 1360105483, DriveHandler_GetFiles_ParamsSpec.$, DriveHandler_GetFiles_ResponseParamsSpec.$, impl.getFiles.bind(impl)); this.helper_internal_.registerHandler( 1238778392, DriveHandler_DismissModule_ParamsSpec.$, null, impl.dismissModule.bind(impl)); this.helper_internal_.registerHandler( 444640207, DriveHandler_RestoreModule_ParamsSpec.$, null, impl.restoreModule.bind(impl)); /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); } } export class DriveHandler { /** * @return {!string} */ static get $interfaceName() { return "drive.mojom.DriveHandler"; } /** * Returns a remote for this interface which sends messages to the browser. * The browser must have an interface request binder registered for this * interface and accessible to the calling document's frame. * * @return {!DriveHandlerRemote} */ static getRemote() { let remote = new DriveHandlerRemote; remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); return remote; } } /** * An object which receives request messages for the DriveHandler * mojom interface and dispatches them as callbacks. One callback receiver exists * on this object for each message defined in the mojom interface, and each * receiver can have any number of listeners added to it. */ export class DriveHandlerCallbackRouter { constructor() { this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( DriveHandlerRemote); /** * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!DriveHandlerRemote>} */ this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; /** * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} */ this.getFiles = new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( this.router_); this.helper_internal_.registerHandler( 1360105483, DriveHandler_GetFiles_ParamsSpec.$, DriveHandler_GetFiles_ResponseParamsSpec.$, this.getFiles.createReceiverHandler(true /* expectsResponse */)); /** * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} */ this.dismissModule = new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( this.router_); this.helper_internal_.registerHandler( 1238778392, DriveHandler_DismissModule_ParamsSpec.$, null, this.dismissModule.createReceiverHandler(false /* expectsResponse */)); /** * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} */ this.restoreModule = new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( this.router_); this.helper_internal_.registerHandler( 444640207, DriveHandler_RestoreModule_ParamsSpec.$, null, this.restoreModule.createReceiverHandler(false /* expectsResponse */)); /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); } /** * @param {number} id An ID returned by a prior call to addListener. * @return {boolean} True iff the identified listener was found and removed. */ removeListener(id) { return this.router_.removeListener(id); } } /** * @const { {$:!mojo.internal.MojomType}} */ export const FileSpec = { $: /** @type {!mojo.internal.MojomType} */ ({}) }; /** * @const { {$:!mojo.internal.MojomType}} */ export const DriveHandler_GetFiles_ParamsSpec = { $: /** @type {!mojo.internal.MojomType} */ ({}) }; /** * @const { {$:!mojo.internal.MojomType}} */ export const DriveHandler_GetFiles_ResponseParamsSpec = { $: /** @type {!mojo.internal.MojomType} */ ({}) }; /** * @const { {$:!mojo.internal.MojomType}} */ export const DriveHandler_DismissModule_ParamsSpec = { $: /** @type {!mojo.internal.MojomType} */ ({}) }; /** * @const { {$:!mojo.internal.MojomType}} */ export const DriveHandler_RestoreModule_ParamsSpec = { $: /** @type {!mojo.internal.MojomType} */ ({}) }; mojo.internal.Struct( FileSpec.$, 'File', [ mojo.internal.StructField( 'id', 0, 0, mojo.internal.String, null, false /* nullable */, 0), mojo.internal.StructField( 'justificationText', 8, 0, mojo.internal.String, null, false /* nullable */, 0), mojo.internal.StructField( 'mimeType', 16, 0, mojo.internal.String, null, false /* nullable */, 0), mojo.internal.StructField( 'title', 24, 0, mojo.internal.String, null, false /* nullable */, 0), mojo.internal.StructField( 'itemUrl', 32, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0), ], [[0, 48],]); /** * @record */ export class File { constructor() { /** @type { !string } */ this.id; /** @type { !string } */ this.justificationText; /** @type { !string } */ this.mimeType; /** @type { !string } */ this.title; /** @type { !url_mojom_Url } */ this.itemUrl; } } mojo.internal.Struct( DriveHandler_GetFiles_ParamsSpec.$, 'DriveHandler_GetFiles_Params', [ ], [[0, 8],]); /** * @record */ export class DriveHandler_GetFiles_Params { constructor() { } } mojo.internal.Struct( DriveHandler_GetFiles_ResponseParamsSpec.$, 'DriveHandler_GetFiles_ResponseParams', [ mojo.internal.StructField( 'files', 0, 0, mojo.internal.Array(FileSpec.$, false), null, false /* nullable */, 0), ], [[0, 16],]); /** * @record */ export class DriveHandler_GetFiles_ResponseParams { constructor() { /** @type { !Array<!File> } */ this.files; } } mojo.internal.Struct( DriveHandler_DismissModule_ParamsSpec.$, 'DriveHandler_DismissModule_Params', [ ], [[0, 8],]); /** * @record */ export class DriveHandler_DismissModule_Params { constructor() { } } mojo.internal.Struct( DriveHandler_RestoreModule_ParamsSpec.$, 'DriveHandler_RestoreModule_Params', [ ], [[0, 8],]); /** * @record */ export class DriveHandler_RestoreModule_Params { constructor() { } }
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>