CN112068742A - Method, device, terminal and storage medium for controlling application window - Google Patents

Method, device, terminal and storage medium for controlling application window Download PDF

Info

Publication number
CN112068742A
CN112068742A CN202010350665.0A CN202010350665A CN112068742A CN 112068742 A CN112068742 A CN 112068742A CN 202010350665 A CN202010350665 A CN 202010350665A CN 112068742 A CN112068742 A CN 112068742A
Authority
CN
China
Prior art keywords
window
application
windows
display area
activated state
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.)
Pending
Application number
CN202010350665.0A
Other languages
Chinese (zh)
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010350665.0A priority Critical patent/CN112068742A/en
Publication of CN112068742A publication Critical patent/CN112068742A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, a terminal and a storage medium for controlling an application window. The method comprises the following steps: displaying a plurality of application windows in a display area of the terminal, wherein the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1; and in response to the operation on the application window in the activated state, performing coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and performing window control on the application corresponding to the application window in the activated state based on the converted coordinate value. By adopting the method for controlling the application windows, a plurality of application windows can be displayed in the display area, and the plurality of application windows which are simultaneously displayed can be operated, so that the user interaction experience among the plurality of windows is improved.

Description

Method, device, terminal and storage medium for controlling application window
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and more particularly, to a method, an apparatus, a terminal and a storage medium for controlling an application window.
Background
Currently, a smart terminal is generally capable of operating only one window. When multiple windows are running simultaneously, it is inevitable to activate only one window and pause or freeze other windows to solve the conflict problem, which will greatly limit the application scenario of one screen sharing.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a terminal, and a storage medium for controlling an application window, which can implement simultaneous display and operation of multiple windows in a screen.
According to an embodiment of the present disclosure, there is provided a method of controlling an application window, including: displaying a plurality of application windows in a display area of a terminal, wherein the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1; and in response to the operation on the application window in the activated state, performing coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and performing window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
According to another embodiment of the present disclosure, there is provided an apparatus for controlling an application window, including: the terminal comprises a display module, a display module and a display module, wherein the display module is configured to display a plurality of application windows in a display area of the terminal, the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1; and the coordinate conversion module is configured to respond to the operation on the application window in the activated state, perform coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and perform window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
According to another embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for controlling the application window.
According to another embodiment of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described method of controlling an application window.
By adopting the method for controlling the application windows, a plurality of application windows can be displayed in the display area, and the plurality of application windows which are simultaneously displayed can be operated, so that the user interaction experience among the plurality of windows is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 shows a schematic flow diagram of a method of controlling an application window of an embodiment of the present disclosure.
Fig. 2 to 4 show schematic diagrams of window displays of an embodiment of the present disclosure.
Fig. 5 shows a schematic diagram of an apparatus for controlling an application window according to an embodiment of the present disclosure.
FIG. 6 illustrates a schematic structural diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
At present, with the screen of the terminal becoming larger and larger, even a folding screen or a splicing screen appears, higher and higher requirements are also put forward on interaction among multiple windows. In addition, in the multi-window operation, each window is usually only displayed on a partial area of the screen, and how to make the application respond to the operation instruction correctly is a problem to be solved.
In order to solve the above problem, as shown in fig. 1, the present disclosure provides a method for controlling an application window, including step S101 of displaying a plurality of application windows in a display area of a terminal, wherein the plurality of application windows are all set to an active state, the plurality of application windows include a first window and N second windows, and N is an integer greater than or equal to 1.
In some embodiments, displaying the plurality of application windows in the display area of the terminal includes launching the plurality of application windows, which may be accomplished by creating an Activity component.
In addition, it should be understood that the plurality of application windows may be all windows displayed in the display area, or may be only a portion of windows displayed in the display area. Generally, windows displayed in a display area may each be set to an active state, temporarily not displayed outside the display area, may be set to a background state, and may be set to an active state once displayed in the display area. In some embodiments, only a portion of the windows displayed in the display area may be set to the active state. It will be appreciated that this is merely exemplary and that other suitable activation arrangements may be employed.
In one embodiment, the method of the present disclosure further includes step S102, in response to an operation on the application first window in the active state, performing coordinate transformation on a coordinate value of an operation site of the application window in the active state, so that an application corresponding to the application window in the active state performs window control based on the transformed coordinate value. In some embodiments, typically, the terminal system defaults to passing parameters for a full screen display into the created Activity component, so that coordinate control of the window corresponds to the case of a full screen display. In order to achieve precise control of a window that may be displayed only on a portion of the display area, coordinate conversion may be performed and then window control based on the converted coordinate values may be applied. In some embodiments, the coordinate conversion of the coordinate value of the operation site of the application window in the activated state may be performed by the terminal system. In some embodiments, the coordinate conversion of the coordinate values of the operation site of the application window in the activated state may also be performed by the application itself.
By adopting the method for controlling the application windows, a plurality of application windows can be displayed in the display area, and the application windows can be all in an activated state, so that the application windows displayed at the same time can be operated, and the user interaction experience among the application windows is improved. In addition, by adopting coordinate conversion, the application can make a correct response to the operation of the window.
In some embodiments, performing window control for an application corresponding to the application window in the active state based on the converted coordinate values includes: and feeding back the converted coordinate values to the application corresponding to the application window in the activated state for window control by the application. In some embodiments, after the coordinate value of the operation site of the window in the activated state is subjected to the coordinate conversion, the application itself is informed of the converted coordinate value so that the corresponding application makes a correct response.
In some embodiments, the coordinate transforming the coordinate values of the operation site of the first window includes: and converting the coordinate value of the operation site of the first window into a mapping coordinate value corresponding to a preset coordinate system. Generally, the coordinate control of the window corresponds to the case of full-screen display, and at this time, the preset coordinate system corresponds to the coordinates of full-screen display. If other preset coordinate systems are used, the coordinate control of the window corresponds to the other preset coordinate systems. In some embodiments, when the application window in the activated state is displayed in a non-full screen, in order to make the corresponding application respond correctly, the coordinate value of the application window may be converted into a coordinate value corresponding to a preset coordinate system, so that the application window in the activated state, which is displayed in the non-full screen, can also respond correctly to the operation.
In some embodiments, converting the coordinate value of the operation site of the application window in the activated state into a mapping coordinate value corresponding to a preset coordinate system includes: and converting the coordinate value of the operation site of the application window in the activated state into a coordinate value corresponding to the application window when the application window is displayed in a full screen mode. For example, as shown in fig. 2, four application windows 12, 13, 14, and 15 are displayed in the display area 11. It is assumed that the four windows are equally sized and evenly distributed at 1/4 areas of the display area, respectively. At this time, when the window 14 at the upper right corner is touched (e.g., clicked, slid, zoomed, etc.), since the application itself of the window 14 does not know that the display area of the application has been reduced to 1/4 or the side length of the application has been reduced to 1/2, when the user performs touch interaction at the small area at the upper right corner, the system maps the touch coordinate value to the scaled value after the preset coordinate system (e.g., full-screen display) and informs the application of the mapped touch coordinate value, so as to implement the interaction. For example, when the user clicks the center point of the window 14, the actual click position is the center position of the upper right corner region, at this time, the coordinate (x, y) of the point is converted into the coordinate (n, m) corresponding to the preset coordinate system, the coordinate is mapped to the center point of the screen, the application is informed of the converted coordinate, and at this time, the application considers that the click position of the user is the center of the screen, and a correct response is made.
As shown in fig. 2, the coordinates of the operation site are (x, y), and the coordinates of the four corners of the original screen in the predetermined coordinate system are (0, 0), (a, 0), (0, B), and (a, B), respectively. When the side length of the application window is 1/z with respect to the corresponding side length of the original screen, the transformed coordinates (n, m) may be calculated by: when the application window is displayed in the 1 st column from the left, n is x z; when the application window is displayed at the h-th field from the left (h is equal to or less than z), n is (x- ((h-1)/z a) z, when the application window is displayed at the 1 st field from the top, m is y z, when the application window is displayed at the i-th field from the top (i is equal to or less than z), m is (y- ((i-1)/z) B) z. as shown in fig. 2, when 4 windows are displayed in the display area, the side length of the application window is 1/2 of the side length of the original screen, z is 2, similarly, when 9 windows are displayed in the display area, the side length of the application window is 1/3 of the side length of the original screen, z is 3, it should be understood that when different numbers of windows are displayed in the lateral direction and the longitudinal direction, z values may be set in the lateral direction and the longitudinal direction, respectively, for example, when 6 windows (2 rows by 3 columns) are displayed in the display region, the side length of the application window in the horizontal direction is 1/3 of the corresponding side length of the original screen, that is, z is 3 when n is calculated, and the side length of the application window in the vertical direction is 1/2 of the corresponding side length of the original screen, that is, z is 2 when m is calculated.
In some embodiments, setting each of the plurality of application windows to an active state comprises: in response to a trigger request for the first window, the first window is loaded and a focus tag is sent to the first window. In some embodiments, when N is 1, in response to a trigger request for the second window, loading the second window, transferring the focus label from the first window to the second window while intercepting the notification information so that the first window is still in an active state; wherein the notification information is used to notify that the first window focus label has been transferred. In some embodiments, when N > 1, in response to a trigger request for N second windows, receiving a focus transfer request, and based on the focus transfer request, sequentially transferring a focus label from a first window to a last triggered second window of the N second windows according to a sequence in which the windows are triggered, and simultaneously intercepting notification information, so that the first window and the triggered N second windows are both in an active state; wherein the notification information is used to notify the last triggered window that focus is about to be shifted to the most recently triggered window.
In some embodiments, to set each of the plurality of application windows to an active state, the plurality of application windows may be activated one by one. For example, after a first window is loaded and activated, a plurality of second windows are sequentially loaded according to the sequence in which the windows are triggered, and because the display parameters of the windows are different, the screen mapping areas occupied by the windows are different, and a plurality of windows can be created in the same screen mapping area at the same time or in sequence. It should be understood that the above loading order is merely exemplary and not intended to limit the present disclosure, and that other suitable manners may also be employed, e.g., there may be cases where multiple windows are loaded simultaneously. In particular, when the terminal detects a new window creation instruction, it will typically transfer the focus label to the newly created window, i.e., perform focus transfer. In some embodiments, the window designated as focus may perform various operations, such as drag, play, etc., while the windows not designated as focus are typically in a paused or frozen state. In order to solve the problem of window pausing or freezing, the embodiment of the present disclosure proposes that when the focus of an application is switched, a notification of focus shift is intercepted, that is, the focus of a window whose focus is shifted is not notified that the focus has been shifted, and the state of the application is not changed, so that the window continues to run. For example, the current focus window is a video window, and the focus tab is transferred to the chat page window after the user newly creates the chat page window. It should be noted that, while the chat page window obtains the focus tab, the video window still keeps the playing status due to not receiving the notification of focus transition, and does not become a pause or freeze status due to losing focus.
In the current terminal, only one application window can be opened on a display area, or only one application window can be operated when a plurality of application windows are displayed, and the application window is enlarged to be displayed in a full screen when being operated, which is not beneficial to interaction among multiple windows. In the embodiment of the disclosure, the multiple windows can be kept in the activated state through the interception of the focus label transfer notification, so that the interaction among the multiple windows is more convenient. The present disclosure does not limit the manner in which the window is kept in the activated state, and for example, a focus label may be assigned to a plurality of windows if the system supports a plurality of focus labels.
By setting a plurality of application windows to be in an active state by adopting the method disclosed by the invention, the application windows displayed in the screen are all active, and the active state of one window can not be suspended or transferred to the background due to the operation of another window.
In some embodiments, the display areas include a first display area and a second display area, the first window corresponding to the first display area, the at least one second window corresponding to the second display area, the first display area being located at a periphery of the second display area. In some embodiments, the first display region in which the first window is located may be located at either side of the second display region in which the second window is located, e.g., the first window may be located at the left, right, top, or bottom side of the second window. It should be understood that in the present disclosure, the left side may include a lower left side and an upper left side, and similarly, the right side may include a lower right side and an upper right side.
In some embodiments, as described above, the display regions include a first display region and a second display region, the first window corresponding to the first display region and the at least one second window corresponding to the second display region, and wherein the first display region is located at one of the sides of the foldable screen and at least a portion of the second display region is located at an opposite side of the foldable screen. For example, if the foldable screen is left-right folded, the first display region may be located at a left portion of the screen, and at least a portion of the second display region may be located at a right portion of the screen. It should be understood that a portion of the second display area may be located at a left portion of the screen and another portion of the second display area may be located at a right portion of the screen. Similarly, if the foldable screen is folded up and down, the first display region may be located at an upper portion of the screen, and at least a portion of the second display region may be located at a lower portion of the screen. It should be understood that a portion of the second display region may be located at an upper portion of the screen and another portion of the second display region may be located at a lower portion of the screen. For example, as shown in fig. 3, taking a foldable screen folded left and right as an example, the display area 11 of the foldable screen includes a first display area 21 and a second display area 22, and the foldable screen can be folded on a line indicated by a broken line 23, and the first display area 21 and the second display area 22 are respectively located on opposite sides of the broken line 23. It will be appreciated that the dashed line 23 is for illustration purposes and may not be present in practice. In addition, as shown in fig. 4, the same arrangement can be made for a foldable screen that is folded up and down. It should be understood that the first display area 21 or the second display area 22 may cross the dotted line 23, so that the first display area 21 or the second display area 22 may exist at both sides of the dotted line 23.
In some embodiments, the first display area is located on one of the two tiled screens and the second display area is located on the other of the two tiled screens, in which case the dashed line 23 may represent the junction of the tiled screens.
In some embodiments, when the terminal creates an Activity component, the default way is to pass the parameters of the full screen display into the created Activity component, so that the created window is also displayed in full screen. In some embodiments of the present disclosure, when creating the plurality of application windows, by inputting the preset display parameters of the windows to the window creating component (e.g., the created Activity component), the created windows can be displayed in the screen in a windowed manner, that is, the plurality of application windows are displayed in the screen. It should be understood that this is exemplary only and that other suitable methods may be employed.
The embodiment of the present disclosure also provides an apparatus 500 for controlling an application window corresponding to the above method, which includes an application display module 501 and a coordinate conversion module 502. The display module 501 is configured to display a plurality of application windows in a display area of the terminal, where the plurality of application windows are all set to be in an active state, the plurality of application windows include a first window and N second windows, and N is an integer greater than or equal to 1. The coordinate transformation module 502 is configured to perform coordinate transformation on the coordinate value of the operation site of the application window in the activated state in response to the operation on the application window in the activated state, so that the application corresponding to the application window in the activated state performs window control based on the transformed coordinate value. It should be understood that the description of the method for controlling the application window is also applicable to the apparatus, and the apparatus may include modules for performing the steps in the above method embodiments, and will not be described herein again.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for controlling the application window.
In addition, the present disclosure also provides a computer storage medium storing program codes for executing the above method of controlling an application window.
In some embodiments, by adopting the method for controlling application windows of the present disclosure, multiple application windows can be displayed in the display area, and these multiple application windows displayed simultaneously can be operated, so as to improve the user interaction experience among multiple windows.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from storage 606 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 606 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 606, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: displaying at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the displayed internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first display unit may also be described as a "unit displaying at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
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.
According to one or more embodiments of the present disclosure, there is provided a method of controlling an application window, including: displaying a plurality of application windows in a display area of a terminal, wherein the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1; and in response to the operation on the application window in the activated state, performing coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and performing window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
According to one or more embodiments of the present disclosure, the performing, by the application corresponding to the application window in the active state, window control based on the converted coordinate value includes: and feeding back the converted coordinate value to the application corresponding to the application window in the activated state for window control by the application.
According to one or more embodiments of the present disclosure, the coordinate transforming the coordinate value of the operation site of the application window in the activated state includes: and converting the coordinate value of the operation site of the application window in the activated state into a mapping coordinate value corresponding to a preset coordinate system.
According to one or more embodiments of the present disclosure, converting the coordinate value of the operation site of the application window in the activated state into a mapping coordinate value corresponding to a preset coordinate system includes: and converting the coordinate value of the operation site of the application window in the activated state into a coordinate value corresponding to the application window in full-screen display.
According to one or more embodiments of the present disclosure, setting each of the plurality of application windows to an active state includes: in response to a trigger request for the first window, loading the first window and sending a focus label to the first window; when N is equal to 1, responding to a trigger request of the second window, loading the second window, transferring the focus label from the first window to the second window, and simultaneously intercepting notification information so that the first window is still in an activated state; wherein the notification information is used to notify the first window that the focus label has been transferred.
According to one or more embodiments of the present disclosure, setting each of the plurality of application windows to an active state includes: in response to a trigger request for the first window, loading the first window and sending a focus label to the first window; when N is larger than 1, responding to a trigger request for a second window, receiving a focus transfer request, sequentially transferring the focus label from the first window to the last triggered second window in the N second windows according to the triggered sequence of the windows based on the focus transfer request, and simultaneously intercepting notification information so as to enable the first window and the triggered N second windows to be in an activated state; wherein the notification information is used for notifying the last triggered window that the focus is about to be shifted to the most recently triggered window.
According to one or more embodiments of the present disclosure, the display area includes a first display area and a second display area, the first window corresponds to the first display area, at least one of the second windows corresponds to the second display area, and the first display area is located at a periphery of the second display area.
According to one or more embodiments of the present disclosure, the display areas include a first display area and a second display area, the first window corresponding to the first display area, at least one of the second windows corresponding to the second display area, wherein the first display area is located at one side of a foldable screen, and at least a portion of the second display area is located at an opposite side of the foldable screen; or the first display area is positioned on one of the two spliced screens, and the second display area is positioned on the other of the two spliced screens.
According to one or more embodiments of the present disclosure, when the plurality of application windows are created, by importing preset display parameters of windows to a window creation component (e.g., a created Activity component), the created windows are displayed in a display area of the terminal in a windowed manner.
There is also provided, in accordance with one or more embodiments of the present disclosure, an apparatus for controlling an application window, including: the terminal comprises a display module, a display module and a display module, wherein the display module is configured to display a plurality of application windows in a display area of the terminal, the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1; and the coordinate conversion module is configured to respond to the operation on the application window in the activated state, perform coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and perform window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for controlling the application window.
According to one or more embodiments of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described method of controlling an application window.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A method of controlling an application window, comprising:
displaying a plurality of application windows in a display area of a terminal, wherein the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1;
and in response to the operation on the application window in the activated state, performing coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and performing window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
2. The method according to claim 1, wherein the performing window control on the application corresponding to the application window in the active state based on the converted coordinate value comprises:
and feeding back the converted coordinate value to the application corresponding to the application window in the activated state for window control by the application.
3. The method according to claim 1, wherein the coordinate transformation of the coordinate values of the operation sites of the activated application windows comprises: and converting the coordinate value of the operation site of the application window in the activated state into a mapping coordinate value corresponding to a preset coordinate system.
4. The method according to claim 3, wherein converting the coordinate values of the operation site of the application window in the activated state into mapping coordinate values corresponding to a preset coordinate system comprises: and converting the coordinate value of the operation site of the application window in the activated state into a coordinate value corresponding to the application window in full-screen display.
5. The method of claim 1, wherein setting each of the plurality of application windows to an active state comprises:
in response to a trigger request for the first window, loading the first window and sending a focus label to the first window;
when N is equal to 1, responding to a trigger request of the second window, loading the second window, transferring the focus label from the first window to the second window, and simultaneously intercepting notification information so that the first window is still in an activated state;
wherein the notification information is used to notify the first window that the focus label has been transferred.
6. The method of claim 1, wherein setting each of the plurality of application windows to an active state comprises:
in response to a trigger request for the first window, loading the first window and sending a focus label to the first window;
when N is larger than 1, responding to a trigger request for a second window, receiving a focus transfer request, sequentially transferring the focus label from the first window to the last triggered second window in the N second windows according to the triggered sequence of the windows based on the focus transfer request, and simultaneously intercepting notification information so as to enable the first window and the triggered N second windows to be in an activated state;
wherein the notification information is used for notifying the last triggered window that the focus is about to be shifted to the most recently triggered window.
7. The method of claim 1, wherein the display area comprises a first display area and a second display area, wherein the first window corresponds to the first display area, wherein at least one of the second windows corresponds to the second display area, and wherein the first display area is located at a periphery of the second display area.
8. The method of claim 1, wherein the display area comprises a first display area and a second display area, wherein the first window corresponds to the first display area, wherein at least one of the second windows corresponds to the second display area,
wherein the first display area is located at one side of a foldable screen and at least part of the second display area is located at an opposite side of the foldable screen; or
The first display area is located on one of the two spliced screens, and the second display area is located on the other of the two spliced screens.
9. The method according to claim 1, wherein when creating the plurality of application windows, the created windows are displayed in a display area of the terminal in a windowed manner by inputting preset window display parameters to a window creating component.
10. An apparatus for controlling an application window, comprising:
the terminal comprises a display module, a display module and a display module, wherein the display module is configured to display a plurality of application windows in a display area of the terminal, the application windows are all set to be in an activated state, the application windows comprise a first window and N second windows, and N is an integer greater than or equal to 1;
and the coordinate conversion module is configured to respond to the operation on the application window in the activated state, perform coordinate conversion on the coordinate value of the operation site of the application window in the activated state, and perform window control on the application corresponding to the application window in the activated state based on the converted coordinate value.
11. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 9.
12. A storage medium for storing program code for performing the method of any one of claims 1 to 9.
CN202010350665.0A 2020-04-28 2020-04-28 Method, device, terminal and storage medium for controlling application window Pending CN112068742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010350665.0A CN112068742A (en) 2020-04-28 2020-04-28 Method, device, terminal and storage medium for controlling application window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010350665.0A CN112068742A (en) 2020-04-28 2020-04-28 Method, device, terminal and storage medium for controlling application window

Publications (1)

Publication Number Publication Date
CN112068742A true CN112068742A (en) 2020-12-11

Family

ID=73656072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010350665.0A Pending CN112068742A (en) 2020-04-28 2020-04-28 Method, device, terminal and storage medium for controlling application window

Country Status (1)

Country Link
CN (1) CN112068742A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931043A (en) * 2023-12-20 2024-04-26 荣耀终端有限公司 Coordinate conversion method, device, chip and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571904A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104572058A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
US20150186009A1 (en) * 2013-12-26 2015-07-02 Kabushiki Kaisha Toshiba Electronic device, method and storage medium
CN105630468A (en) * 2014-10-30 2016-06-01 腾讯科技(武汉)有限公司 Focal point movement method and device of UI (User Interface) frame
CN106569652A (en) * 2015-10-13 2017-04-19 福州瑞芯微电子股份有限公司 Android multi-window displaying method and Android multi-window displaying device
CN110457109A (en) * 2019-08-15 2019-11-15 北京字节跳动网络技术有限公司 Multiwindow parallel method and device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571904A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104572058A (en) * 2013-10-28 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
US20150186009A1 (en) * 2013-12-26 2015-07-02 Kabushiki Kaisha Toshiba Electronic device, method and storage medium
CN105630468A (en) * 2014-10-30 2016-06-01 腾讯科技(武汉)有限公司 Focal point movement method and device of UI (User Interface) frame
CN106569652A (en) * 2015-10-13 2017-04-19 福州瑞芯微电子股份有限公司 Android multi-window displaying method and Android multi-window displaying device
CN110457109A (en) * 2019-08-15 2019-11-15 北京字节跳动网络技术有限公司 Multiwindow parallel method and device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931043A (en) * 2023-12-20 2024-04-26 荣耀终端有限公司 Coordinate conversion method, device, chip and storage medium

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
US20220308741A1 (en) Method and apparatus for displaying video, electronic device and medium
CN111291244B (en) House source information display method, device, terminal and storage medium
CN114491349B (en) Page display method, page display device, electronic device, storage medium and program product
US20240231852A9 (en) Window display method, apparatus, terminal and storage medium
CN111931472A (en) Page table rendering method and device, electronic equipment and computer readable medium
WO2023138294A1 (en) Information display method and apparatus, device, and medium
CN110795196A (en) Window display method, device, terminal and storage medium
CN112181571A (en) Floating window display method, device, terminal and storage medium
US20230199262A1 (en) Information display method and device, and terminal and storage medium
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN112068742A (en) Method, device, terminal and storage medium for controlling application window
CN113961280A (en) View display method and device, electronic equipment and computer-readable storage medium
CN114327732B (en) Page configuration method, page configuration device, electronic equipment and computer readable medium
CN113204299B (en) Display method, display device, electronic equipment and storage medium
WO2021068964A1 (en) Window arrangement method and device, terminal and storage medium
CN115237530A (en) Information display method and device, electronic equipment and storage medium
CN114090938A (en) Page processing method and equipment
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN113127101A (en) Application program control method, device, equipment and medium
CN112083840A (en) Method, device, terminal and storage medium for controlling electronic equipment
CN112306339B (en) Method and apparatus for displaying image
CN111783390B (en) Dimension label adjusting method and device and electronic equipment
US20240106928A1 (en) Media content sharing method, apparatus, electronic device and storage medium
CN112965778B (en) Chat page display method, chat page display device, electronic equipment and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211

RJ01 Rejection of invention patent application after publication