CN114675906B - Multi-window management method, device, electronic device and storage medium - Google Patents

Multi-window management method, device, electronic device and storage medium Download PDF

Info

Publication number
CN114675906B
CN114675906B CN202210572384.9A CN202210572384A CN114675906B CN 114675906 B CN114675906 B CN 114675906B CN 202210572384 A CN202210572384 A CN 202210572384A CN 114675906 B CN114675906 B CN 114675906B
Authority
CN
China
Prior art keywords
window
sub
file
files
browsing
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
Application number
CN202210572384.9A
Other languages
Chinese (zh)
Other versions
CN114675906A (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.)
Hangzhou Lianlianhui Network Technology Co ltd
Original Assignee
Hangzhou Lianlianhui Network 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 Hangzhou Lianlianhui Network Technology Co ltd filed Critical Hangzhou Lianlianhui Network Technology Co ltd
Priority to CN202210572384.9A priority Critical patent/CN114675906B/en
Publication of CN114675906A publication Critical patent/CN114675906A/en
Application granted granted Critical
Publication of CN114675906B publication Critical patent/CN114675906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a multi-window management method, a multi-window management device, an electronic device and a storage medium, wherein the method comprises the following steps: when a desktop application program in a target platform is started, generating a main process corresponding to the desktop application program; creating a first browsing window by using a main process, and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process; acquiring a window file from a cloud server; and managing the first browsing window according to the window file through the main process and the first sub-process. Through the method and the device, the problem that each whole window is managed independently through the TAB label is solved, the workload of managing the windows is increased, the efficiency of managing the windows is reduced, the windows are managed through processes and window files, the workload of managing the windows is reduced, and the efficiency of managing the windows is improved.

Description

Multi-window management method, device, electronic device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a multi-window management method and apparatus, an electronic apparatus, and a storage medium.
Background
A browser of a computer application serves as an interface between a user and a computer, receives a keyboard or a mouse command, displays HTML (hypertext markup language) document contents of a web server or a file system, and allows the user to interact with the document contents. The browser interacts with the server through an HTTP (hypertext transfer protocol) protocol and acquires a web page specified by a URL (Uniform resource locator), and the file format is usually HTML and specified in the HTTP protocol by MIME (multipurpose internet mail extensions). The browser supports an image format such as JPEG, PNG, GIF, or the like in addition to the HTML format, and is capable of extending support of numerous plug-ins (plug-ins).
In a conventional browser, managing the display of each window is generally implemented by means of TAB labels. Due to the physical size limitation of the display device of the mobile terminal, the browser of the mobile terminal only displays one window at a time, and performs operation management, such as closing or opening the window, for only one window at a time. This way of managing each entire window individually by the TAB label not only increases the workload of managing windows but also reduces the efficiency of managing windows.
Aiming at the mode of independently managing each whole window through a TAB label in the related technology, the workload of managing the window is increased, and the efficiency of managing the window is reduced, so that no effective solution is provided at present.
Disclosure of Invention
The present embodiment provides a multi-window management method, apparatus, electronic apparatus, and storage medium, so as to solve the problem in the related art that, in a manner of separately managing each entire window by a TAB label, not only the workload of managing windows is increased, but also the efficiency of managing windows is reduced.
In a first aspect, a method for multi-window management is provided in this embodiment, including:
when a desktop application program in a target platform is started, generating a main process corresponding to the desktop application program;
creating a first browsing window by using the main process, and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
acquiring a window file from a cloud server;
and managing the first browsing window according to the window file through the main process and the first sub-process.
In some of these embodiments, the method further comprises:
and creating the cross-platform desktop application program, and encapsulating the difference of the target platform by using an API (application programming interface) function when the cross-platform desktop application program is created to obtain a uniform functional interface.
In some embodiments, the obtaining the window file from the cloud server includes:
and acquiring the window file from the cloud server based on the functional interface.
In some embodiments, the managing, by the main process and the first sub-process, the first browsing window according to the window file includes:
analyzing the window file;
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is one; and sending the window content file in the window file to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window content file.
In some of these embodiments, the method further comprises:
if the number of the window layout files in the window files is multiple, and the number of the window content files in each window file is the same as the number of the window layout files; creating a second browsing window, generating a second sub-process corresponding to the second browsing window, and adjusting the window positions of the first browsing window and the second browsing window according to the window layout file;
distributing the window content files in the window files to a corresponding first sub-process and a corresponding second sub-process through the main process;
managing the page content loaded in the first browsing window according to the window content file through the first sub-process;
and managing the page content loaded in the second browsing window through the second sub-process according to the window content file.
In some of these embodiments, the method further comprises:
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is multiple; and sending the window content file to the first sub-process through the main process, and managing the page content loaded in the first browsing window according to the window content file and the window layout file through the first sub-process.
In some of these embodiments, the method further comprises:
monitoring the network state of the target platform in real time through the main process;
if the network state is monitored to be a disconnected network state, the disconnected network message is sent to the first sub-process through the main process, and page content loaded in the first browsing window is managed through the first sub-process according to a preset material file;
and when the network state is monitored to be the network disconnection recovery state, sending a network disconnection recovery message to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window file.
In a second aspect, there is provided in this embodiment a multi-window management apparatus, including: the system comprises a starting module, a creating module, an obtaining module and a management module;
the starting module is used for generating a main process corresponding to a desktop application program in a target platform when the desktop application program is started;
the creation module is used for creating a first browsing window by using the main process and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
the acquisition module is used for acquiring the window file from the cloud server;
and the management module is used for managing the first browsing window according to the window file through the main process and the first sub-process.
In a third aspect, in this embodiment, there is provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the multi-window management method according to the first aspect.
In a fourth aspect, in the present embodiment, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the multi-window management method of the first aspect described above.
Compared with the related art, the multi-window management method, the multi-window management device, the electronic device and the storage medium provided by the embodiment generate the main process corresponding to the desktop application program when the desktop application program in the target platform is started; creating a first browsing window by using a main process, and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process; acquiring a window file from a cloud server; the first browsing window is managed according to the window file through the main process and the first sub-process, so that the problem that each whole window is independently managed through a TAB label is solved, the workload of managing the windows is increased, the efficiency of managing the windows is reduced, the windows are managed through the processes and the window files, the workload of managing the windows is reduced, and the efficiency of managing the windows is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a block diagram of a multi-window management system according to an embodiment of the present application;
FIG. 2 is a flowchart of a multi-window management method according to an embodiment of the present application;
fig. 3 is a block diagram of a multi-window management apparatus according to an embodiment of the present application.
In the figure: 10. a screen device; 20. a cloud server; 201. a starting module; 202. a creation module; 203. an acquisition module; 204. and a management module.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms used herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference in this application to "connected," "coupled," and the like is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". Reference in the present application to the terms "first," "second," "third," etc., merely distinguish between similar objects and do not denote a particular order or importance to the objects.
Referring to fig. 1, an exemplary diagram of a multi-window management system is shown in the present embodiment. The multi-window management system includes a screen device 10 and a cloud server 20; the cloud server 20 is connected with the screen device 10; the screen device 10 is arranged in a shopping center or mall.
In which the screen device 10 can be installed beside an elevator, at an entrance, at an exit, etc. of a shopping center or a mall at a place convenient for a user to use. The screen device 10 refers to a device with a screen; including but not limited to a guide device, an advertising device, a guidance device, etc. The shopping center may also be an activity center for shopping such as shopping malls and communities. The cloud server 20 is configured to transmit a window file to the screen device 10, so that the screen device 10 manages a window according to the window file.
In this embodiment, a multi-window management method is provided, and fig. 2 is a flowchart of the multi-window management method of this embodiment, as shown in fig. 2, the flowchart includes the following steps:
step S201, when a desktop application program in a target platform is started, a main process corresponding to the desktop application program is generated;
step S202, a first browsing window is created by utilizing a main process, and a first sub-process corresponding to the first browsing window is generated; the main process is in communication connection with the corresponding first sub-process;
step S203, acquiring a window file from a cloud server;
and step S204, managing the first browsing window according to the window file through the main process and the first sub-process.
It should be noted that the target platform refers to an installation platform where the desktop application is located, such as a platform of windows, linux, macos, or android; that is, desktop applications may be installed on windows, linux, macos, or android platforms. When the desktop application program is started, the desktop application program can be activated and bound with the screen equipment in the shopping center, so that the desktop application program can be conveniently used and managed. And the desktop application program can be installed and used in a cross-platform mode, and the method can be directly suitable for different platforms to achieve the purpose of cross-platform.
Desktop applications correspond to host processes one-to-one, with one desktop application corresponding to one host process. When the desktop application is started, the target platform generates a main process corresponding to the desktop application by default. The browse window is created and launched by a main program calling chrome. The first browse window is a default created browse window that corresponds to the first sub-process, typically one sub-process for each first browse window. That is, there may be one or more first browse windows. The main process is in communication connection with the corresponding first sub-process, and the main process can be in communication with the first sub-process or the second sub-process; the main process manages each sub-process created by the main process, the sub-processes are isolated from each other, and the sub-processes need to transmit data to other sub-processes through the main process. Such as: and transmitting the window file acquired by the cloud server to the first sub-process through the main process.
Through the steps, a first browsing window is created by utilizing a main process which is started in a desktop application program and automatically generated by default, and then a first sub-process corresponding to the first browsing window is generated; the windows are managed through the processes and the window files, so that the workload of managing the windows is reduced, and the efficiency of managing the windows is improved; the method solves the problem that each whole window is managed independently through a TAB label, not only increases the workload of managing the windows, but also reduces the efficiency of managing the windows.
In some of these embodiments, the multi-window management method further comprises the steps of:
and creating a cross-platform desktop application program, and encapsulating the difference of the target platform by using the API function when the cross-platform desktop application program is created to obtain a uniform functional interface.
Specifically, the desktop application is constructed by using JavaScript, HTML and CSS, and the differences of the target platform are encapsulated by using the API function to obtain a uniform functional interface. Therefore, the method can be suitable for various platforms and achieves the purpose of cross-platform use. Such as: the desktop application program is developed based on an open source project, namely, chromium, and can run on a window platform and a library platform; and chrome is a browser open source project established on the WebKit, and android supports webview, so that desktop application programs can run on an android platform. The chrome is a web browser of Google open source and is responsible for analyzing and processing H5 resources such as JavaScript, HTML, CSS and the like. The window file can be acquired from the cloud server through the functional interface.
The window files comprise a window layout file and a window content file; the window layout files refer to a plurality of layout parameter files of the specific layout of the window; each window layout file specifies a layout parameter of the corresponding browse window, such as: width, height, origin coordinates, etc. The window content file refers to the content displayed in the corresponding browsing window, the number of the content is generally the same as that of the window layout file, and the window content file is associated with the window layout file; such as: the window content file a is the content displayed in the browsing window corresponding to the window layout file a. The window content file B is the content displayed in the corresponding browsing window of the window layout file B.
The following describes the management of browsing windows according to different window files:
in some of these embodiments, step S204 includes the steps of:
analyzing the window file;
if the number of the window layout files in the window file is one, and the number of the window content files in the window file is one; and sending the window content file in the window file to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window content file.
In this embodiment, the window file is analyzed, and the number of the window layout files and the number of the window content files in the window file may be analyzed by using an analysis tool. If the window layout file and the window content file are both one, directly using the established first sub-process and the first browsing window; without recreating the second browse window and the second sub-process. Specifically, the window content file a in the window file may be directly sent to the first sub-process through the main process, and the page content loaded in the first browsing window a is managed through the first sub-process according to the window content file a; therefore, the browsing window is managed quickly, and the operation efficiency is improved.
In some embodiments, step S204 further includes the following steps:
if the number of the window layout files in the window files is multiple, and the number of the window content files in each window file is the same as that of the window layout files; creating a second browsing window, generating a second sub-process corresponding to the second browsing window, and adjusting the window positions of the first browsing window and the second browsing window according to the window layout file;
distributing the window content files in the window files to the corresponding first sub-process and second sub-process through the main process;
managing the page content loaded in the first browsing window through the first sub-process according to the window content file;
and managing the page content loaded in the second browsing window through the second sub-process according to the window content file.
Specifically, if the number of window layout files in a window file is multiple, and the number of window content files in each window file is the same as the number of window layout files. Such as: the number of the window layout files is 2, and then the number of the window content files is 2; because there is already a first browse window, it is necessary to create a second browse window and a corresponding second sub-process by using the main process; adjusting the window positions of the first browsing window and the second browsing window on the display platform according to the window layout file; finally, the window content files in the window files are distributed to the corresponding first sub-process and the second sub-process randomly or according to the priority through the main process; managing the page content loaded in the first browsing window through the first sub-process according to the window content file; and managing the page content loaded in the second browsing window through the second sub-process according to the window content file. Such as: the number of the window layout files is 4, and then the number of the window content files is 4; because there is already one first browsing window, the main process needs to be reused to create three second browsing windows and corresponding three second sub-processes; adjusting the window positions of the first browsing window and the three second browsing windows on the display platform according to the window layout file; finally, the window content files in the window files are distributed to the corresponding first sub-process and the second sub-process randomly or according to the priority through the main process; managing the page content loaded in the first browsing window through the first sub-process according to the window content file; and managing the page content loaded in the second browsing window through the second sub-process according to the window content file. According to the embodiment, efficient management of the windows can be rapidly completed, and the page effect is good.
In some embodiments, step S204 further includes the following steps:
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is multiple; and sending the window content file to the first sub-process through the main process, and managing the page content loaded in the first browsing window according to the window content file and the window layout file through the first sub-process.
Specifically, if the number of window layout files in a window file is one and the number of window content files is multiple, the first sub-process and the first browse window which are already created are directly used; without recreating the second browse window and the second sub-process. However, the page content loaded in the first browsing window needs to be managed according to the window content file and the window layout file; at this time, the window layout file divides a plurality of first browsing windows into a plurality of small H5 web pages in the positions of the first browsing windows to load corresponding window content files.
The mutual communication between H5 webpages in the same browsing window can be realized through the sub-process. Such as: h5 page 1 informs the first sub-process, the first sub-process informs H5 page 2, H5 page 2 feeds back the first sub-process, and the first sub-process feeds back H5 page 1. The first sub-process may filter the messages of the H5 page to ensure that other H5 pages are not affected. Through the communication between the sub first process and the H5 page, the dependence on the network is reduced, and the linkage between different pages is improved.
Through the management of the multiple windows, multiple display modes can be flexibly processed, multiple application scenes can be matched, the original management mode does not need to be changed, and page display is enriched. And common characteristics such as safety, network and the like are processed based on mutual interaction of the main process and the sub-processes, so that the development threshold is reduced, and linkage is provided. And the accuracy of the loaded H5 webpage content can be effectively provided.
In some of these embodiments, the multi-window management method further comprises the steps of:
monitoring the network state of a target platform in real time through a main process;
if the network state is monitored to be the disconnected state, the disconnected network message is sent to the first sub-process through the main process, and the page content loaded in the first browsing window is managed through the first sub-process according to the preset material file;
and when the network state is monitored to be the network disconnection recovery state, the network disconnection recovery message is sent to the first sub-process through the main process, and the page content loaded in the first browsing window is managed through the first sub-process according to the window file.
The embodiment can monitor the network state to manage the page content loaded in the first browsing window, so as to avoid the influence of the network breaking on the content displayed in the first browsing window. In other embodiments, the same is true for the second browse window, and the network state of the target platform is monitored in real time through the host process; if the network state is monitored to be the disconnected state, the disconnected message is sent to the second sub-process through the main process, and the page content loaded in the second browsing window is managed through the second sub-process according to the preset material file; and when the network state is monitored to be the network disconnection recovery state, the network disconnection recovery message is sent to the second sub-process through the main process, and the page content loaded in the second browsing window is managed through the second sub-process according to the window file.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
In this embodiment, a multi-window management apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. The terms "module," "unit," "subunit," and the like as used below may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of the structure of the multi-window management apparatus of the present embodiment, and as shown in fig. 3, the apparatus includes: the system comprises a starting module 201, a creating module 202, an obtaining module 203 and a management module 204;
the starting module 201 is configured to generate a main process corresponding to a desktop application when the desktop application in the target platform is started;
a creating module 202, configured to create a first browsing window by using a main process, and generate a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
an obtaining module 203, configured to obtain a window file from a cloud server;
the management module 204 is configured to manage the first browsing window according to the window file through the main process and the first sub-process.
By the device, a first browsing window is created by utilizing a main process which is started in a desktop application program and automatically generated by default, and then a first sub-process corresponding to the first browsing window is generated; the windows are managed through the processes and the window files, so that the workload of managing the windows is reduced, and the efficiency of managing the windows is improved; the method solves the problem that each whole window is managed independently through a TAB label, not only increases the workload of managing the windows, but also reduces the efficiency of managing the windows.
In some embodiments, on the basis of fig. 3, the method further comprises creating an encapsulation module;
and the creating and packaging module is used for creating the cross-platform desktop application program, and packaging the difference of the target platform by using the API function to obtain a uniform functional interface when the cross-platform desktop application program is created.
In some embodiments, the obtaining module 203 is further configured to obtain the window file from a cloud server based on the functional interface.
In some embodiments, the management module 204 is further configured to parse the window file;
if the number of the window layout files in the window file is one, and the number of the window content files in the window file is one; sending the window content file in the window file to a first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window content file;
if the number of the window layout files in the window files is multiple, and the number of the window content files in each window file is the same as that of the window layout files; creating a second browsing window, generating a second sub-process corresponding to the second browsing window, and adjusting the window positions of the first browsing window and the second browsing window according to the window layout file;
distributing the window content files in the window files to the corresponding first sub-process and second sub-process through the main process;
managing the page content loaded in the first browsing window through the first sub-process according to the window content file;
managing the page content loaded in the second browsing window through the second sub-process according to the window content file;
if the number of the window layout files in the window file is one, and the number of the window content files in the window file is multiple; and sending the window content file to the first sub-process through the main process, and managing the page content loaded in the first browsing window according to the window content file and the window layout file through the first sub-process.
In some of these embodiments, on the basis of fig. 3, a listening module;
the monitoring module is used for monitoring the network state of the target platform in real time through the main process;
if the network state is monitored to be the disconnected state, the disconnected message is sent to the first sub-process through the main process, and the page content loaded in the first browsing window is managed through the first sub-process according to the preset material file;
and when the network state is monitored to be the network disconnection recovery state, the network disconnection recovery message is sent to the first sub-process through the main process, and the page content loaded in the first browsing window is managed through the first sub-process according to the window file.
It should be noted that the above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the above modules may be located in the same processor; or the modules may be located in different processors in any combination.
There is also provided in this embodiment an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when a desktop application program in a target platform is started, generating a main process corresponding to the desktop application program;
s2, creating a first browsing window by using the main process, and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
s3, acquiring a window file from a cloud server;
and S4, managing the first browsing window according to the window file through the main process and the first sub-process.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details are not described in this embodiment again.
In addition, in combination with the multi-window management method provided in the foregoing embodiment, a storage medium may also be provided to implement in this embodiment. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the multi-window management methods of the above embodiments.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be derived by a person skilled in the art from the examples provided herein without inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for multi-window management, comprising:
when a desktop application program in a target platform is started, generating a main process corresponding to the desktop application program;
creating a first browsing window by using the main process, and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
acquiring a window file from a cloud server;
managing the first browsing window through the main process and the first sub-process according to the number of window layout files and the number of window content files in the window files;
wherein, managing the first browsing window according to the number of the window layout files and the number of the window content files in the window file by the main process and the first sub-process includes:
analyzing the window file;
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is one; and sending the window content file in the window file to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window content file.
2. The multi-window management method of claim 1, wherein the method further comprises:
and creating the cross-platform desktop application program, and packaging the difference of the target platform by using an API (application programming interface) function when the cross-platform desktop application program is created to obtain a uniform functional interface.
3. The multi-window management method according to claim 2, wherein the obtaining the window file from the cloud server comprises:
and acquiring the window file from the cloud server based on the functional interface.
4. The multi-window management method of claim 1, further comprising:
if the number of the window layout files in the window files is multiple, and the number of the window content files in each window file is the same as the number of the window layout files; creating a second browsing window, generating a second sub-process corresponding to the second browsing window, and adjusting the window positions of the first browsing window and the second browsing window according to the window layout file;
distributing the window content files in the window files to a corresponding first sub-process and a corresponding second sub-process through the main process;
managing the page content loaded in the first browsing window according to the window content file through the first sub-process;
and managing the page content loaded in the second browsing window through the second sub-process according to the window content file.
5. The multi-window management method of claim 1, wherein the method further comprises:
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is multiple; and sending the window content file to the first sub-process through the main process, and managing the page content loaded in the first browsing window according to the window content file and the window layout file through the first sub-process.
6. The multi-window management method of claim 1, further comprising:
monitoring the network state of the target platform in real time through the main process;
if the network state is monitored to be a disconnected network state, the disconnected network message is sent to the first sub-process through the main process, and page content loaded in the first browsing window is managed through the first sub-process according to a preset material file;
and when the network state is monitored to be the network disconnection recovery state, sending a network disconnection recovery message to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window file.
7. A multi-window management apparatus, comprising: the system comprises a starting module, a creating module, an obtaining module and a management module;
the starting module is used for generating a main process corresponding to a desktop application program when the desktop application program in a target platform is started;
the creating module is used for creating a first browsing window by using the main process and generating a first sub-process corresponding to the first browsing window; the main process is in communication connection with the corresponding first sub-process;
the acquisition module is used for acquiring the window file from the cloud server;
the management module is used for managing the first browsing window through the main process and the first sub-process according to the number of window layout files and the number of window content files in the window files;
the management module is also used for analyzing the window file;
if the number of the window layout files in the window files is one, and the number of the window content files in the window files is one; and sending the window content file in the window file to the first sub-process through the main process, and managing the page content loaded in the first browsing window through the first sub-process according to the window content file.
8. The multi-window management apparatus of claim 7, further comprising a create package module;
the creation and encapsulation module is used for creating a cross-platform desktop application program, and encapsulating the difference of the target platform by using the API function when the cross-platform desktop application program is created to obtain a uniform functional interface.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is arranged to run the computer program to perform the steps of the multi-window management method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the multi-window management method of any one of claims 1 to 6.
CN202210572384.9A 2022-05-25 2022-05-25 Multi-window management method, device, electronic device and storage medium Active CN114675906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210572384.9A CN114675906B (en) 2022-05-25 2022-05-25 Multi-window management method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210572384.9A CN114675906B (en) 2022-05-25 2022-05-25 Multi-window management method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114675906A CN114675906A (en) 2022-06-28
CN114675906B true CN114675906B (en) 2022-10-04

Family

ID=82079962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210572384.9A Active CN114675906B (en) 2022-05-25 2022-05-25 Multi-window management method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114675906B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124185A (en) * 1992-10-12 1994-05-06 Sharp Corp Multiwindow plotting managing device
CN102981877A (en) * 2012-11-28 2013-03-20 北京奇虎科技有限公司 Method and device for loading picture toolbar
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
CN111752435A (en) * 2020-06-24 2020-10-09 北京小鸟科技股份有限公司 Multimedia and multi-file multimedia real-time rendering method, system and device
CN113641929A (en) * 2021-08-12 2021-11-12 百度在线网络技术(北京)有限公司 Page rendering method and device, electronic equipment and computer-readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594813B (en) * 2012-02-10 2016-03-30 北京奇虎科技有限公司 Many account login methods and device
CN104317562B (en) * 2014-09-25 2018-07-10 北京金山安全软件有限公司 Information display method and device and terminal
CN107992301B (en) * 2017-11-27 2020-02-21 腾讯科技(上海)有限公司 User interface implementation method, client and storage medium
US11500859B2 (en) * 2019-11-13 2022-11-15 Salesforce, Inc. System and method for propagating modifications in flows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124185A (en) * 1992-10-12 1994-05-06 Sharp Corp Multiwindow plotting managing device
CN102981877A (en) * 2012-11-28 2013-03-20 北京奇虎科技有限公司 Method and device for loading picture toolbar
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
CN111752435A (en) * 2020-06-24 2020-10-09 北京小鸟科技股份有限公司 Multimedia and multi-file multimedia real-time rendering method, system and device
CN113641929A (en) * 2021-08-12 2021-11-12 百度在线网络技术(北京)有限公司 Page rendering method and device, electronic equipment and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OpenGL多窗口显示质量的提高;周永前等;《长春理工大学学报(自然科学版)》;20061230(第04期);全文 *

Also Published As

Publication number Publication date
CN114675906A (en) 2022-06-28

Similar Documents

Publication Publication Date Title
US11119812B2 (en) Method and device for processing application program page according to a common interface container
CN110708346B (en) Information processing system and method
CN109766082B (en) Method and device for application program page jump
CN106874519B (en) Page display method and device
CN110020329B (en) Method, device and system for generating webpage
CN104111944A (en) Page processing method and device and page generating method and device
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN108399333B (en) System and method for performing antivirus scanning of web pages
US20090228549A1 (en) Method of tracking usage of client computer and system for same
CN112015383A (en) Login method and device
CN113094612A (en) Method and device for loading webpage at client, electronic equipment and medium
CN114675906B (en) Multi-window management method, device, electronic device and storage medium
CN110647327B (en) Method and device for dynamic control of user interface based on card
KR20180057619A (en) A notification method for performing push notification to the portable terminal and a notification server
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN109597952B (en) Webpage information processing method, system, electronic equipment and storage medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium
CN112347382A (en) Product page sharing method and device and electronic equipment
CN112579447A (en) Browser testing method and device
CN110858240A (en) Front-end module loading method and device
CN115577200B (en) Page loading method, device, equipment and storage medium
CN109218270B (en) Method and device for processing hijacked request

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant