Disclosure of Invention
The embodiment of the invention aims to provide a desktop application window management system, method and device so as to provide richer application window display styles.
In order to achieve the above object, an embodiment of the present invention provides a desktop application window management system, where the system includes: the desktop window management service unit and the plurality of target applications;
the desktop window management service unit is used for receiving a window adjustment instruction triggered by a user; the window adjustment instruction includes: window presence state adjustment information of a plurality of target applications and window style information of the plurality of target applications; generating control information aiming at each target application based on the window adjusting instruction; respectively sending the control information aiming at each target application to each target application;
each target application is used for adjusting the existing state of the application window and/or the application window style of the desktop of the user terminal according to the control information and the window behavior adjustment mode and/or the window style display mode corresponding to the control information searched from the preset window management SDK after receiving the control information sent by the desktop window management service unit; and feeding back the adjusted existing state information and/or window style information of the application window of the target application on the desktop of the user terminal to the desktop window management service unit.
In order to achieve the above object, an embodiment of the present invention further provides a desktop application window management method, which is applied to each target application in a desktop application window management system, where the desktop application window management system further includes a desktop window management service unit, and the method includes:
receiving control information sent by the desktop window management service unit; the control information includes: application window presence state adjustment information and/or application window style information for the target application;
according to the control information, adjusting the existing state and/or window style of the application window of the target application on the desktop of the user terminal according to the window behavior adjusting mode and/or window style display mode corresponding to the control information searched from the preset window management SDK;
and feeding back the adjusted existence state information and/or window style information of the application window of the target application on the desktop of the user terminal to the desktop window management service unit.
Further, the control information includes: deleting the application window information;
the adjusting, according to the control information and according to the window behavior adjustment mode and/or the window style display mode corresponding to the control information found from the preset window management SDK, the existence state and/or the window style of the application window of the target application on the desktop of the user terminal includes:
and deleting the application window of the target application on the desktop of the user terminal according to the application window deleting information and the window behavior adjusting mode corresponding to the application window deleting information searched from the preset window management SDK.
Further, the control information includes: adding application window information and window style information;
the adjusting, according to the control information, the existence state and/or the window style of the application window of the target application on the desktop of the user terminal according to the window behavior adjustment mode and/or the window style display mode corresponding to the control information found from the preset window management SDK includes:
according to the added application window information and the window style information, according to a window behavior adjusting mode and a window style displaying mode which are found from a preset window management SDK and correspond to the added application window information and the window style information, creating an application window of the target application on a desktop of the user terminal; wherein the style of the created application window is consistent with the window style information;
and adding the content information of the target application in the created application window.
Further, the control information includes: window position adjustment information;
the adjusting, according to the control information, the existence state and/or the window style of the application window of the target application on the desktop of the user terminal according to the window behavior adjustment mode and/or the window style display mode corresponding to the control information found from the preset window management SDK includes:
and adjusting the position of the application window of the target application on the desktop of the user terminal according to the window position adjustment information and the window style display mode corresponding to the window position adjustment information searched from the preset window management SDK.
In order to achieve the above object, an embodiment of the present invention further provides a desktop application window management method, which is applied to a desktop window management service unit in a desktop application window management system, where the desktop application window management system further includes a plurality of target applications, and the method includes:
receiving a window adjusting instruction triggered by a user; the window adjustment instruction includes: application window presence state adjustment information of a plurality of target applications and application window style information of the plurality of target applications;
generating control information for each target application based on the window adjustment instruction;
respectively sending the control information aiming at each target application to each target application; after receiving the control information sent by the desktop window management service unit, each target application adjusts the existence state and/or window style of the application window of the desktop of the target application according to the control information and the window behavior adjustment mode and/or window style display mode corresponding to the control information searched from the preset window management SDK; feeding back the adjusted existing state information and/or window style information of the application window of the target application on the desktop of the user terminal to the desktop window management service unit;
receiving feedback for each of the target applications: and the adjusted existence state information and/or window style information of the application window of the target application on the desktop of the user terminal.
Further, the receiving a window adjustment instruction triggered by a user includes:
displaying each application supporting a window display function and a plurality of preset window styles in a user terminal;
generating a window adjusting instruction according to the application and the window style selected by the user, and receiving the generated window adjusting instruction; wherein the application selected by the user is the target application.
Further, before displaying each application supporting the window display function and a plurality of preset window styles in the user terminal, the method further includes:
acquiring registration information of each application installed in a user terminal;
determining the application registered with the window service as an application supporting a window display function according to the registration information of each application;
names of respective applications supporting the window exposing function are stored.
In order to achieve the above object, an embodiment of the present invention further provides a desktop application window management apparatus, which is applied to each target application in a desktop application window management system, where the desktop application window management system further includes a desktop window management service unit, and the apparatus includes:
the first receiving module is used for receiving the control information sent by the desktop window management service unit; the control information includes: application window presence state adjustment information and/or application window style information for the target application;
the adjusting module is used for adjusting the existing state and/or the window style of the application window of the target application on the desktop of the user terminal according to the control information and the window behavior adjusting mode and/or the window style displaying mode corresponding to the control information searched from the preset window management SDK;
and the feedback module is used for feeding back the adjusted existence state information and/or window style information of the application window of the target application desktop of the user terminal to the desktop window management service unit.
In order to achieve the above object, an embodiment of the present invention further provides a desktop application window management apparatus, which is applied to a desktop window management service unit in a desktop application window management system, where the desktop application window management system further includes multiple target applications, and the apparatus includes:
the second receiving module is used for receiving a window adjusting instruction triggered by a user; the window adjustment instruction comprises: application window presence state adjustment information of a plurality of target applications and application window style information of the plurality of target applications;
the information generation module is used for generating control information aiming at each target application based on the window adjustment instruction;
the sending module is used for respectively sending the control information aiming at each target application to each target application; after receiving the control information sent by the desktop window management service unit, each target application adjusts the existence state and/or window style of the application window of the desktop of the target application according to the control information and the window behavior adjustment mode and/or window style display mode corresponding to the control information searched from the preset window management SDK; feeding back the adjusted existing state information and/or window style information of the application window of the target application on the desktop of the user terminal to the desktop window management service unit;
the second receiving module is further configured to receive feedback of each target application: and the adjusted existence state information and/or window style information of the application window of the target application on the desktop of the user terminal.
In order to achieve the above object, an embodiment of the present invention provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any desktop application window management method when executing the program stored in the memory.
In order to achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above steps of the desktop application window management method.
In order to achieve the above object, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any of the above steps of the desktop application window management method.
The embodiment of the invention has the following beneficial effects:
by adopting the desktop application window management system provided by the embodiment of the invention, the desktop window management service unit is used for receiving a window adjustment instruction triggered by a user; generating control information aiming at each target application based on the window adjusting instruction; respectively sending the control information aiming at each target application to each target application; and each target application is used for adjusting the existing state of the application window and/or the application window style of the desktop of the user terminal according to the control information after the control information sent by the desktop window management service unit is received. By adopting the system, the application windows of a plurality of applications can be created on the desktop of the user terminal according to the window style information in the window adjusting instruction triggered by the user and according to the window style desired by the user. Therefore, compared with the prior art, the system provided by the embodiment of the invention provides richer application window display styles for users.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
Fig. 1 is a structural diagram of a desktop application window management system according to an embodiment of the present invention, and referring to fig. 1, the system includes: a desktop window management service unit 110 and a plurality of target applications 120;
a desktop window management service unit 110, configured to receive a window adjustment instruction triggered by a user; the window adjustment instruction includes: window presence state adjustment information of a plurality of target applications and window style information of the plurality of target applications; generating control information aiming at each target application based on the window adjusting instruction; respectively sending the control information aiming at each target application to each target application;
each target application 120 is configured to, after receiving the control information sent by the desktop window management service unit 110, adjust a presence state and/or an application window style of an application window of the desktop of the user terminal according to the control information.
By adopting the desktop application window management system provided by the embodiment of the invention, the desktop window management service unit is used for receiving a window adjustment instruction triggered by a user; generating control information aiming at each target application based on the window adjusting instruction; respectively sending the control information aiming at each target application to each target application; and each target application is used for adjusting the existing state of the application window and/or the application window style of the desktop of the user terminal according to the control information after receiving the control information sent by the desktop window management service unit. By adopting the system, the application windows of a plurality of applications can be created on the desktop of the user terminal according to the window style information in the window adjusting instruction triggered by the user and according to the window style desired by the user. Therefore, compared with the prior art, the system provided by the embodiment of the invention provides richer application window display styles.
Fig. 2 is an interaction diagram of a desktop window management service unit and a target application in the desktop application window management system according to the embodiment of the present invention, which is shown in fig. 2:
step 201, a desktop window management service unit receives a window adjustment instruction triggered by a user; the window adjustment instruction includes: window presence state adjustment information of a plurality of target applications and window style information of the plurality of target applications.
In step 202, the desktop window management service unit generates control information for each target application based on the window adjustment instruction.
In step 203, the desktop window management service unit sends control information to the target application.
In step 204, the target application receives the control information sent by the desktop window management service unit.
And step 205, the target application adjusts the existing state of the application window and/or the application window style of the desktop of the user terminal according to the control information.
Step 206, the target application sends the adjusted existing state information and/or window style information of the application window of the desktop of the target application to the desktop window management service unit.
By adopting the desktop application window management system provided by the embodiment of the invention, a plurality of application windows can be created on the desktop of the user terminal according to the window style information in the window adjusting instruction triggered by the user and the window style desired by the user. Therefore, compared with the prior art, the system provided by the embodiment of the invention provides richer application window display styles.
In a possible implementation manner, in the desktop application window management system provided in the embodiment of the present invention, the desktop window management service unit may include: the system comprises a display style management subunit, a window interaction management subunit and an application registration management subunit; fig. 3 is an interaction diagram of a desktop application window management system according to an embodiment of the present invention, and refer to fig. 3:
the application registration management subunit can acquire registration information of each application installed in the user terminal; determining the application registered with the window service as an application supporting a window display function according to the registration information of each application; names of respective applications supporting the window exposing function are stored. For example, the user terminal installs application a, application B, and application C, the application registration management subunit may obtain registration information of application a, application B, and application C when the user terminal is powered on, search whether the registration information of application a, application B, and application C includes window service information, and if it is found that application a and application B register window service information, may determine application a and application B as applications supporting the window exhibition function, and store names of application a and application B and window service names.
The display style management subunit may provide a plurality of window display styles for displaying an application window on a desktop of the user terminal, where the window display styles specifically include: application window size, application window position, and number of application windows exposed. Fig. 4 is a schematic diagram of window display styles, and as shown in fig. 4, a style in which 3 application windows are placed in the left-middle-right direction and each occupies the area of the desktop 1/3 of the user terminal can be provided. The display style management subunit can also provide the window display style desired by the user according to the user requirement.
Specifically, in this embodiment, the desktop application window management system may display each application supporting the window display function and a plurality of preset window styles in the user terminal to the user, generate a window adjustment instruction according to the application and the window style selected by the user, and receive the generated window adjustment instruction; wherein the application selected by the user is the target application. For example, fig. 5 is an application type and window style presentation list, as shown in fig. 5, when the user clicks a window presentation start button 510 of the terminal device, the desktop application window management system may present an application type and window style presentation list 520 to the user, where the application type and window style presentation list 520 includes: an application list 530 and a window style list 540. The application list 530 includes all applications, such as application a and application B, that support the window display function in the terminal device. The window style display list 520 includes a plurality of window display styles, such as window display style 1 (3 application windows, placed left-center-right, and each occupying the area of the user terminal desktop 1/3) and window display style 2 (2 application windows, placed left-right, and each occupying the area of the user terminal desktop 1/2).
Fig. 6a is a schematic diagram illustrating operational options for the target application, where if the user clicks the target application a in fig. 5, the operational options 610 executable for the target application a as shown in fig. 6a are illustrated, and if the target application a has created an application window on the desktop of the user terminal, the operational options 610 executable for the target application a may include: deleting the application window option, adjusting the size option of the application window, and adjusting the position of the application window; the user may select one or more of the operational options 610. Fig. 6B is another schematic diagram illustrating operational options for a target application, where if a user clicks the target application B in fig. 5, an operational option 620 executable for the target application B as shown in fig. 6B is illustrated, and if the target application B does not create an application window on a desktop of the user terminal, the operational option 620 executable for the target application B may include: adding an application window option, setting an application window size option, and setting an application window position option. The user may select one or more of the operation options 620.
The desktop application window management system can generate a window adjustment instruction according to the target application and the window style selected by the user and the selected operation option aiming at the target application, and the desktop window management service unit can receive the generated window adjustment instruction.
Fig. 7 is a schematic diagram illustrating application windows on a desktop of a user terminal, and as shown in fig. 7, the desktop of the user terminal illustrates an application window 701 of a target application a and an application window 702 of a target application B. The user may directly trigger an operation instruction for deleting the application window 701 through a gesture operation (e.g., a double-click operation) of the user on the application window 701, may trigger an operation instruction for changing the size of the application window 701 by changing the size of the application window 701 through a gesture operation (e.g., a pinch operation), and may trigger an operation instruction for changing the position of the application window 701 through a gesture operation (e.g., a drag operation). The desktop application window management system can generate a window adjustment instruction according to an instruction triggered by a gesture operation of a user, and the desktop window management service unit can receive the generated window adjustment instruction.
The window interaction management subunit may send control information to each target application, where the control information specifically may include: one or more of adding application window information, deleting application window information, and window style information (window size adjustment information and window position adjustment information).
As shown in fig. 3, the target application a may receive the control information sent by the window interaction management subunit, and adjust the existence state and/or the application window style of the application window of the target application a on the desktop of the user terminal according to the control information. Specifically, the target application a may obtain a window service defined by the preset window management SDK, and use the window service as the application window service of the target application a, and according to the control information, adjust the existence state and/or the window style of the application window of the target application a on the desktop of the user terminal according to the window behavior adjustment mode and/or the window style display mode corresponding to the control information found in the preset window management SDK, such as filling and updating the application window content of the target application a.
Specifically, the target application B may also obtain a window service defined by a preset window management SDK, as an application window service of the target application B, and adjust the existence state and/or the window style of the application window of the target application B on the desktop of the user terminal according to the control information and the window behavior adjustment manner and/or the window style display manner corresponding to the control information found from the preset window management SDK, for example, fill and update the application window content of the target application B.
The window management SDK defines a window and a window service, and the window management SDK specifically defines attribute capabilities of the window and should include: window style (specifically including window size and window position), window behavior (specifically including operation of adding window, operation of deleting window, operation of dragging window and operation of changing window size); the window management SDK also defines the attribute capabilities that the window service primarily uses to control windows, including: and controlling a window style display mode and controlling a window behavior adjustment mode. In addition, the window management SDK further defines a specific window service type, and each target application in the desktop application window management system can determine an application service matched with the specific window service type in the existing application services as the application window service. For example, the target application a itself has an application service x, an application service y, and an application service z, the application service x, the application service y, and the application service z may be matched with a specific window service type defined by the window management SDK, and if the application service x is matched with the specific window service type defined by the window management SDK, the application service x may be used as an application window service of the target application a for processing data related to an application window of the target application a on a desktop of the user terminal.
In this embodiment, the target application a may obtain a window service defined by a preset window management SDK as an application window service of the target application a. And the application window service of the target application A adjusts the existing state and/or the window style of the application window of the target application A on the desktop of the user terminal according to the window behavior adjusting mode and/or the window style display mode which can be controlled by the application window service searched from the preset window management SDK and the received control information sent by the window interaction management subunit. Specifically, the adjusting the existing state and/or the window style of the application window of the target application a on the desktop of the user terminal may include:
if the control information comprises the application window deleting information, the target application A can delete the application window of the target application A on the desktop of the user terminal according to the application window deleting information;
if the control information comprises the added application window information and the window style information, the target application A can create an application window of the target application A on a desktop of the user terminal according to the added application window information and the window style information; wherein the style of the created application window is consistent with the window style information; adding content information of the target application A in the created application window, for example, if the target application is a navigation application, navigation map information can be added in the created application window;
if the control information includes window position adjustment information, the target application a may adjust the position of the application window of the target application a on the desktop of the user terminal according to the window position adjustment information.
By adopting the desktop application window management system provided by the embodiment of the invention, a plurality of application windows can be created on the desktop of the user terminal according to the window style information in the window adjusting instruction triggered by the user and the window style desired by the user. Therefore, compared with the prior art, the system provided by the embodiment of the invention provides richer application window display styles. In addition, the target application enables the application window created on the desktop of the user terminal to have richer attribute information by acquiring the window service defined by the window management SDK, and can provide more complex interactive operation for the user.
Fig. 8 is a flowchart of a desktop application window management method provided in an embodiment of the present invention, where the method is applied to each target application in a desktop application window management system, and the desktop application window management system further includes a desktop window management service unit, and referring to fig. 8, the method includes:
step 801, receiving control information sent by a desktop window management service unit; the control information includes: application window presence state adjustment information and/or application window style information for the target application.
Wherein the application window presence state adjustment information may include: adding application window information or deleting the application window information; the application window style information may include: size information of an application window of the target application and/or location information of the target application.
And step 802, adjusting the existing state and/or the window style of the application window of the target application on the desktop of the user terminal according to the control information.
In the embodiment of the present invention, specifically, according to the control information, the existence state and/or the window style of the application window of the target application on the desktop of the user terminal may be adjusted according to the window behavior adjustment mode and/or the window style display mode corresponding to the control information found from the preset window management SDK.
In this embodiment of the present invention, the control information may include: deleting the application window information; the target application can delete the application window of the target application on the desktop of the user terminal according to the received information of the deleted application window.
In this embodiment of the present invention, the control information may also include: adding application window information and window style information; the target application can create an application window of the target application on a desktop of the user terminal according to the received information of the added application window and the received information of the window style; wherein the style of the created application window is consistent with the window style information; and adds the content information of the target application in the created application window.
For example, the target application is a music application, and the control information received by the music application includes: adding application window information and window style information; wherein the window style information includes: the size information of the application window of the music application and the position information of the music application, and the size information of the application window is: the application window length is 2cm and the application window width is 3cm, and the position information of the music application is as follows: the central position of the application window is the position corresponding to the coordinates (a, b) of the desktop of the user terminal. The music application can create an application window with the length of 2cm and the width of 3cm on the desktop of the user terminal according to the received control information, the center position of the created application window is at the position corresponding to the coordinates (a, b) of the desktop of the user terminal, and the created window is filled with the content of the music playlist.
In this embodiment of the present invention, the control information may further include: window position adjustment information; the target application can adjust the position of the application window of the desktop of the user terminal according to the received window position adjusting information. For example, if the received position adjustment information is: the central position of an application window of the target application is a position corresponding to coordinates (c, d) of a user terminal desktop; the target application may adjust its application window from the original position to the position where the center of the application window corresponds to the coordinates (c, d) of the user terminal desktop.
In the embodiment of the present invention, after step 802 is executed, the target application may further feed back, to the desktop window management service unit, the adjusted presence state information and/or window style information of the application window of the desktop of the target application to the user terminal.
By adopting the desktop application window management method provided by the embodiment of the invention, the control information sent by the desktop window management service unit is received; the control information includes: application window presence state adjustment information and/or application window style information for the target application; and adjusting the existing state and/or window style of the application window of the target application on the desktop of the user terminal according to the control information. That is, the style of the application window can be adjusted on the desktop of the user terminal according to the window style information and the window style desired by the user. Therefore, compared with the prior art, the method provided by the embodiment of the invention provides richer application window display styles for users. In addition, the target application enables the application window created on the desktop of the user terminal to have richer attribute information by acquiring the window service defined by the window management SDK, and can provide more complex interactive operation for the user.
Fig. 9 is a flowchart of a desktop application window management method provided in an embodiment of the present invention, where the method is applied to a desktop window management service unit in a desktop application window management system, and the desktop application window management system further includes a plurality of target applications, and referring to fig. 9, the method includes:
step 901, receiving a window adjustment instruction triggered by a user; the window adjustment instruction includes: application window presence state adjustment information of the plurality of target applications and application window style information of the plurality of target applications.
Wherein the application window presence state adjustment information may include: adding application window information or deleting the application window information; the application window style information may include: size information of an application window of the target application and/or location information of the target application.
In the embodiment of the invention, the desktop window management service unit can display each application supporting the window display function and a plurality of preset window styles in the user terminal to a user; generating a window adjusting instruction according to the application and the window style selected by the user, and receiving the generated window adjusting instruction; wherein the application selected by the user is the target application.
For a specific manner of the user triggering the window adjustment instruction, reference may be made to the related description of fig. 6a, fig. 6b, and fig. 7, which is not described herein again.
And step 902, generating control information for each target application based on the window adjusting instruction.
Wherein the control information may include: application window presence state adjustment information and/or application window style information for each target application.
Step 903, sending the control information for each target application to each target application.
In the embodiment of the invention, the registration information of each application installed in the user terminal can be acquired when the terminal equipment is started; determining the application registered with the window service as an application supporting a window showing function according to the registration information of each application; and storing the name of each target application supporting the window display function to an application registration management subunit of the desktop window management service unit.
In this step, the control information for each target application may be sent to each target application according to the service name of each target application stored by the application registration management subunit of the desktop window management service unit.
Based on the same inventive concept, according to the desktop application window management method applied to each target application provided in the foregoing embodiment of the present invention, correspondingly, another embodiment of the present invention further provides a desktop application window management device applied to each target application in the desktop application window management system, where the desktop application window management system further includes a desktop window management service unit, and a schematic structural diagram of the desktop application window management service unit is shown in fig. 10, and specifically includes:
a first receiving module 1001, configured to receive control information sent by the desktop window management service unit; the control information includes: application window presence state adjustment information and/or application window style information for the target application;
an adjusting module 1002, configured to adjust a presence state and/or a window style of an application window of the target application on a desktop of the user terminal according to the control information.
Further, the adjusting module 1002 is specifically configured to adjust, according to the control information, a presence state and/or a window style of an application window of the target application on a desktop of the user terminal according to a window behavior adjusting manner and/or a window style displaying manner corresponding to the control information found from a preset window management SDK.
Further, the control information includes: deleting the application window information; the adjusting module 1002 is specifically configured to delete the application window of the target application on the desktop of the user terminal according to the application window deletion information.
Further, the control information includes: adding application window information and window style information; the adjusting module 1002 is specifically configured to create an application window of the target application on a desktop of the user terminal according to the information of the added application window and the information of the window style; wherein the style of the created application window is consistent with the window style information; and adding the content information of the target application in the created application window.
Further, the control information includes: window position adjustment information; the adjusting module 1002 is specifically configured to adjust a position of an application window of the target application on a desktop of the user terminal according to the window position adjusting information.
Further, the apparatus further comprises: referring to fig. 11, a feedback module 1101, configured to feed back, to the desktop window management service unit, the adjusted presence status information and/or window style information of the application window of the target application on the desktop of the user terminal.
By adopting the desktop application window management device provided by the embodiment of the invention, the control information sent by the desktop window management service unit is received; the control information includes: application window presence state adjustment information and/or application window style information for the target application; and adjusting the existing state and/or window style of the application window of the target application on the desktop of the user terminal according to the control information. That is, the style of the application window can be adjusted on the desktop of the user terminal according to the window style information and the window style desired by the user. Therefore, compared with the prior art, the method provided by the embodiment of the invention provides richer application window display styles for users. In addition, the target application enables the application window created on the desktop of the user terminal to have richer attribute information by acquiring the window service defined by the window management SDK, and can provide more complex interactive operation for the user.
Based on the same inventive concept, according to the desktop application window management method applied to the desktop window management service unit provided in the foregoing embodiment of the present invention, correspondingly, another embodiment of the present invention further provides a desktop application window management device applied to the desktop window management service unit in the desktop application window management system, where the desktop application window management system further includes a plurality of target applications, and a schematic structural diagram of the desktop application window management device is shown in fig. 12, and specifically includes:
a second receiving module 1201, configured to receive a window adjustment instruction triggered by a user; the window adjustment instruction includes: application window presence state adjustment information of a plurality of target applications and application window style information of the plurality of target applications;
an information generating module 1202, configured to generate control information for each target application based on the window adjustment instruction;
a sending module 1203, configured to send the control information for each target application to each target application respectively.
Further, the second receiving module 1201 is specifically configured to display each application supporting a window display function and a plurality of preset window styles in the user terminal; generating a window adjusting instruction according to the application and the window style selected by the user, and receiving the generated window adjusting instruction; wherein the application selected by the user is the target application.
Further, referring to fig. 13, the apparatus further includes: an information obtaining module 1301, configured to obtain registration information of each application installed in the user terminal; determining the application registered with the window service as an application supporting a window display function according to the registration information of each application; names of respective applications supporting the window exposing function are stored.
The embodiment of the present invention further provides an electronic device, as shown in fig. 14, which includes a processor 1401, a communication interface 1402, a memory 1403, and a communication bus 1404, wherein the processor 1401, the communication interface 1402, and the memory 1403 complete communication with each other through the communication bus 1404,
a memory 1403 for storing a computer program;
the processor 1401, when executing the program stored in the memory 1403, implements the following steps:
receiving control information sent by the desktop window management service unit; the control information includes: application window presence state adjustment information and/or application window style information for the target application;
and adjusting the existing state and/or the window style of the application window of the target application on the desktop of the user terminal according to the control information.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above desktop application window management methods.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the desktop application window management methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.