Window display switching method, device, terminal and computer-readable storage medium

By receiving and processing display status change instructions, obtaining and adjusting window parameters, and directly switching window status, solving the problem of low window switching efficiency and achieving efficient state switching.

CN112416479BActive Publication Date: 2024-11-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910773685.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-21
Publication Date
2024-11-22
Estimated Expiration
2039-09-24

AI Technical Summary

Technical Problem

In the prior art, windows are inefficient when switching from full screen state to the previous display state, and cannot directly switch to each other, resulting in low efficiency in switching window state.

Method used

By receiving display status change instructions, intercepting the change messages of the terminal system, obtaining and adjusting the display parameter information of the window, thereby directly switching the display status of the window.

Benefits of technology

It realizes direct switching of different display states of the application window, improves the switching efficiency between window states, and avoids the problems caused by system switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112416479B_ABST
    Figure CN112416479B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a window display switching method, device, terminal and computer-readable storage medium; when the application window of the application is in the first display state, the display state change instruction of the application window is received, and the change message generated by the terminal system based on the display state change instruction is intercepted, wherein the change message is used to instruct the terminal system to switch the display state of the application window; the application determines the second display state after the display state of the application window is changed according to the display state change instruction; the application obtains the target window display parameter information corresponding to the second display state; the application adjusts the current window display parameter information of the application window according to the target window display parameter information; and the application window is switched from the first display state to the second display state according to the adjusted window display parameter. This scheme can improve the switching efficiency between different display states of the application window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a window display switching method, device, terminal and computer-readable storage medium. Background Art

[0002] With the development of communication technology, the terminal operating systems currently launched are quite mature, with the characteristics of good human-computer interaction and support for multiple application software. The windows of terminal applications can have multiple display states, such as maximized display state, full-screen display state, minimized display state, etc.

[0003] In the process of research and practice of related technologies, the inventors of the present application found that there are certain problems between switching between different display states. For example, in the related technology, the full-screen state of the window can be achieved by controlling the hiding of the taskbar and using the system's maximized window operation, and the full-screen state of the window can also be achieved by setting the window size to the screen size. However, when restoring the window from the full-screen state, the above methods cannot restore the window to the window state before the full-screen state, that is, some display states of the application window cannot be directly switched to each other, resulting in a relatively low efficiency in switching the window state. Summary of the invention

[0004] Embodiments of the present application provide a window display switching method, device, terminal, and computer-readable storage medium, which can improve the switching efficiency between different display states of application windows.

[0005] The embodiment of the present application provides a window display switching method, including:

[0006] When an application window of the application program is in a first display state, receiving a display state change instruction of the application window, and intercepting a change message generated by the terminal system based on the display state change instruction, wherein the change message is used to instruct the terminal system to switch the display state of the application window;

[0007] Determining, by the application program according to the display state change instruction, a second display state after the display state of the application window is changed;

[0008] acquiring, through the application, target window display parameter information corresponding to the second display state;

[0009] By means of the application program, the current window display parameter information of the application window is adjusted according to the target window display parameter information;

[0010] The application window is switched from the first display state to the second display state according to the adjusted window display parameters.

[0011] Accordingly, an embodiment of the present application provides a window display switching device, including:

[0012] a receiving unit, configured to receive a display state change instruction of the application window when the application window of the application is in a first display state, and intercept a change message generated by the terminal system based on the display state change instruction, wherein the change message is used to instruct the terminal system to switch the display state of the application window;

[0013] a determining unit, configured to determine, through the application program according to the display state change instruction, a second display state of the application window after the display state of the application window is changed;

[0014] A first acquisition unit, configured to acquire, through the application, target window display parameter information corresponding to the second display state;

[0015] an adjusting unit, which adjusts the current window display parameter information of the application window according to the target window display parameter information through the application program;

[0016] A switching unit is used to switch the application window from the first display state to the second display state according to the adjusted window display parameters.

[0017] In one embodiment, the first acquiring unit includes:

[0018] A first acquisition subunit is used for acquiring, through the application program, current style information and attribute information of the application window and window size information of the application window in the full-screen display state when the second display state is a full-screen display state;

[0019] The first obtaining subunit is used to obtain the target window display parameter information corresponding to the full-screen display state according to the acquired style information, attribute information and window size information.

[0020] In one embodiment, the acquisition subunit is also used to obtain style information and attribute information of the application window based on the window function through the application; obtain screen size information of the terminal, and determine the window size information of the application window when the second display state is a full-screen display state according to the screen size information.

[0021] In one embodiment, the first acquiring unit includes:

[0022] A second acquisition subunit, configured to acquire work area size information of the screen of the terminal when the second display state is a maximized display state;

[0023] A determination subunit is used to determine, according to the work area size information, target window display parameter information of the application window when the second display state is the maximized display state.

[0024] In one embodiment, the window display switching device further includes:

[0025] a second acquisition unit, configured to acquire, through the application program, window size information, style information, and attribute information of the application window in a display state before the first display state;

[0026] The storage unit is used to store the acquired window size information, style information and attribute information.

[0027] In one embodiment, the first acquiring unit includes:

[0028] The second obtaining subunit is used to obtain the target window display parameter information corresponding to the second display state based on the saved window size information, style information and attribute information through the application.

[0029] In one embodiment, the second obtaining subunit is further used to obtain the saved window size information, style information and attribute information through the application, and generate target window display parameter information corresponding to the second display state based on the obtained window size information, style information and attribute information.

[0030] In one embodiment, the adjustment unit includes:

[0031] A first adjusting subunit, configured to replace the current window display parameter information of the application window with the target window display parameter information through the application program;

[0032] In one embodiment, the adjustment unit includes:

[0033] The second adjusting subunit is used to replace the current window display parameter information of the application window with the target window display parameter information through the application program.

[0034] In one embodiment, the second obtaining subunit is further used to obtain the window size information from the saved window size information, style information and attribute information through the application, and generate target window display parameter information corresponding to the second display state based on the window size information.

[0035] Correspondingly, an embodiment of the present application also provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps in any window display switching method provided in the embodiments of the present application.

[0036] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any of the window display switching methods provided in the embodiments of the present application.

[0037] By adopting the scheme of the embodiment of the present application, when the application window of the application is in a first display state, a display state change instruction of the application window can be received, and a change message generated by the terminal system based on the display state change instruction can be intercepted to avoid the terminal system executing the change message to switch the display state of the application window; after receiving the display state change instruction, the application can determine a second display state after the display state of the application window is changed according to the display state change instruction; obtain the target window display parameter information corresponding to the second display state through the application; adjust the current window display parameter information of the application window according to the target window display parameter information through the application, so as to switch the application window from the first display state to the second display state through the application itself. This scheme can avoid some problems caused by the system switching the display state of the application window in the related art, realize direct switching of different display states of the application window, and improve the switching efficiency between different display states of the application window. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 is a scene schematic diagram of the window display switching method provided in an embodiment of the present application;

[0040] Figure 2 is a flow chart of a window display switching method provided by an embodiment of the present application;

[0041] Figure 3 is another scenario schematic diagram of the window display switching method provided in an embodiment of the present application;

[0042] Figure 4 is another scenario schematic diagram of the window display switching method provided in an embodiment of the present application;

[0043] Figure 5 is another flow chart of the window display switching method provided by an embodiment of the present application;

[0044] Figure 6is another scenario schematic diagram of the window display switching method provided in an embodiment of the present application;

[0045] Figure 7 is another scenario schematic diagram of the window display switching method provided in an embodiment of the present application;

[0046] Figure 8 It is a structural schematic diagram of a display switching device for window status provided in an embodiment of the present application;

[0047] Fig. 9 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0049] The embodiments of the present application provide a window display switching method, device, terminal and computer-readable storage medium. Specifically, the embodiments of the present application provide a window display switching device suitable for a terminal, which can be a tablet computer, a laptop computer, a mobile phone and other devices.

[0050] This embodiment of the application will take a terminal as an example to introduce a window display switching method. Figure 1 , the terminal can receive a display state change instruction of the application window when the application window of the application is in a first display state, and intercept a change message generated by the terminal system based on the display state change instruction to prevent the terminal system from changing the display state of the application window according to the change message; determine, through the application according to the display state change instruction, a second display state after the application window changes its display state; obtain, through the application, target window display parameter information corresponding to the second display state; and adjust, through the application according to the target window display parameter information, the current window display parameter information of the application window to switch the application window from the first display state to the second display state.

[0051] See also Figure 2 , Figure 2 The method flow of switching from the first display state to the second display state when the second display state is a full-screen display state or a maximized display state is shown.

[0052] When the second display state is the full-screen display state, upon receiving the display state change instruction of the application window (in Figure 2In the example given, after the display state change instruction is a maximized display state instruction, the change message generated by the system based on the maximized display state instruction is intercepted, and the current style information, attribute information and window size information of the application window in the full-screen display state are obtained through the application; the target window display parameter information corresponding to the full-screen display state is obtained according to the obtained style information, attribute information and window size information; the current window display parameter information of the application window is adjusted according to the target window display parameter information through the application to switch the application window from the first display state to the second display state, that is, to switch the first display state to the full-screen display state. Among them, optionally, Figure 2 The maximized display state instruction carries instruction information for instructing to switch the application window to a full-screen display state.

[0053] When the second display state is the maximized display state, Figure 2 In the above, upon receiving the display state change instruction of the application window (in Figure 2 In the example given, after the display state change instruction is a maximized display state instruction, intercept the change message generated by the system based on the maximized display state instruction, obtain the workspace size information of the terminal screen; determine the target window display parameter information of the application window when the second display state is the maximized display state according to the workspace size information; adjust the current window display parameter information of the application window according to the target window display parameter information through the application program, so as to switch the application window from the first display state to the second display state, that is, switch the first display state to the maximized display state. Among them, optionally, Figure 2 The maximized display state instruction carries instruction information for instructing to switch the application window to the maximized display state.

[0054] In an example of the present embodiment, when the first display state is a full-screen display state or a maximized display state, before obtaining the target window display parameter information corresponding to the second display state through the application, it also includes obtaining, through the application, the window size information, style information and attribute information of the application window in the display state before the first display state; saving the obtained window size information, style information and attribute information; and obtaining, through the application, the target window display parameter information corresponding to the second display state based on the saved window size information, style information and attribute information.

[0055] See also Figure 3 , Figure 3The method flow of restoring from the first display state to the second display state when the first display state is a full-screen display state or a maximized display state is shown.

[0056] When the first display state is a full-screen display state, upon receiving a display state change instruction of the application window (in Figure 3 In the example given, after the display state change instruction is a restore display state instruction), the saved window size information, style information and attribute information are obtained through the application, and the target window display parameter information corresponding to the second display state is generated based on the obtained window size information, style information and attribute information; the current window display parameter information of the application window is replaced by the target window display parameter information through the application to switch the application window from the first display state to the second display state.

[0057] When the first display state is the maximized display state, upon receiving the display state change instruction of the application window (in Figure 3 In the example given, after the display state change instruction is a restore display state instruction), the application obtains the window size information from the saved window size information, style information and attribute information, and generates target window display parameter information corresponding to the second display state based on the window size information; the application replaces the current window display parameter information of the application window with the target window display parameter information to switch the application window from the first display state to the second display state.

[0058] Understandably, Figure 3 In the two display state switching schemes, the second display state is actually the display state before the first display state, so these two schemes realize restoring the display state of the application window to the display state before the first display state.

[0059] In one embodiment, the restore display status instruction may carry indication information indicating that the application window is minimized. In this embodiment, after receiving the restore display status instruction, it is also determined whether the application window is minimized based on the restore display status instruction. If so, the application window is minimized through the application.

[0060] As can be seen from the above, the solution of this embodiment can realize the direct switching of different display states of the application window, and improve the switching efficiency between different display states of the application window. The following is a detailed description. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0061] The embodiments of the present application will be described from the perspective of a window display switching device, which can be specifically integrated in a terminal.

[0062] The embodiment of the present application provides a window display switching method, which can be executed by a processor of a terminal, such as Figure 4 As shown, the specific process of the window display switching method can be as follows:

[0063] 101. When an application window of an application is in a first display state, a display state change instruction of the application window is received, and a change message generated by a terminal system based on the display state change instruction is intercepted, wherein the change message is used to instruct the terminal system to switch the display state of the application window.

[0064] Among them, the size of the application window is different in different display states. The display state of the application window includes but is not limited to a full-screen display state, a maximized display state or a minimized display state. The first display state can be any one of the display states of the application window, such as a full-screen display state, a maximized display state or a minimized display state.

[0065] The display state change instruction of the application window is an instruction that can change the display state of the application window, and can instruct the application to switch its own application window from a first display state to a second display state. Optionally, the content of the display state change instruction is not limited. For example, the display state change instruction can be Figure 2 The maximized display state change instruction in the example shown can also be Figure 3 The restore display state change instruction in the illustrated example may change the first display state of the application window to a full-screen display state or a maximized display state, etc., when receiving a maximized display state change instruction.

[0066] The purpose of intercepting the change message generated by the terminal system based on the display state change instruction is to prevent the system from changing the display state of the application window so that the application can change the display state of the application window. In the related technology of window display state switching, the system can change the display state of the window through the change message. For example, some application windows change the display state of the application window through the system, while this solution changes the display state of the application window through the application itself.

[0067] 102. Determine, by the application program, a second display state of the application window after the display state is changed according to the display state change instruction.

[0068] The second display state may be one of the display states of the application window described above, and the second display state may be switched from the first display state according to the display state change instruction, for example, from the full screen display state to the maximized display state, or from the maximized display state to the full screen display state, and so on.

[0069] Optionally, the second display state may be determined by a display state change instruction of the application window triggered by the user.

[0070] 103. Obtain, through the application, target window display parameter information corresponding to the second display state.

[0071] Among them, when the second display state is a full-screen display state, the target window display parameter information corresponding to the second display state may include the current style information and attribute information of the application window and the window size information of the application window in the full-screen display state, and other target window parameter information.

[0072] Optionally, when the second display state is a full-screen display state, the step of "obtaining target window display parameter information corresponding to the second display state through the application" may include: when the second display state is a full-screen display state, obtaining through the application the current style information, attribute information and window size information of the application window in the full-screen display state; and obtaining the target window display parameter information corresponding to the full-screen display state based on the acquired style information, attribute information and window size information.

[0073] Optionally, the step of "obtaining, through the application, the current style information, attribute information of the application window, and the window size information of the application window in the full-screen display state" includes: obtaining, through the application based on the window function, the style information and attribute information of the application window; obtaining the screen size information of the terminal, and determining, according to the screen size information, the window size information of the application window when the second display state is the full-screen display state.

[0074] For example, when the second display state is a full-screen display state, the application window is switched from the first display state to the full-screen display state by acquiring the window style information corresponding to the full-screen display state, changing the properties of the window, and the window information of the application window in the full-screen state, and the window is displayed in full screen. The first display state may be one of a maximized display state, a full-screen display state, or a minimized display state.

[0075] Specifically, when the second display state is a maximized display state, the step of "obtaining the target window display parameter information corresponding to the second display state through the application" may include: when the second display state is a maximized display state, obtaining the working area size information of the screen of the terminal; determining the window size information of the application window in the maximized display state according to the working area size information, and determining the target window display parameter information based on the size information.

[0076] For example, when the second display state is the maximized display state, the size of the application window is set to the acquired terminal workspace size, the first display state is switched to the second display state, and the application window is maximized. For example, in an application window on a desktop, according to a display state change instruction, the application window is switched from one display state to a maximized display state.

[0077] In one embodiment, when the first display state is a full-screen display state or a maximized display state, the step of "before obtaining the target window display parameter information corresponding to the second display state through the application" may also include: obtaining the window size information, style information and attribute information of the application window in the display state before the first display state through the application; saving the obtained window size information, style information and attribute information; and obtaining the target window display parameter information corresponding to the second display state based on the saved window size information, style information and attribute information through the application.

[0078] In one embodiment, when the first display state is a full-screen display state, the step of "obtaining the target window display parameter information corresponding to the second display state based on the saved window size information, style information and attribute information through the application" may include: obtaining the saved window size information, style information and attribute information through the application, and generating the target window display parameter information corresponding to the second display state based on the obtained window size information, style information and attribute information.

[0079] In one embodiment, when the first display state is a maximized display state, the step of "obtaining target window display parameter information corresponding to the second display state based on the saved window size information, style information, and attribute information through the application" may include: obtaining the window size information from the saved window size information, style information, and attribute information through the application, and generating target window display parameter information corresponding to the second display state based on the window size information.

[0080] 104. The application program adjusts the current window display parameter information of the application window according to the target window display parameter information, and switches the application window from the first display state to the second display state according to the adjusted window display parameter.

[0081] Optionally, when the second display state is the full-screen display state, adjusting the current window display parameter information may be adjusting the current window display parameter information to the window style information, attribute information, and size information corresponding to the full-screen display state.

[0082] Optionally, when the second display state is the maximized display state, adjusting the current window display parameter information may be adjusting the size of the application window, adjusting the size of the application window to the acquired workspace size of the terminal screen, so as to switch the application window from the first display state to the second display state. Of course, it is understandable that the size of the adjusted application window is not limited to the workspace size.

[0083] In one embodiment, when the first display state is a full-screen display state, the current window display state parameter information of the application window is adjusted, and the current window display parameter information of the application window is replaced with the target window display parameter information to switch the application window from the first display state to the second display state.

[0084] In one embodiment, when the first display state is the maximized display state, the current window display parameter information of the application window is adjusted, and the current window display parameter information of the application window is replaced with the target window display parameter information, and the target window display parameter information is the window size information saved in the display state before the first display state, so as to switch the application window from the first display state to the second display state.

[0085] As can be seen from the above, the solution of the embodiment of the present application can realize direct switching of different display states of the application window, and improve the switching efficiency between different display states of the application window. According to the method described in the above embodiment, the following will give an example to further explain in detail.

[0086] The embodiment of the present application will be described from the perspective of a window display switching device, and the window status display switching device can be specifically integrated in a terminal.

[0087] like Figure 5 A window display switching method is shown, and the specific process can be as follows:

[0088] 201. When an application window of an application is in a first display state, the terminal receives a display state change instruction of the application window, and intercepts a change message generated by the terminal system based on the display state change instruction, wherein the change message is used to instruct the terminal system to switch the display state of the application window.

[0089] For example, when the application window of an application is in Figure 6 When the application window is in the maximized display state shown in FIG. 1 , a display state change instruction of the application window is received, such as a maximized display state change instruction, the application window can be switched to the state shown in FIG. Figure 7 In the full-screen display state shown, after receiving the maximized display state change instruction, the terminal will intercept the change message generated by the terminal system based on the maximized state change instruction to prevent the system from switching the application window to the maximized display state, and the application itself will implement the switch.

[0090] 202. The terminal determines, through the application program and according to the display state change instruction, a second display state of the application window after the display state is changed.

[0091] For example, when the second display state is a full-screen display state, according to the display state change instruction, it is determined that the second display state of the application window after the display state is changed is as follows: Figure 7 The full screen display state is shown.

[0092] Among them, because the terminal intercepts the change message generated by the terminal system based on the display state change instruction, the application window is determined to be changed to Figure 7 The full-screen display state shown can be achieved by the application according to the display state change instruction.

[0093] 203. The terminal obtains target window display parameter information corresponding to the second display state through the application.

[0094] The target window display parameter information is determined by the second display state. For example, when the second display state is a full-screen display state, the target window display parameter information is obtained based on the current style information, attribute information of the application window and the window size information of the application window in the full-screen display state; when the second display state is a maximized display state, the work area size information of the terminal screen is obtained as the target window display parameter information; when the first display state is a full-screen display state, the target window display parameter information corresponding to the second display state can be generated based on the window size information, style information and attribute information saved in the display state before the first display state; when the first display state is a maximized display state, the corresponding target window display parameter information can be generated based on the window size information saved in the display state before the first display state.

[0095] 204. The terminal adjusts the current window display parameter information of the application window according to the target window display parameter information through the application program; and switches the application window from the first display state to the second display state according to the adjusted window display parameter.

[0096] For example, as in step 203, after obtaining the window display parameter information corresponding to the second display state, such as the style information, attribute information of the current window and the window size information in the full-screen display state, the information is adjusted to obtain the required adjusted target window display parameter information, and the application window is switched to the second display state according to the adjusted target window display parameter information, and the application window is displayed in the second display state. For example, if the first display state is the maximized display state and the second display state is the full-screen display state, the first display state of the application window is switched to the second display state according to the adjusted target window parameter information, that is, the maximized display state of the application window is switched to the full-screen display state.

[0097] From the above, it can be seen that the solution of the embodiment of the present application can realize the direct switching of different display states of the application window, and improve the switching efficiency between different display states of the application window. In order to better implement the above method, accordingly, the embodiment of the present application also provides a window display switching device, wherein the window display switching device can be specifically integrated in the terminal.

[0098] For example, Figure 8 As shown, the display switching device of the window state may include a receiving unit 301, a determining unit 302, a first acquiring unit 303, an adjusting unit 304 and a switching unit 305, as follows:

[0099] (1) receiving unit 301;

[0100] The receiving unit 301 is configured to receive a display state change instruction of the application window when the application window of the application is in a first display state, and intercept a change message generated by the terminal system based on the display state change instruction.

[0101] (2) determining unit 302;

[0102] The determining unit 302 is configured to determine, through the application program, a second display state of the application window after the display state is changed according to the display state change instruction.

[0103] (3) a first acquisition unit 303;

[0104] The first acquisition unit 303 is used to acquire target window display parameter information corresponding to the second display state through the application program.

[0105] In one embodiment, the first acquiring unit 303 includes a first acquiring subunit 3031 , a first obtaining subunit 3032 , a second acquiring subunit 3033 , a determining subunit 3034 , and a second obtaining subunit 3035 .

[0106] In an example, the first acquisition subunit 3031 is used to acquire, through the application program, the current style information, attribute information of the application window and the window size information of the application window in the full-screen display state when the second display state is the full-screen display state.

[0107] The first obtaining subunit 3032 is used to obtain the target window display parameter information corresponding to the full-screen display state according to the style information, attribute information and window size information obtained by the first obtaining subunit 3031.

[0108] Furthermore, the first acquisition subunit 3031 is used to obtain style information and attribute information of the application window based on the window function through the application when the second display state is a full-screen display state; obtain the screen size information of the terminal, and determine the window size information of the application window when the second display state is a full-screen display state according to the screen size information.

[0109] In another example, the second acquisition subunit 3033 is used to acquire the work area size information of the screen of the terminal when the second display state is the maximized display state.

[0110] The determination subunit 3034 is used to determine, according to the workspace size information, target window display parameter information of the application window when the second display state is the maximized display state.

[0111] In yet another embodiment, the window display switching device further includes:

[0112] A second acquisition unit 306 is configured to, when the first display state is a full-screen display state or a maximized display state, acquire, through the application program, window size information, style information, and attribute information of the application window in a display state before the first display state before the first acquisition unit 303 acquires, through the application program, target window display parameter information corresponding to the second display state;

[0113] The saving unit 307 is used to save the acquired window size information, style information and attribute information.

[0114] Furthermore, the first acquiring unit 303 further includes:

[0115] The second obtaining subunit 3035 is used to obtain the target window display parameter information corresponding to the second display state based on the window size information, style information and attribute information saved by the saving unit 306 through the application program.

[0116] Optionally, when the second display state is a full-screen display state, the second obtaining sub-unit 3035 is used to obtain the saved window size information, style information and attribute information through the application, and generate the target window display parameter information corresponding to the second display state based on the obtained window size information, style information and attribute information.

[0117] Optionally, when the second display state is a maximized display state, the second obtaining subunit 3035 is used to obtain the window size information from the saved window size information, style information and attribute information through the application, and generate target window display parameter information corresponding to the second display state based on the window size information.

[0118] (4) adjustment unit 304;

[0119] The adjusting unit 304 is used to adjust the current window display parameter information of the application window according to the target window display parameter information through the application program.

[0120] In one embodiment, the adjustment unit 304 includes:

[0121] The first adjusting subunit 3041 is used to replace the current window display parameter information of the application window with the target window display parameter information through the application program;

[0122] In one embodiment, the adjustment unit 304 includes:

[0123] The second adjusting subunit 3042 is configured to replace the current window display parameter information of the application window with the target window display parameter information through the application program when the first display state is the full-screen display state.

[0124] (5) Switching unit 305;

[0125] The switching unit 305 is configured to switch the application window from the first display state to the second display state according to the adjusted window display parameters when the first display state is a maximized display state.

[0126] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0127] As can be seen from the above, in the display switching device for the window state of this embodiment, the receiving unit 301 receives the display state change instruction of the application window when the application window of the application is in the first display state, and intercepts the change message generated by the terminal system based on the display state change instruction, wherein the change message is used to instruct the terminal system to switch the display state of the application window; then, the determining unit 302 determines the second display state of the application window after the display state is changed according to the display state change instruction through the application; the first acquiring unit 303 acquires the target window display parameter information corresponding to the second display state through the application; the adjusting unit 304 adjusts the current window display parameter information of the application window according to the target window display parameter information through the application; and the switching unit 305 is used to switch the application window from the first display state to the second display state according to the adjusted window display parameters. . This scheme can realize the direct switching of different display states of the application window and improve the switching efficiency between different display states of the application window. Accordingly, the embodiment of the present application also provides a terminal, such as Fig. 9 As shown, the terminal may include a radio frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a wireless fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that Fig. 9 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0128] in:

[0129] The RF circuit 401 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 408 for processing; in addition, the data related to the uplink is sent to the base station. Usually, the RF circuit 401 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 401 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0130] The memory 402 can be used to store software programs and modules. The processor 408 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 with access to the memory 402.

[0131] The input unit 403 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 403 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 408, and can receive and execute the command sent by the processor 408. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0132] The display unit 404 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 404 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 408 to determine the type of touch event. Subsequently, the processor 408 provides corresponding visual output on the display panel according to the type of touch event. Although in Fig. 9 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.

[0133] The terminal may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0134] The audio circuit 406, the speaker, and the microphone can provide an audio interface between the user and the terminal. The audio circuit 406 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 406 and converted into audio data, and then the audio data is output to the processor 408 for processing, and then sent to another terminal through the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuit 406 may also include an earplug jack to provide communication between an external headset and the terminal.

[0135] WiFi is a short-range wireless transmission technology. The terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 407. It provides users with wireless broadband Internet access. Fig. 9 A WiFi module 407 is shown, but it is understandable that it is not an essential component of the terminal and can be omitted as required without changing the essence of the invention.

[0136] The processor 408 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 408.

[0137] The terminal also includes a power supply 409 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 408 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 409 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0138] Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 408 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 408 will run the applications stored in the memory 402 to achieve various functions:

[0139] When an application window of an application is in a first display state, a display state change instruction of the application window is received, and a change message generated by a terminal system based on the display state change instruction is intercepted, wherein the change message is used to instruct the terminal system to switch the display state of the application window; determining, by the application according to the display state change instruction, a second display state after the display state of the application window is changed; obtaining, by the application, target window display parameter information corresponding to the second display state; adjusting, by the application according to the target window display parameter information, the current window display parameter information of the application window; and switching the application window from the first display state to the second display state according to the adjusted window display parameters.

[0140] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0141] As can be seen from the above, the embodiments of the present application can realize direct switching of different display states of the application window, and improve the switching efficiency between different display states of the application window. . A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0142] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the window display switching methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:

[0143] When an application window of an application is in a first display state, a display state change instruction of the application window is received, and a change message generated by a terminal system based on the display state change instruction is intercepted, wherein the change message is used to instruct the terminal system to switch the display state of the application window; determining, by the application according to the display state change instruction, a second display state after the display state of the application window is changed; obtaining, by the application, target window display parameter information corresponding to the second display state; adjusting, by the application according to the target window display parameter information, the current window display parameter information of the application window; and switching the application window from the first display state to the second display state according to the adjusted window display parameters.

[0144] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0145] Since the instructions stored in the storage medium can execute the steps in any window display switching method provided in the embodiments of the present application, the beneficial effects that can be achieved by any window display switching method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0146] The above is a detailed introduction to a window display switching method, device, terminal and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A window display switching method, characterized in that: include: When an application window of an application is in a first display state, receiving a display state change instruction of the application window, and intercepting a change message generated by a terminal system based on the display state change instruction, so as to prevent the terminal system from changing the display state of the application window of the application according to the change message, wherein the change message is used to instruct the terminal system to switch the display state of the application window, the first display state includes but is not limited to a full-screen display state, a maximized display state or a minimized display state, and the display state change instruction is used to instruct the application to switch its own application window from the first display state to the second display state; Determining, by the application program according to the display state change instruction, a second display state after the display state of the application window is changed; acquiring, through the application, target window display parameter information corresponding to the second display state; By means of the application program, the current window display parameter information of the application window is adjusted according to the target window display parameter information; Switching the application window from the first display state to the second display state according to the adjusted window display parameters by the application program; The acquiring, through the application, target window display parameter information corresponding to the second display state includes: When the second display state is a full-screen display state, obtaining, through the application program based on a window function, current style information and attribute information of the application window; obtaining, through the application program, screen size information of the terminal, and determining, according to the screen size information, window size information of the application window when the second display state is a full-screen display state; The target window display parameter information corresponding to the full-screen display state is obtained by the application program according to the acquired style information, attribute information and window size information.

2. The window display switching method according to claim 1, characterized in that: The acquiring, through the application, target window display parameter information corresponding to the second display state includes: When the second display state is a maximized display state, obtaining work area size information of the screen of the terminal; The window size information of the application window in the maximized display state is determined according to the workspace size information, and the target window display parameter information is determined based on the window size information.

3. The window display switching method according to claim 1, characterized in that: When the first display state is a full-screen display state or a maximized display state, before obtaining the target window display parameter information corresponding to the second display state through the application, the method further includes: Acquiring, by the application program, window size information, style information, and attribute information of the application window in a display state before the first display state; The acquired window size information, style information and attribute information are saved; The acquiring, through the application, target window display parameter information corresponding to the second display state comprises: The target window display parameter information corresponding to the second display state is obtained by the application based on the saved window size information, style information and attribute information.

4. The window display switching method according to claim 3, characterized in that: When the first display state is a full-screen display state, obtaining the target window display parameter information corresponding to the second display state based on the saved window size information, style information, and attribute information through the application program includes: Acquire the saved window size information, style information and attribute information through the application, and generate target window display parameter information corresponding to the second display state based on the acquired window size information, style information and attribute information; The step of adjusting the current window display parameter information of the application window according to the target window display parameter information by the application program includes: The current window display parameter information of the application window is replaced by the target window display parameter information through the application program.

5. The window display switching method according to claim 3, characterized in that: When the first display state is a maximized display state, obtaining the target window display parameter information corresponding to the second display state based on the saved window size information, style information, and attribute information through the application program includes: Acquiring the window size information from the stored window size information, style information and attribute information through the application program, and generating target window display parameter information corresponding to the second display state based on the window size information; The step of adjusting the current window display parameter information of the application window according to the target window display parameter information by the application program includes: The current window display parameter information of the application window is replaced by the target window display parameter information through the application program.

6. A window display switching device, characterized in that: include: a receiving unit, configured to receive a display state change instruction of the application window when the application window of the application is in a first display state, and intercept a change message generated by the terminal system based on the display state change instruction, so as to prevent the terminal system from changing the display state of the application window of the application according to the change message, wherein the change message is used to instruct the terminal system to switch the display state of the application window, the first display state includes but is not limited to a full-screen display state, a maximized display state or a minimized display state, and the display state change instruction is used to instruct the application to switch its own application window from the first display state to the second display state; a determining unit, configured to determine, through the application program according to the display state change instruction, a second display state of the application window after the display state of the application window is changed; A first acquisition unit, configured to acquire, through the application, target window display parameter information corresponding to the second display state; an adjusting unit, which adjusts the current window display parameter information of the application window according to the target window display parameter information through the application program; a switching unit, configured to switch the application window from the first display state to the second display state according to the adjusted window display parameters through the application program; The first acquisition unit is also used to, when the second display state is a full-screen display state, obtain the current style information and attribute information of the application window based on the window function through the application; obtain the screen size information of the terminal through the application, and determine the window size information of the application window when the second display state is a full-screen display state according to the screen size information; obtain the target window display parameter information corresponding to the full-screen display state through the application according to the acquired style information, attribute information and window size information.

7. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps in the window display switching method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the window display switching method according to any one of claims 1 to 5.