Unlock instant, AI-driven research and patent intelligence for your innovation.

Browser local interface extension method and device

A technology of local interface and extension method, which is applied in the field of browser local interface extension method and device, can solve problems such as single interface form, inability to expand complex interface, and inability to meet the requirements of JavaScript interface for web page development, so as to improve compatibility and reduce The effect of small workload

Active Publication Date: 2018-02-13
ZHENGZHOU SEANET TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method has a single interface form, cannot expand complex interfaces, and cannot meet the requirements of web page development for JavaScript interfaces

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Browser local interface extension method and device
  • Browser local interface extension method and device
  • Browser local interface extension method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] This embodiment takes the extended local interface chrome.webstore.install(string url, functionsuccessCallback, function failureCallback) (hereinafter referred to as chrome.webstore.install interface) as an example, which is used to download and install a certain web application in the Chrome application store . Among them, the parameter url indicates the download address of the web application installation package; the parameters successCallback and failureCallback are callback functions for download success or failure, the successCallback function is called when the web application download and installation is successful, and the failureCallback function is called when the web application download and installation fails .

[0022] figure 1 It is a schematic diagram of a browser local interface extension method provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the system includes a JavaScript framework module and an Android registration i...

Embodiment 2

[0039] In this embodiment, the message transmitted between the JavaScript framework module and the Android system module is a character string, and the specific composition is as follows: message header, message type, callback function ID, separator, data type, data, terminator. The length and definition of each part can be freely agreed upon.

[0040] In this embodiment, the specific content of the message is as follows:

[0041] The message header is 7 bytes, which is "CWrtMsg";

[0042] The message type is 1 byte, where "S" stands for success and "F" stands for failure;

[0043] The ID of the callback function is variable in length and is the unique ID generated in the chromeInterface.js file;

[0044] The delimiter is 1 byte, which is "&";

[0045] The data type is 2 bytes, where "EI" represents a single application information, "EA" represents an application array information, "ID" represents a single application ID, "ST" represents a string, and "SA" represents a list o...

Embodiment 3

[0049] image 3 It is a schematic diagram of a browser local interface extension device provided by Embodiment 3 of the present invention. Such as image 3 As shown, the device includes: a JavaScript framework module 301 and an Android registration implementation module 302 .

[0050] The JavaScript framework module 301 is used for extending and encapsulating the browser local interface to obtain an extended interface;

[0051] Calling the implementation method of the JavaScript object, realizing the extension interface, and obtaining the extended JavaScript object;

[0052] The Android registration implementation module 302 is configured to register the JavaScript object extended in the JavaScript framework module to the browser kernel to realize the function of the JavaScript object.

[0053] The module of the browser local interface extension device in the third embodiment of the present invention can implement the browser local interface extension method in the first em...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a browser local interface expansion method and device. The browser local interface expansion method comprises the following steps of expanding and packing a browser local interface through a JavaScript frame module and obtaining an expansion interface; achieving an expanded interface by calling an achievement method of a JavaScript object and obtaining an expanded JavaScript object; enabling an Android register achievement module to register the expanded JavaScript object in a JavaScript frame module to a browser inner core and achieving functions of the JavaScript object. According to the browser local interface expansion method, a function of expanding a browser local complex interface in an Android system is achieved, support of a webpage interface from the browser local interface expansion method is increased, and the Android system compatibility of webpage applications is enhanced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a browser local interface extension method and device. Background technique [0002] The Android operating system is developing rapidly, and its applications involve various terminals such as mobile phones, PADs, and set-top boxes. The open business model of the Android system has attracted a large number of application developers and designed a large number of wonderful applications. At the same time, due to the maturation of HTML5 technology, HTML5 applications are attracting more and more people's attention. HTML5 applications run based on web pages and browsers, and are not limited by system platforms and devices, and do not require developers to develop separately for different operating systems. Therefore, in order to better support web applications in the Android system, it is necessary to extend its support for the web interface, so as to realize the extension of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 姜艳胡琳琳刘秀秀郭志川
Owner ZHENGZHOU SEANET TECH CO LTD