From 0c5ac45d79d523f0513e3889405005fa41fa6689 Mon Sep 17 00:00:00 2001 From: laosan_ted Date: Thu, 23 Jun 2022 10:15:51 +0800 Subject: [PATCH] default user agent and gethitvalue interface Signed-off-by: laosan_ted --- api/@internal/component/ets/web.d.ts | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index bfb3e08770..1f206e3439 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -308,6 +308,30 @@ declare class FileSelectorResult { handleFileList(fileList: Array): void; } +/** + * Defines the hit test value, related to {@link getHitTestValue} method. + * @since 9 + */ +declare class HitTestValue { + /** + * Constructor. + * @since 9 + */ + constructor(); + + /** + * get the hit test type. + * @since 9 + */ + getType(): HitTestType; + + /** + * get the hit test extra data. + * @since 9 + */ + getExtra(): string; +} + /** * Encompassed message information as parameters to {@link onConsole} method. * @since 8 @@ -774,12 +798,24 @@ declare class WebCookie { */ getHitTest(): HitTestType; + /** + * Gets the hit test value of HitTest. + * @since 9 + */ + getHitTestValue(): HitTestValue; + /** * Gets the id for the current Web. * @since 9 */ getWebId(): number; + /** + * Gets the default user agent. + * @since 9 + */ + getDefaultUserAgent(): string; + /** * Gets the title of current Web page. * @since 9 -- Gitee