Control content drag method and system, and electronic device
AssigneeHuawei Technologies Co., Ltd.
InventorBo Wang
Life of this patent
Estimating the term…
Abstract
A control content drag method is provided. The method includes: a first electronic device displays a first window and a second window of at least one application. A framework layer of the first electronic device detects a touch and hold operation on a first control in the first window. In response to a drag operation that uses the touch and hold operation as a drag start operation, the a framework layer transfers content of the first control from the first window to the second window.
Claims17
A control content drag method performed by a first electronic device, comprising:
- displaying a first window and a second window of at least one application running at an application layer of the first electronic device;
- detecting, by a framework layer of an operating system of the first electronic device, a touch and hold operation on a first control in the first window;
- and
- in response to a drag operation that uses the touch and hold operation as a drag start operation, transferring, by the framework layer, content of the first control from the first window to the second window, wherein the drag operation is used to drag the content of the first control from the first window to the second window.
A control content drag method performed by a second electronic device, comprising:
- projecting a first window and a second window of at least one application running at an application layer onto a first electronic device;
- receiving, by a framework layer of an operating system of the first electronic device, a touch and hold event sent by the first electronic device, wherein the touch and hold event comprises coordinates of a touch and hold operation on the first window that is displayed on the first electronic device;
- determining a first control in the first window based on the coordinates of the touch and hold operation, and obtaining content of the first control;
- receiving, by the framework layer, a drag end event sent by the first electronic device, wherein the drag end event comprises a location of a drag end operation of a drag operation, the drag operation is used to drag the content of the first control from the first window to the second window, and a drag start operation of the drag operation is the touch and hold operation;
- and
- transferring, by the framework layer, the content of the first control to the second window based on the location of the drag end operation.
A first electronic device comprising:
- one or more processors;
- and
- a non-transitory memory storing program instructions for execution by the one or more processors, the program instructions including instructions for:
- displaying a first window and a second window of at least one application running at an application layer of the first electronic device;
- detecting, by a framework layer of an operating system of the first electronic device, a touch and hold operation on a first control in the first window;
- and
- in response to a drag operation that uses the touch and hold operation as a drag start operation, transferring, by the framework layer, content of the first control from the first window to the second window, wherein the drag operation is used to drag the content of the first control from the first window to the second window.
A second electronic device comprising:
- one or more processors;
- and
- a non-transitory memory storing program instructions for execution by the one or more processors, the program instructions including instructions for:
- projecting a first window and a second window onto a first electronic device of at least one application running at an application layer;
- receiving, by a framework layer of an operating system of the second electronic device, a touch and hold event sent by the first electronic device, wherein the touch and hold event comprises coordinates of a touch and hold operation on the first window that is displayed on the first electronic device, the drag unit does not belong to an application to which the first window belongs or an application to which the second window belongs, and the first window and the second window belong to a same application or different applications;
- determining a first control in the first window based on the coordinates of the touch and hold operation, and obtaining content of the first control;
- receiving, by the framework layer, a drag end event sent by the first electronic device, wherein the drag end event comprises a location of a drag end operation of a drag operation, the drag operation is used to drag the content of the first control from the first window to the second window, and a drag start operation of the drag operation is the touch and hold operation;
- and
- transferring, by the framework layer, the content of the first control to the second window based on the location of the drag end operation.
Dependencies are inferred from the claim text.