CN106445503A - Desktop application method and system based on embedded browser - Google Patents

Desktop application method and system based on embedded browser Download PDF

Info

Publication number
CN106445503A
CN106445503A CN201610783964.7A CN201610783964A CN106445503A CN 106445503 A CN106445503 A CN 106445503A CN 201610783964 A CN201610783964 A CN 201610783964A CN 106445503 A CN106445503 A CN 106445503A
Authority
CN
China
Prior art keywords
built
browser
desktop application
message
page
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.)
Granted
Application number
CN201610783964.7A
Other languages
Chinese (zh)
Other versions
CN106445503B (en
Inventor
李胜东
杨波
张雪琼
乐曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Fiberhome Digtal Technology Co Ltd
Original Assignee
Wuhan Fiberhome Digtal Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Fiberhome Digtal Technology Co Ltd filed Critical Wuhan Fiberhome Digtal Technology Co Ltd
Priority to CN201610783964.7A priority Critical patent/CN106445503B/en
Publication of CN106445503A publication Critical patent/CN106445503A/en
Application granted granted Critical
Publication of CN106445503B publication Critical patent/CN106445503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a desktop application method and system based on an embedded browser. The desktop application method comprises the following steps of: (S1), creating a desktop application program; (S2), creating an embedded browser frame; (S3), newly creating a page object associated with a window of the desktop application program, and adding the page object into a page management queue, wherein pages support dragging; an address is reloaded, so that contents of the pages are refreshed; and multiple pages support multi-screen operation display; (S4), sending a message request to the embedded browser frame by the desktop application program; (S5), identifying the message request sent by the desktop application program by the embedded browser frame, and feeding back the message request through a WM_COPYDATA system message, so that message exchange and co-processing of services can be realized; and (S6), making a message request response mechanism, wherein message interaction among multiple page objects and between the page object and the desktop application program can be realized; multi-screen operation of multiple page objects can be realized; and thus, joint processing of services is realized.

Description

A kind of desktop application method and system based on built-in browser
Technical field
The present invention relates to technical field of software engineering, in particular, it is to be related to a kind of table based on built-in browser Face application process and system.
Background technology
Traditional embedding browser program, by the way of IE control, is limited by the computer system of multipad installation System IE version, poor compatibility, it is impossible to unified support senior HTML5 characteristic, does not support that browser embeds GIS map associated higher Application, off screen such as renders at new features, the Chromium embedded frame, is one and sets up on WebKit rendering engine Chromium browser control part, supports main flow programming language and operating system, and does not rely on desktop programs place computer system The browser that itself installs, effectively solves compatibility and the stability problem of traditional IE control mode.
Content of the invention
In view of this it is necessary to be directed to the problems referred to above, provide a kind of desktop application method based on built-in browser and System, by B/S and C/S model concurrent development, effectively solves the compatibility using traditional IE control mode and stability Problem.
To achieve these goals, technical scheme is as follows:
A kind of desktop application method based on built-in browser, comprises the following steps:
S1, establishment multipad;
S2, establishment built-in browser framework;
S3, the newly-built page object with multipad windows associate, add page management queue, and the page is supported to drag Dynamic, pull refresh page content, multi-page supports multi-screen operation display heavily loadedly.
S4, multipad send message request to built-in browser framework;
The message request that S5, built-in browser framework identification desktop application program send, and by WM_COPYDATA system System message is fed back to message request, realizes message intercommunication, collaborative processing business.
S6, formulation message request acknowledgement mechanism, realize, between multiple web pages object, disappearing between web object and multipad Breath interaction, realizes the operation of multiple web pages object multi-screen, Combined Treatment business.
As preferred, in described step S2, described built-in browser framework is set to multi-process pattern, using main journey Sequence message loop, and it is provided with miscue, daily record and Chinese displaying.3rd, according to claim 1 based on embedded clear Look at device desktop application method it is characterised in that in described step S3, apply including setting page object and multipad The subordinate relation of window, page display location, load address attribute, page object is supported to drag, and multi-page supports multi-screen operation, Interacting message is supported between multi-page.
As preferred, described built-in browser framework and multipad adopt B/S pattern and C/S model common Build.
As preferred, in described step S4, multipad includes to built-in browser framework transmission packet:To B/S schema server sends message request and adopts Soap communication mechanism, sends message to built-in browser framework and adopts JavaScript order.
A kind of desktop application system of employing said method, including desktop application module, built-in browser frame module With interacting message module, described built-in browser frame module is for connecting simultaneously analyzing web page content, described desktop application journey Sequence is used for interacting with built-in browser frame module and working in coordination with processing business, and described interacting message module is used for desktop should It is used for carrying out interacting message with built-in browser frame module with program.
As preferred, described desktop application module, built-in browser frame module and interacting message module adopt B/S Pattern and C/S model build jointly.
As preferred, described built-in browser frame module adopts Chromium embedded frame.
Compared with prior art, the beneficial effects of the present invention is:The present invention adopts Chromium embedded frame, supports Main flow programming language and operating system, and do not rely on the browser that desktop programs place computer system itself is installed, effectively Solve compatibility and the stability problem of traditional IE control mode.Embedding browser framework with multi-process mode operation, with table Face application is interacted by inter-process communication message, is effectively guaranteed browser access performance, can open parallel with desktop application Send out, improve development efficiency.
Brief description
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 architecture 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.
The following is a kind of preferred example of desktop application method and system based on built-in browser of the present invention, Therefore do not limit protection scope of the present invention.
As depicted in figs. 1 and 2, in figure shows a kind of desktop application method based on built-in browser, including following Step:
S1, establishment multipad;
S2, establishment built-in browser framework;
S3, the newly-built page object with multipad windows associate, add page management queue, and the page is supported to drag Dynamic, pull refresh page content, multi-page supports multi-screen operation display heavily loadedly;
S4, multipad send message request to built-in browser framework;
The message request that S5, built-in browser framework identification desktop application program send, and by WM_COPYDATA system System message is fed back to message request, realizes message intercommunication, collaborative processing business.
S6, formulation message request acknowledgement mechanism, realize, between multiple web pages object, disappearing between web object and multipad Breath interaction, realizes the operation of multiple web pages object multi-screen, Combined Treatment business.
As preferred, in described step S2, described built-in browser framework is set to multi-process pattern, using main journey Sequence message loop, and it is provided with miscue, daily record and Chinese displaying.
3rd, the desktop application method based on built-in browser according to claim 1 is it is characterised in that described step In rapid S3, including the subordinate relation of setting page object and multipad application widget, page display location, load address Attribute, page object is supported to drag, and multi-page supports multi-screen operation, supports interacting message between multi-page.
As preferred, described built-in browser framework and multipad adopt B/S pattern and C/S model common Build.
As preferred, in described step S4, multipad includes to built-in browser framework transmission packet:To B/S schema server sends message request and adopts Soap communication mechanism, sends message to built-in browser framework and adopts JavaScript order.
Fig. 3 shows a kind of desktop application system of employing said method, including desktop application module, built-in browser Frame module and interacting message module, described built-in browser frame module is used for connecting and analyzing web page content, described table Face application program is used for interacting with built-in browser frame module and working in coordination with processing business, and described interacting message module is used It is used for carrying out interacting message with built-in browser frame module in multipad.
As preferred, described desktop application module, built-in browser frame module and interacting message module adopt B/S Pattern and C/S model build jointly.
As preferred, described built-in browser frame module adopts Chromium embedded frame.
Compared with prior art, the beneficial effects of the present invention is:The present invention adopts Chromium embedded frame, supports Main flow programming language and operating system, and do not rely on the browser that desktop programs place computer system itself is installed, effectively Solve compatibility and the stability problem of traditional IE control mode.Embedding browser framework with multi-process mode operation, with table Face application is interacted by inter-process communication message, is effectively guaranteed browser access performance, can open parallel with desktop application Send out, improve development efficiency.
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Therefore the restriction to the scope of the claims of the present invention can not 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, some deformation can also be made and improve, these broadly fall into the guarantor of the present invention Shield scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (8)

1. a kind of desktop application method based on built-in browser is it is characterised in that comprise the following steps:
S1, establishment multipad;
S2, establishment built-in browser framework;
S3, the newly-built page object with multipad windows associate, add page management queue, and the page is supported to drag, weight Pull refresh page content with carrying, multi-page supports multi-screen operation display;
S4, multipad send message request to built-in browser framework;
The message request that S5, built-in browser framework identification desktop application program send, and disappeared by WM_COPYDATA system Breath feeds back to message request, realizes message intercommunication, collaborative processing business;
S6, formulation message request acknowledgement mechanism, realize between multiple web pages object, between web object and multipad, message is handed over Mutually, the operation of multiple web pages object multi-screen, Combined Treatment business are realized.
2. have the desktop application method based on built-in browser described in claim 1 it is characterised in that described step S2 In, described built-in browser framework is set to multi-process pattern, using main program message loop, and be provided with miscue, Daily record and Chinese are shown.
3. the desktop application method based on built-in browser according to claim 1 is it is characterised in that described step S3 In, belong to including the subordinate relation of setting page object and multipad application widget, page display location, load address Property, page object is supported dragging, multi-page support multi-screen operation, is supported interacting message between multi-page.
4. the desktop application method based on built-in browser according to claim 1 is it is characterised in that described embedded Browser frames and multipad are built jointly using B/S pattern and C/S model.
5. the desktop application method based on built-in browser according to claim 4 is it is characterised in that described step S4 In, multipad includes to built-in browser framework transmission packet:Send message request to B/S schema server to adopt Soap communication mechanism, sends message to built-in browser framework and adopts JavaScript order.
6. a kind of desktop application system of the arbitrary methods described of employing claim 1 to 5 is it is characterised in that include desktop application Module, built-in browser frame module and interacting message module, described built-in browser frame module is used for connecting and solves Analysis web page contents, described multipad is used for interacting with built-in browser frame module and working in coordination with processing business, Described interacting message module is used for multipad and is used for carrying out interacting message with built-in browser frame module.
7. desktop application system according to claim 6 is it is characterised in that described desktop application module, embedded browsing Device frame module and interacting message module are built jointly using B/S pattern and C/S model.
8. desktop application system according to claim 6 is it is characterised in that described built-in browser frame module adopts Chromium embedded frame.
CN201610783964.7A 2016-08-31 2016-08-31 A kind of desktop application method and system based on built-in browser Active CN106445503B (en)

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 true CN106445503A (en) 2017-02-22
CN106445503B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897605A (en) * 2018-07-24 2018-11-27 北京万相融通科技股份有限公司 A kind of method and device of multipad embedded web page
CN110569093A (en) * 2018-05-17 2019-12-13 长沙博为软件技术股份有限公司 Method for managing desktop application program and realizing plug-in based on embedded browser
CN110955427A (en) * 2019-11-19 2020-04-03 江苏艾佳家居用品有限公司 Self-adaptive fusion interface implementation method for desktop end software
CN111611052A (en) * 2020-05-02 2020-09-01 山东同智伟业软件股份有限公司 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
SHUAIXINGRUMO: ""duilib+cef简单浏览器的demo2—c++和js交互"", 《HTTPS://BLOG.CSDN.NET/SHUAIXINGRUMO/ARTICLE/DETAILS/51771023》 *
X844010689: ""Chromium嵌入式框架"", 《HTTPS://BLOG.CSDN.NET/X844010689/ARTICLE/DETAILS/18764495》 *

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN108897605A (en) * 2018-07-24 2018-11-27 北京万相融通科技股份有限公司 A kind of method and device of multipad embedded web page
CN108897605B (en) * 2018-07-24 2022-03-08 北京万相融通科技股份有限公司 Method and device for embedding desktop application program into webpage
CN110955427A (en) * 2019-11-19 2020-04-03 江苏艾佳家居用品有限公司 Self-adaptive fusion interface implementation method for desktop end software
CN110955427B (en) * 2019-11-19 2022-07-08 江苏艾佳家居用品有限公司 Self-adaptive fusion interface implementation method for desktop end software
CN111611052A (en) * 2020-05-02 2020-09-01 山东同智伟业软件股份有限公司 Method for interacting with desktop application in webpage
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

Also Published As

Publication number Publication date
CN106445503B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106445503A (en) Desktop application method and system based on embedded browser
KR101413130B1 (en) Stateful browsing
US10380235B2 (en) Method and system for annotation and connection of electronic documents
US6230171B1 (en) Markup system for shared HTML documents
US9070211B1 (en) Webview tag for a sandboxed multiprocess browser
CN103412890B (en) A kind of webpage loading method and device
US20150279310A1 (en) Information processing terminal, display terminal, and display method
US20120210243A1 (en) Web co-navigation
WO2016112826A1 (en) Method and system for increasing page loading rate
US20160117298A1 (en) Real-time collaboration in a hosted word processor
CN105807967B (en) Writing method and device of electronic whiteboard
CN105824900A (en) Page display system based on react-native
CN102364460B (en) Automatic page amplification method and system based on mobile terminal
US9286276B2 (en) System and method of document embedding in collaborative editors
CN103853417A (en) Rolling and pagination display method and device for network dynamic picture
WO2015154666A1 (en) Method for displaying webpage fragment on desktop and system for capturing webpage fragment to desktop for display
CN101140496A (en) Method and device for regulating column frame
CN101078989A (en) Visio file cross-platform network browser implementation method and software
CN101676875A (en) Method for seamless access remote Windows application program by Linux terminal and apparatus thereof
CN103856507A (en) Network dynamic picture static display method and device
US10313483B2 (en) Method and apparatus for providing a dynamic execution environment in network communication between a client and a server
CN101937557B (en) Marking method of dynamic playing window and system thereof
US20080082599A1 (en) System and method for integrating ads into presentation environments
CN103440340A (en) Method and device for navigation webpage content display
US20170083481A1 (en) Method and apparatus for rendering a screen-representation of an electronic document

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