CN106445503B - A kind of desktop application method and system based on built-in browser - Google Patents
A kind of desktop application method and system based on built-in browser Download PDFInfo
- Publication number
- CN106445503B CN106445503B CN201610783964.7A CN201610783964A CN106445503B CN 106445503 B CN106445503 B CN 106445503B CN 201610783964 A CN201610783964 A CN 201610783964A CN 106445503 B CN106445503 B CN 106445503B
- Authority
- CN
- China
- Prior art keywords
- built
- browser
- multipad
- page
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
Abstract
The desktop application method and system based on built-in browser that the present invention relates to a kind of, comprising the following steps: S1, creation multipad;S2, creation built-in browser frame;S3, the newly-built page object with the windows associate of multipad, are added page management queue, and the page supports dragging, pull refresh page content heavily loadedly, and multi-page supports multi-screen operation display;S4, multipad send message request to built-in browser frame;The message request that S5, built-in browser frame identification desktop application program are sent, and message request is fed back by WM_COPYDATA system message, realize message intercommunication, collaboration processing business;S6, message request acknowledgement mechanism is formulated, realized between multiple web pages object, interacting message between web object and multipad, realize the operation of multiple web pages object multi-screen, Combined Treatment business.
Description
Technical field
The present invention relates to technical field of software engineering, and more specifically, it relates to a kind of tables based on built-in browser
Face application method and system.
Background technique
Traditional embedding browser program is limited by the computer system of multipad installation by the way of IE control
It unites IE version, poor compatibility, the advanced HTML5 characteristic of support that cannot be unified does not support browser to embed GIS map associated higher
Using the new features such as off screen rendering, Chromium embedded frame is one and establishes on WebKit rendering engine
Chromium browser control part supports mainstream programming language and operating system, and independent of computer system where desktop programs
The browser of itself installation, the effective solution compatibility and stability problem of traditional IE control mode.
Summary of the invention
In view of this, it is necessary in view of the above-mentioned problems, provide a kind of desktop application method based on built-in browser and
System, by B/S and C/S model concurrent development, compatibility and stability of the effective solution in the way of tradition IE control
Problem.
To achieve the goals above, technical scheme is as follows:
A kind of desktop application method based on built-in browser, comprising the following steps:
S1, creation multipad;
S2, creation built-in browser frame;
S3, the newly-built page object with multipad windows associate, are added page management queue, and page support is dragged
It is dynamic, refresh page content is pulled heavily loadedly, and multi-page supports multi-screen operation display.
S4, multipad send message request to built-in browser frame;
The message request that S5, built-in browser frame identification desktop application program are sent, and pass through WM_COPYDATA system
System message feeds back message request, realizes message intercommunication, collaboration processing business.
S6, message request acknowledgement mechanism is formulated, realizes between multiple web pages object, disappears between web object and multipad
The operation of multiple web pages object multi-screen, Combined Treatment business are realized in breath interaction.
Preferably, the built-in browser frame is set as multi-process mode in the step S2, main journey is used
Sequence message loop, and be provided with miscue, log and Chinese and show.3, according to claim 1 based on embedded clear
Look at the desktop application method of device, which is characterized in that in the step S3, including setting page object and multipad application
The subordinate relation of window, page display position, load address attribute, page object support dragging, and multi-page supports multi-screen operation,
Interacting message is supported between multi-page.
Preferably, the built-in browser frame and multipad are common using B/S mode and C/S model
Building.
Preferably, multipad is included to built-in browser frame transmission packet in the step S4: to
B/S schema server sends message request and uses Soap communication mechanism, sends message to built-in browser frame and uses
JavaScript order.
A kind of desktop application system using the above method, including desktop application module, built-in browser frame module
With interacting message module, the built-in browser frame module is for connecting simultaneously analyzing web page content, the desktop application journey
Sequence for processing business to be interacted and cooperateed with built-in browser frame module, answer for desktop by the interacting message module
It is used to carry out interacting message with built-in browser frame module with program.
Preferably, the desktop application module, built-in browser frame module and interacting message module use B/S
Mode and C/S model construct jointly.
Preferably, the built-in browser frame module uses Chromium embedded frame.
Compared with prior art, the beneficial effects of the present invention are: the present invention to use Chromium embedded frame, supports
Mainstream programming language and operating system, and the browser independent of computer system itself installation where desktop programs, effectively
Solve the compatibility and stability problem of traditional IE control mode.Embedding browser frame is with multi-process mode operation, with table
Face is applied through inter-process communication message interaction, and browser access performance is effectively guaranteed, can open parallel with desktop application
Hair, improves development efficiency.
Detailed description of the invention
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is BS page object of the present invention and desktop application interacting message figure;
Fig. 3 is the system structure diagram of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples to a kind of desktop application method based on built-in browser of the present invention
And system is described further.
It is a kind of preferred example of desktop application method and system based on built-in browser of the present invention below,
Therefore it does not limit the scope of protection of the present invention.
As depicted in figs. 1 and 2, a kind of desktop application method based on built-in browser is shown in figure, including following
Step:
S1, creation multipad;
S2, creation built-in browser frame;
S3, the newly-built page object with multipad windows associate, are added page management queue, and page support is dragged
It is dynamic, refresh page content is pulled heavily loadedly, and multi-page supports multi-screen operation display;
S4, multipad send message request to built-in browser frame;
The message request that S5, built-in browser frame identification desktop application program are sent, and pass through WM_COPYDATA system
System message feeds back message request, realizes message intercommunication, collaboration processing business.
S6, message request acknowledgement mechanism is formulated, realizes between multiple web pages object, disappears between web object and multipad
The operation of multiple web pages object multi-screen, Combined Treatment business are realized in breath interaction.
Preferably, the built-in browser frame is set as multi-process mode in the step S2, main journey is used
Sequence message loop, and be provided with miscue, log and Chinese and show.
3, the desktop application method according to claim 1 based on built-in browser, which is characterized in that the step
In rapid S3, subordinate relation, page display position, load address including setting page object and multipad application widget
Attribute, page object support dragging, and multi-page supports multi-screen operation, supports interacting message between multi-page.
Preferably, the built-in browser frame and multipad are common using B/S mode and C/S model
Building.
Preferably, multipad is included to built-in browser frame transmission packet in the step S4: to
B/S schema server sends message request and uses Soap communication mechanism, sends message to built-in browser frame and uses
JavaScript order.
Fig. 3 shows a kind of desktop application system using the above method, including desktop application module, built-in browser
Frame module and interacting message module, the built-in browser frame module is for connecting simultaneously analyzing web page content, the table
Face application program for processing business to be interacted and cooperateed with built-in browser frame module, use by the interacting message module
It is used to carry out interacting message with built-in browser frame module in multipad.
Preferably, the desktop application module, built-in browser frame module and interacting message module use B/S
Mode and C/S model construct jointly.
Preferably, the built-in browser frame module uses Chromium embedded frame.
Compared with prior art, the beneficial effects of the present invention are: the present invention to use Chromium embedded frame, supports
Mainstream programming language and operating system, and the browser independent of computer system itself installation where desktop programs, effectively
Solve the compatibility and stability problem of traditional IE control mode.Embedding browser frame is with multi-process mode operation, with table
Face is applied through inter-process communication message interaction, and browser access performance is effectively guaranteed, can open parallel with desktop application
Hair, improves development efficiency.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (7)
1. a kind of desktop application method based on built-in browser, which comprises the following steps:
S1, creation multipad;
S2, creation built-in browser frame;
S3, the newly-built page object with multipad windows associate, are added page management queue, and the page supports dragging, weight
Pull refresh page content with carrying, multi-page supports multi-screen operation display;
S4, multipad send message request to built-in browser frame;
The message request that S5, built-in browser frame identification desktop application program are sent, and disappeared by WM_COPYDATA system
Breath feeds back message request, realizes message intercommunication, collaboration processing business;
S6, message request acknowledgement mechanism is formulated, realized between multiple web pages object, message is handed between web object and multipad
Mutually, the operation of multiple web pages object multi-screen, Combined Treatment business are realized;
The built-in browser frame and multipad are constructed jointly using B/S mode and C/S model.
2. having the desktop application method described in claim 1 based on built-in browser, which is characterized in that the step S2
In, the built-in browser frame is set as multi-process mode, using main program message loop, and be provided with miscue,
Log and Chinese are shown.
3. the desktop application method according to claim 1 based on built-in browser, which is characterized in that the step S3
In, subordinate relation, page display position, load address category including setting page object and multipad application widget
Property, page object support dragging, multi-page supports multi-screen operation, supports interacting message between multi-page.
4. the desktop application method according to claim 1 based on built-in browser, which is characterized in that the step S4
In, multipad is included to built-in browser frame transmission packet: being sent message request to B/S schema server and is used
Soap communication mechanism sends message to built-in browser frame and uses JavaScript order.
5. a kind of desktop application system using any the method for Claims 1-4, which is characterized in that including desktop application
Module, built-in browser frame module and interacting message module, the built-in browser frame module is for connecting and solving
Web page contents are analysed, the multipad is used to that processing business to be interacted and cooperateed with built-in browser frame module,
The interacting message module is used to carry out interacting message with built-in browser frame module for multipad.
6. desktop application system according to claim 5, which is characterized in that the desktop application module, embedded browsing
Device frame module and interacting message module are constructed jointly using B/S mode and C/S model.
7. desktop application system according to claim 5, which is characterized in that the built-in browser frame module uses
Chromium embedded frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610783964.7A CN106445503B (en) | 2016-08-31 | 2016-08-31 | A kind of desktop application method and system based on built-in browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610783964.7A CN106445503B (en) | 2016-08-31 | 2016-08-31 | A kind of desktop application method and system based on built-in browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106445503A CN106445503A (en) | 2017-02-22 |
CN106445503B true CN106445503B (en) | 2019-11-22 |
Family
ID=58091752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610783964.7A Active CN106445503B (en) | 2016-08-31 | 2016-08-31 | A kind of desktop application method and system based on built-in browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445503B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569093A (en) * | 2018-05-17 | 2019-12-13 | 长沙博为软件技术股份有限公司 | Method for managing desktop application program and realizing plug-in based on embedded browser |
CN108897605B (en) * | 2018-07-24 | 2022-03-08 | 北京万相融通科技股份有限公司 | Method and device for embedding desktop application program into webpage |
CN110955427B (en) * | 2019-11-19 | 2022-07-08 | 江苏艾佳家居用品有限公司 | Self-adaptive fusion interface implementation method for desktop end software |
CN111611052B (en) * | 2020-05-02 | 2023-03-21 | 同智伟业软件股份有限公司 | Method for interacting with desktop application in webpage |
CN113900756A (en) * | 2021-10-13 | 2022-01-07 | 珠海市新德汇信息技术有限公司 | C-embedded B desktop application method based on browser kernel |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103177095A (en) * | 2013-03-15 | 2013-06-26 | 成都三零凯天通信实业有限公司 | Embedded browser and implement method thereof |
CN105407369A (en) * | 2015-11-17 | 2016-03-16 | 青岛海信电器股份有限公司 | Web application based terminal communication method and device |
CN105446786A (en) * | 2015-12-30 | 2016-03-30 | 广东欧珀移动通信有限公司 | Interactive interface mode switching method and apparatus |
-
2016
- 2016-08-31 CN CN201610783964.7A patent/CN106445503B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103177095A (en) * | 2013-03-15 | 2013-06-26 | 成都三零凯天通信实业有限公司 | Embedded browser and implement method thereof |
CN105407369A (en) * | 2015-11-17 | 2016-03-16 | 青岛海信电器股份有限公司 | Web application based terminal communication method and device |
CN105446786A (en) * | 2015-12-30 | 2016-03-30 | 广东欧珀移动通信有限公司 | Interactive interface mode switching method and apparatus |
Non-Patent Citations (2)
Title |
---|
"Chromium嵌入式框架";x844010689;《https://blog.csdn.net/x844010689/article/details/18764495》;20140125;第1-3页 * |
"duilib+cef简单浏览器的demo2—c++和js交互";shuaixingrumo;《https://blog.csdn.net/shuaixingrumo/article/details/51771023》;20160627;第1-7页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106445503A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445503B (en) | A kind of desktop application method and system based on built-in browser | |
US10567517B2 (en) | Web resource load blocking API | |
JP6172537B2 (en) | Method and system for federated remote application sharing and conferencing | |
US10002202B2 (en) | Realtime websites with publication and subscription | |
KR102156305B1 (en) | Cross-source communication in a limited computer environment | |
WO2016112826A1 (en) | Method and system for increasing page loading rate | |
US9070211B1 (en) | Webview tag for a sandboxed multiprocess browser | |
US20120131448A1 (en) | Secure Inter-Module Communication Mechanism | |
US20120210243A1 (en) | Web co-navigation | |
WO2011091388A3 (en) | Web application development framework | |
CN102043832A (en) | Method for realizing cross-domain request callback on webpage | |
JP2014522542A (en) | Automatic conversion and code generation for user interface objects | |
DE202013012500U1 (en) | Cross-system installation of online applications | |
US20140207863A1 (en) | Communication between a web-based application and a desktop application | |
BR112015019554A2 (en) | lock screen with socialized apps | |
US20110264729A1 (en) | Augmentation of network traffic | |
WO2017084554A1 (en) | Internet of things information system | |
JP2014518417A (en) | Techniques for adapting interpreted runtime applications to many clients | |
WO2022134776A1 (en) | Label-based anti-crawler method and apparatus, computer device, and storage medium | |
JP2023552420A (en) | Integration of third-party platforms into communication platforms | |
WO2020135583A1 (en) | Access control method for processing front-end page, and device | |
TWI713342B (en) | Object uploading method and device | |
JP6785524B2 (en) | Display device, display method and display program | |
EP3120226A1 (en) | Method and apparatus for controlling smart objects with a collage user interface using normalized user interface descriptors | |
CN104462220A (en) | Method and device for web page screen shot and code transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |