CN114238821A - Popup window processing method and device - Google Patents

Popup window processing method and device Download PDF

Info

Publication number
CN114238821A
CN114238821A CN202210148262.7A CN202210148262A CN114238821A CN 114238821 A CN114238821 A CN 114238821A CN 202210148262 A CN202210148262 A CN 202210148262A CN 114238821 A CN114238821 A CN 114238821A
Authority
CN
China
Prior art keywords
page
popup
opened
host
hardware acceleration
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
CN202210148262.7A
Other languages
Chinese (zh)
Other versions
CN114238821B (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.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi 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 Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202210148262.7A priority Critical patent/CN114238821B/en
Publication of CN114238821A publication Critical patent/CN114238821A/en
Application granted granted Critical
Publication of CN114238821B publication Critical patent/CN114238821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/451Execution arrangements for user interfaces

Abstract

The disclosure provides a popup processing method and device, relates to the technical field of computers, and can be used for popup processing scenes. The specific implementation scheme is as follows: in response to receiving a popup opening operation based on a current page, determining at least one target page in which a hardware acceleration function is opened based on at least one page which is opened and is not actively closed; selecting an agent host for constructing a popup from at least one target page; constructing a corresponding popup by taking the proxy host as a popup host; and displaying the constructed popup on the current page.

Description

Popup window processing method and device
Technical Field
The present disclosure relates to the field of computer technology, and may be used in pop-up window processing scenarios.
Background
Compared with a high-version android mobile phone, the CPU performance of a low-version android mobile phone is poorer. Taking the patent information of the company detail page as an example, using a low-profile android mobile phone, entering the patent information page through the company detail page, clicking a button at the upper right corner of the page to open a quick navigation window, and then sliding the window to find screen flicker at the lower end of the window.
Disclosure of Invention
The disclosure provides a popup processing method, device, equipment, storage medium and computer program product.
According to an aspect of the present disclosure, there is provided a popup window processing method for determining at least one target page in which a hardware acceleration function is opened based on at least one page that is opened and is not actively closed in response to receiving a popup window opening operation based on a current page; selecting an agent host for constructing a popup from the at least one target page; constructing a corresponding popup by taking the proxy host as a popup host; and displaying the constructed popup window on the current page.
According to another aspect of the present disclosure, there is provided a popup window processing apparatus including an execution module configured to, in response to receiving a popup window opening operation based on a current page, execute the corresponding operation by: the determining unit is used for determining at least one target page in which the hardware acceleration function is opened based on at least one page which is opened and is not actively closed; the selecting unit is used for selecting an agent host for constructing the popup from the at least one target page; the construction unit is used for constructing a corresponding popup by taking the proxy host as a popup host; and the display unit is used for displaying the constructed popup on the current page.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to embodiments of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1A illustrates a system architecture diagram suitable for the methods and apparatus of the disclosed embodiments;
FIGS. 1B-1F illustrate exemplary scene diagrams in which embodiments of the disclosure may be implemented;
FIG. 2 illustrates a flow chart of a pop-up window processing method according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a pop-up window processing scheme according to an embodiment of the present disclosure;
fig. 4 illustrates a block diagram of a pop-up window processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an electronic device for implementing the pop-up window processing method and apparatus according to the embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As described above, taking the patent information of the company detail page as an example, using a low-profile android phone, entering the patent information page through the company detail page, clicking a button on the upper right corner of the page to open the shortcut navigation window, and then sliding the window to enable the lower-end screen to flicker.
In carrying out the inventive concepts of the present disclosure, the inventors discovered: the reason that the sliding popup can flicker is that when the statistical analysis tab of the patent information page calls the function of generating the long drawing, the CPU needs to perform virtual scrolling on the diagram content inside, that is, to capture the diagram content, and when the hardware of the popup host is started to accelerate, since the diagram drawing work is mainly executed by the GPU, the GPU may not complete the diagram drawing work, but the CPU has completed the capture task, which results in the phenomenon that the diagram area in the picture is blank after the long drawing is generated. To solve this problem, the hardware acceleration function of the popup host needs to be turned off. However, after the hardware acceleration function of the popup host is closed, the chart drawing work originally executed by the GPU is transferred to the CPU for execution, which greatly increases the burden on the CPU. In addition, when the pop-up window is slid, the list on the window frequently calls the interface redrawing function, which also greatly burdens the CPU. And because the CPU performance of the low-profile android mobile phone is not high, the drawing operation is slowed down, and even the phenomena of frame blocking, frame dropping and the like occur, namely the phenomenon of screen flashing visible to naked eyes of a user.
Considering that the hardware acceleration function is written down in the application program development, the hardware acceleration function of the network page (such as the popup host) cannot be flexibly opened or closed in the application program using process.
Based on this, the embodiments of the present disclosure provide a popup processing method and apparatus, which can dynamically select an agent host with a hardware acceleration function being turned on to create a popup, thereby overcoming the above contradiction, that is, the problem of screen flashing during a graph area blank and sliding popup can be solved at the same time.
The present disclosure will be described in detail below with reference to the drawings and specific embodiments.
A system architecture suitable for the pop-up window processing method and apparatus of the embodiments of the present disclosure is described below.
FIG. 1A illustrates a system architecture suitable for implementation of the present disclosure. It should be noted that fig. 1A is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be used in other environments or scenarios.
As shown in fig. 1A, a system architecture suitable for embodiments of the present disclosure may include: the user opens pages 101-104 and queue 105 in sequence without active closing. Wherein each time a user opens a page, the system may store its page structure data in a corresponding location in the queue 105. As shown in FIG. 1A, the page structure data of pages 101-104 can be sequentially stored in the queue 105 at locations 01-04. Illustratively, the right side of FIG. 1A is an enlarged view of the page 104, and tapping the button 1040 in the upper right corner of the page 104 opens the quick navigation window 1041. If the technical scheme provided in the prior art is adopted, although no graph area blank appears when the page of statistical analysis is opened, when the quick navigation window 1041 is slid, the screen area 1042 at the lower end of the window flickers; if the technical scheme provided by the embodiment of the present disclosure is adopted, not only the blank of the chart area will not appear when the page of statistical analysis is opened, but also the screen area 1042 at the lower end of the window will not flash when the fast navigation window 1041 is slid. The specific scheme for implementing the above function in the embodiments of the present disclosure will be described below, and the present disclosure is not described herein again.
It should be understood that the number of pages in FIG. 1A that are opened in sequence by the user and not actively closed is merely illustrative. The user opens in sequence without actively closing any number of pages, as desired for implementation.
Application scenarios of the pop-up window processing method and apparatus suitable for the embodiments of the present disclosure are described below.
In the business information query website, a business detail page (page contents omitted) as shown in fig. 1B can be found. Clicking on the "patent information" navigation button (not shown) in the enterprise details page may present an interface as shown in fig. 1C (interface contents have also been omitted). Clicking a navigation button of 'statistical analysis' in the page shown in fig. 1C, and in the case of starting a hardware acceleration function of the enterprise detail page, displaying the interface shown in fig. 1D, and finding that a chart area in the interface is blank; in the case of closing the hardware acceleration function of the enterprise detail page, an interface such as that shown in FIG. 1E may be exposed, in which it may be found that the chart area is not blank.
As described above, tapping the button 1040 in the upper right corner of the page 104 in FIG. 1F opens the fast navigation window 1041, which is a pop-up window.
If the technical scheme provided in the prior art is adopted, in order to achieve the effect that a graph area is not blank when a 'statistical analysis' interface is opened, when the quick navigation window 1041 is slid, the screen area 1042 at the lower end of the window inevitably flickers; in order to realize the sliding of the fast navigation window 1041, the screen area 1042 at the lower end of the window does not have the screen flashing effect, and a blank chart area is inevitably generated when the "statistical analysis" interface is opened. That is, in the prior art, when the scene is faced, the two effects of the "statistical analysis" interface that the graph area is not blank and the lower-end screen does not flash when the fast navigation window 1041 is slid cannot be considered.
If the technical scheme provided by the embodiment of the present disclosure is adopted, in the face of the scene, on the premise of ensuring that the "statistical analysis" interface has the effect that the graph area is not blank, the page which is opened with the hardware acceleration function and is alive can be dynamically selected as the proxy host of the popup window, and the effect that the lower-end screen does not flash when the fast navigation window 1041 is slid is ensured. That is, in the embodiment of the present disclosure, when facing the scene, two effects of the graph area in the "statistical analysis" interface being not blank and the lower-end screen not flashing when the fast navigation window 1041 is slid may be considered.
According to an embodiment of the present disclosure, there is provided a pop-up window processing method.
Fig. 2 illustrates a flowchart of a pop-up window processing method according to an embodiment of the present disclosure.
As shown in FIG. 2, the method 200 may include performing operations S210-S240 in response to receiving a pop-open operation based on a current page.
In operation S210, at least one target page in which a hardware acceleration function is opened is determined based on at least one page that has been opened and is not actively closed.
In operation S220, an agent host for constructing a popup is selected from at least one target page.
In operation S230, the proxy host is used as a popup host, and a corresponding popup is constructed.
In operation S240, the constructed popup is presented on the current page.
In the embodiment of the present disclosure, for any web page, regardless of whether the hardware acceleration function is open or closed, as long as the pop-up window opening operation based on the current page is detected, the above operations S210 to S240 may be performed, so that one page with the hardware acceleration function opened is selected from one or more pages that are currently opened and are not actively closed by the user to serve as an agent host for creating the pop-up window. Therefore, the two effects of no blank of a diagram area in a specific interface and no screen flashing of a lower end screen during sliding popup can be considered.
It should be understood that, in an embodiment of the present disclosure, the at least one page that is opened and is not actively closed by the user in operation S210 may be a page in the same application program or a page in a different application program, and the present disclosure is not limited thereto.
In addition, as an alternative embodiment, the at least one page that is opened and not actively closed may include the current page or not include the current page.
It should be noted that, in the case that the current page is included, no matter whether the hardware acceleration function of the current page is open or closed, as long as the pop-up window opening operation based on the current page is detected, the operations S210 to S240 may be performed, so that one page with the hardware acceleration function turned on is selected from one or more pages that are turned on until all pages that are opened currently and are not closed by the user actively to serve as the proxy host for creating the pop-up window. It should be appreciated that the present solution is particularly well suited to scenarios where it is not necessary to determine in advance whether the hardware acceleration functionality of the current page is closed or open. The popup is created in a proxy host mode, so that no matter whether the current page is closed by hardware acceleration or not, the phenomenon of screen flashing can not occur when the list in the popup is slid (namely, when the popup is slid).
Or, in the case that the current page is not included, no matter whether the hardware acceleration function of the current page is open or closed, as long as the pop-up window opening operation based on the current page is detected, the operations S210 to S240 may be performed, so that one page with the hardware acceleration function being opened is selected from one or more pages that have been opened before the current page and are not actively closed by the user as an agent host for creating the pop-up window. It should be appreciated that the present solution is particularly well suited to scenarios where the hardware acceleration functionality of the current page is determined to have been turned off.
As an alternative embodiment, the method may further comprise: before determining at least one target page in which a hardware acceleration function is opened based on at least one page that has been opened and is not actively closed, the following operations are performed.
It is determined whether the hardware acceleration function of the current page is turned off.
Wherein, in response to determining that the hardware acceleration function of the current page is closed, performing an operation of determining at least one target page in which the hardware acceleration function is opened based on at least one page that is opened and not actively closed.
Further, as an optional embodiment, the method may further include: and in response to determining that the hardware acceleration function of the current page is opened, directly taking the current page as a popup host, constructing a corresponding popup, and displaying the constructed popup on the current page.
In the embodiment of the present disclosure, in response to receiving a pop-open operation based on a current page, before selecting an agent host for the pop-open, that is, before determining at least one target page in which a hardware acceleration function is opened based on at least one page that is opened and not actively closed, it may be determined whether the hardware acceleration function of the current page is closed. If the hardware acceleration function of the current page is closed, selecting an agent host for the popup window; if the hardware acceleration function of the current page is opened, the proxy host is not selected for popup, and the popup is directly constructed by taking the current page as the host. Therefore, under the condition that the hardware acceleration function of the current page is opened, the related operation of selecting the proxy host can be omitted, and the popup window construction efficiency can be improved. And under the condition that the hardware acceleration function of the current page is closed, the relevant operation of selecting the proxy host can be executed, so that two effects of not blanking a diagram area in a specific interface and not flashing a lower-end screen when the popup window is slid can be ensured.
In addition, as an alternative embodiment, selecting an agent host for constructing a popup from the at least one target page may include: at least one candidate page in the survival state is selected from the at least one target page, and then an agent host for constructing the popup window is selected from the at least one candidate page in the survival state.
Since the system has a limit on the number of pages that are simultaneously opened, once the number of pages that are simultaneously opened exceeds a preset threshold, the system kills a portion of the pages to limit the number of live pages in the background. It can be seen that there is no guarantee that all the pages that have been opened and are not actively closed by the user are alive pages.
Therefore, if at least one target page in which the hardware acceleration function is opened is selected from only pages that have been opened and are not actively closed by the user, and one of the pages is selected from the at least one target page as a proxy host for the popup, there is a possibility that the selected page is a non-live page, in which case not only the two effects described above cannot be compatible, but also the popup creation may fail. In order to solve the problem, in some embodiments of the present disclosure, after the at least one target page is screened, a secondary screening may be performed first, and then one of the pages is selected from the secondary screening result as an agent host for constructing a popup window, that is, at least one candidate page in a live state may be selected from the at least one target page first, and then one of the pages is selected from the at least one candidate page in a live state as an agent host for constructing a popup window.
Further, as an alternative embodiment, the method may further include the following operations.
Each time a user opens a page, the user stores it in a designated queue or stack.
Each time the user closes a page, the user removes it from the queue or stack.
Wherein determining at least one target page in which a hardware acceleration function is opened based on at least one page that has been opened and is not actively closed comprises: and traversing from the tail part or the head part of the queue, and determining at least one page in which the hardware acceleration function is opened as at least one target page.
In some embodiments of the present disclosure, the pages opened by the user may be sequentially stored in a specified queue or stack according to the time sequence of the opened pages, and the user deletes one page from the queue or stack each time the user closes the page, so that all pages in the queue or stack may be used as at least one opened page that is not actively closed as referred to in the foregoing, and then at least one target page from which the hardware acceleration function is opened is determined.
Through the public disclosure embodiment, which pages are opened currently and not closed actively by the user can be found out simply and quickly, so that the popup window creation efficiency can be improved.
Further, as an optional embodiment, selecting an agent host for constructing a popup window from the at least one target page may include: and selecting one page which is positioned closest to the tail part of the queue in the at least one target page as an agent host for constructing the popup window.
As mentioned above, since the system has a limit on the number of pages that are simultaneously open, once the number of pages that are simultaneously open exceeds a predetermined threshold, the system kills some of the pages to limit the number of background surviving pages. It can be seen that there is no guarantee that all the pages that have been opened and are not actively closed by the user are alive pages.
Therefore, if at least one target page in which the hardware acceleration function is opened is selected from only pages that have been opened and are not actively closed by the user, and one of the pages is selected from the at least one target page as a proxy host for the popup, there is a possibility that the selected page is a non-live page, in which case not only the two effects described above cannot be compatible, but also the popup creation may fail. In order to solve the problem, in other embodiments of the present disclosure, the pages opened by the user may be sequentially stored in a designated queue according to the time sequence of opening the pages, and the user deletes one page from the queue each time the user closes the page. Therefore, the selected page can be ensured to be a survival page, the popup can be successfully created, and the screen flashing phenomenon cannot occur when the list in the popup is slid.
The disclosure is described in detail below with reference to one specific embodiment.
As shown in fig. 3, the present embodiment includes the following operations.
In operation S310, taking the patent information page in the enterprise details as an example, the regular entry of the patent information page requires that the enterprise query APP is opened to enter the first page, and the first page may be added to the designated queue.
In operation S320, a company is searched from the first page (the company needs to have relevant patent information), and the company detail page is entered by clicking the search result, and then the company detail page is added to the designated queue.
In operation S330, if exiting from the above-mentioned company detail page, it is necessary to remove this page from the above-mentioned specified queue, in such a way as to ensure that all pages in the queue are alive (excluding the case where the system may kill some background pages).
It should be understood that in this example, "conventional" is defined as: an operation habit of a common user for using the APP; the definition of "queue" is: a data structure can store a plurality of data; "survival" is defined as: and the pages which are not actively closed by the user before entering the target page are all survival pages.
In operation S340, since the Android system has a limited number of the background live pages, a page that is recently opened and has no hardware acceleration function closed is recursively searched from the back to the front in the queue as a proxy host.
It should be understood that in this embodiment, "host" is defined as: each surviving page can be understood as a host.
In operation S350, when the popup is constructed, a parameter that must be transmitted is the host, and the context (root) of the proxy host with the hardware acceleration function that is not turned off and found in operation S304 is transmitted to the host, so that the host proxy can be implemented.
In operation S360, the popup can be displayed on the current page by calling the popup display method (the proxy host is borrowed to create the popup, but the popup is still displayed on the current page), and the displayed effect can refer to fig. 1F. It should be understood that, especially for low-profile mobile phones, if the current page closes the hardware acceleration function, the popup implementation scheme in the prior art is adopted, that is, the current page is directly used as the host to create the popup, the lower end region of the screen may be sensed to flash when the list in the popup is slid, whereas the lower end region of the screen may not be sensed to flash when the list in the popup is slid by using the implementation scheme provided by the embodiment of the present disclosure to create the popup by the proxy host.
Through the embodiment of the disclosure, on one hand, the popup can be popped up without depending on the current host (namely the current page), so that the use of the popup is more flexible; on the other hand, the host of the popup is realized in a dynamic proxy mode, so that the host is not influenced by whether the hardware acceleration function is opened by the host under the popup, and the occurrence of some special scenes (such as a splash screen) can be effectively avoided.
In addition, embodiments of the present disclosure record live pages via queues, which allows the traditional way of skipping windows that must be opened in a host to implement pop-windows. And the current page (namely the original host) is replaced by the proxy host, so that the phenomenon of screen flashing when a window pops up and a list in the window slides under the condition that the hardware acceleration function of the current page is closed can be avoided.
According to the embodiment of the disclosure, the disclosure also provides a popup window processing device.
Fig. 4 illustrates a block diagram of a pop-up window processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the apparatus 400 includes an execution module 401, configured to, in response to receiving a pop-up window opening operation based on a current page, execute a corresponding operation through the following units.
The determining unit 4011 is configured to determine at least one target page in which the hardware acceleration function is turned on based on at least one page that is already turned on and is not actively turned off.
And the selecting unit 4012 is configured to select an agent host for constructing a popup from the at least one target page.
The building unit 4013 is configured to build a corresponding popup by using the proxy host as a popup host.
And the display unit 4014 is configured to display the constructed popup on the current page.
As an alternative embodiment, the apparatus further comprises: the determining module is used for determining whether the hardware acceleration function of the current page is closed or not before determining at least one target page in which the hardware acceleration function is opened based on at least one page which is opened and is not closed actively. The determining unit is further configured to, in response to determining that the hardware acceleration function of the current page is closed, perform the operation of determining at least one target page in which the hardware acceleration function is opened based on at least one page that is opened and not actively closed.
Further, as an optional embodiment, the apparatus further comprises: and the construction module is used for directly taking the current page as a popup host to construct a corresponding popup and displaying the constructed popup on the current page in response to the fact that the hardware acceleration function of the current page is opened.
Furthermore, the selecting unit is further configured to: at least one candidate page in the survival state is selected from the at least one target page, and then an agent host for constructing the popup window is selected from the at least one candidate page in the survival state.
As an alternative embodiment, the apparatus further comprises the following modules. And the storage module is used for storing the page into a specified queue every time a user opens the page. And the deleting module is used for deleting the page from the queue every time the user closes the page. Wherein the determining unit is further configured to: and traversing from the tail of the queue, and determining at least one page in which the hardware acceleration function is opened as the at least one target page.
Further, as an optional embodiment, the selecting unit is further configured to: and selecting one page which is positioned closest to the tail part of the queue in the at least one target page as an agent host for constructing the popup window.
As an optional embodiment, the at least one opened page that is not actively closed includes the current page or does not include the current page.
It should be understood that the device embodiments of the present disclosure correspond to the method embodiments of the present disclosure, and the technical problems to be solved and the technical effects to be achieved also correspond to the same or similar, and the detailed description of the device embodiments of the present disclosure is omitted here.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the pop-up window processing method. For example, in some embodiments, the pop-window processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the popup processing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the pop-window processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (10)

1. A pop-up window processing method, comprising: in response to receiving a pop-up window open operation based on the current page,
determining at least one target page in which a hardware acceleration function is opened based on at least one page that is opened and not actively closed;
selecting an agent host for constructing a popup from the at least one target page;
constructing a corresponding popup by taking the proxy host as a popup host; and
and displaying the constructed popup window on the current page.
2. The method of claim 1, further comprising: before determining at least one target page in which a hardware acceleration function is opened based on at least one page that is opened and not actively closed,
determining whether a hardware acceleration function of the current page is turned off;
wherein, in response to determining that the hardware acceleration function of the current page is closed, the operation of determining at least one target page in which the hardware acceleration function is opened based on at least one page that is opened and not actively closed is executed.
3. The method of claim 2, further comprising:
and in response to determining that the hardware acceleration function of the current page is opened, directly taking the current page as a popup host, constructing a corresponding popup, and displaying the constructed popup on the current page.
4. The method of claim 1, wherein selecting the proxy host from the at least one target page for constructing a popup comprises:
selecting at least one candidate page in a survival state from the at least one target page, and then selecting an agent host for constructing a popup from the at least one candidate page in the survival state.
5. The method of claim 1, further comprising:
storing the page into a specified queue when a user opens the page;
deleting a page from the queue each time the user closes the page;
wherein the determining at least one target page in which a hardware acceleration function is opened based on at least one page that is opened and not actively closed comprises:
and traversing from the tail of the queue, and determining at least one page in which a hardware acceleration function is opened as the at least one target page.
6. The method of claim 5, wherein selecting the proxy host from the at least one target page for constructing a popup comprises:
and selecting one page which is positioned closest to the tail part of the queue in the at least one target page as an agent host for constructing the popup window.
7. The method of claim 1, wherein the at least one page that has been opened and not actively closed includes the current page or does not include the current page.
8. The popup window processing device is characterized by comprising an execution module, and in response to receiving a popup window opening operation based on a current page, executing the corresponding operation through the following units:
the determining unit is used for determining at least one target page in which the hardware acceleration function is opened based on at least one page which is opened and is not actively closed;
the selecting unit is used for selecting an agent host for constructing the popup from the at least one target page;
the construction unit is used for constructing a corresponding popup by taking the proxy host as a popup host; and
and the display unit is used for displaying the constructed popup on the current page.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202210148262.7A 2022-02-18 2022-02-18 Popup window processing method and device Active CN114238821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210148262.7A CN114238821B (en) 2022-02-18 2022-02-18 Popup window processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210148262.7A CN114238821B (en) 2022-02-18 2022-02-18 Popup window processing method and device

Publications (2)

Publication Number Publication Date
CN114238821A true CN114238821A (en) 2022-03-25
CN114238821B CN114238821B (en) 2022-04-29

Family

ID=80747565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210148262.7A Active CN114238821B (en) 2022-02-18 2022-02-18 Popup window processing method and device

Country Status (1)

Country Link
CN (1) CN114238821B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226570A (en) * 2022-12-06 2023-06-06 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium
CN116226570B (en) * 2022-12-06 2024-05-10 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028185A1 (en) * 2005-07-26 2007-02-01 Bhogal Kulvir S System and method to allow authorized pop-ups on a website
US20100199199A1 (en) * 2009-01-30 2010-08-05 Oracle International Corporation Manipulation of Window Controls in a Popup Window
CN107391115A (en) * 2017-06-28 2017-11-24 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for realizing pop-up alternative events
CN110297635A (en) * 2019-06-27 2019-10-01 百度在线网络技术(北京)有限公司 Display methods, device, equipment and the storage medium of the page
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN112346796A (en) * 2020-09-25 2021-02-09 北京淇瑀信息科技有限公司 Popup window storage display method and device and electronic equipment
CN112394869A (en) * 2020-10-16 2021-02-23 腾讯科技(深圳)有限公司 Vehicle-mounted terminal based applet control method, device, equipment and storage medium
CN112527424A (en) * 2019-09-19 2021-03-19 北京国双科技有限公司 Control method and device for popup window
CN112861044A (en) * 2021-02-09 2021-05-28 苏州达家迎信息技术有限公司 Page display control method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028185A1 (en) * 2005-07-26 2007-02-01 Bhogal Kulvir S System and method to allow authorized pop-ups on a website
US20100199199A1 (en) * 2009-01-30 2010-08-05 Oracle International Corporation Manipulation of Window Controls in a Popup Window
CN107391115A (en) * 2017-06-28 2017-11-24 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for realizing pop-up alternative events
CN110297635A (en) * 2019-06-27 2019-10-01 百度在线网络技术(北京)有限公司 Display methods, device, equipment and the storage medium of the page
CN112527424A (en) * 2019-09-19 2021-03-19 北京国双科技有限公司 Control method and device for popup window
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN112346796A (en) * 2020-09-25 2021-02-09 北京淇瑀信息科技有限公司 Popup window storage display method and device and electronic equipment
CN112394869A (en) * 2020-10-16 2021-02-23 腾讯科技(深圳)有限公司 Vehicle-mounted terminal based applet control method, device, equipment and storage medium
CN112861044A (en) * 2021-02-09 2021-05-28 苏州达家迎信息技术有限公司 Page display control method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MANAASDFASDF: "始终悬浮在Android屏幕的弹窗", 《HTTPS://BLOG.CSDN.NET/RUINGMAN/ARTICLE/DETAILS/51336153》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226570A (en) * 2022-12-06 2023-06-06 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium
CN116226570B (en) * 2022-12-06 2024-05-10 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium

Also Published As

Publication number Publication date
CN114238821B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US10585923B2 (en) Generating search keyword suggestions from recently used application
US11544927B2 (en) Video type detection method and apparatus based on key frame, and storage medium
US11423907B2 (en) Virtual object image display method and apparatus, electronic device and storage medium
US20160378274A1 (en) Usability improvements for visual interfaces
CN113657518B (en) Training method, target image detection method, device, electronic device, and medium
CN114090155A (en) Robot process automation interface element positioning method and device and storage medium
CN113033346B (en) Text detection method and device and electronic equipment
CN114238821B (en) Popup window processing method and device
CN113139542B (en) Object detection method, device, equipment and computer readable storage medium
CN111611476B (en) Thematic page display method and device
CN112597377A (en) Information extraction module generation method, information extraction method and device
CN113691403A (en) Topological node configuration method, related device and computer program product
CN112597012A (en) Traversal method and device of application program, electronic equipment and storage medium
CN112560987A (en) Image sample processing method, device, equipment, storage medium and program product
CN108092875B (en) Expression providing method, medium, device and computing equipment
CN115310016B (en) Webpage interface display method, device, equipment and storage medium
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN115309375B (en) Processing method and device of application programming interface, electronic equipment and medium
CN114979471B (en) Interface display method, device, electronic equipment and computer readable storage medium
CN117118879B (en) Network protocol vulnerability discovery method, device, equipment and storage medium
EP4086905B1 (en) Voice activity detection method and apparatus, electronic device and storage medium
CN115296917B (en) Asset exposure surface information acquisition method, device, equipment and storage medium
US20240111406A1 (en) Processing method and apparatus, and electronic device
EP4071690A2 (en) Method and apparatus for task information management, device and storage medium
CN116028155A (en) Intelligent rendering method and device, electronic equipment and storage medium

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