-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the WM mode is active, a mouse or touch release triggers the window selection. Once a window is selected, the pie menu should be shown, and its bounds should be refreshed. Demo: https://b.corp.google.com/issues/296462416#comment2 Fixed: b/296462416 Test: Manually, unit test Change-Id: If3354e0fcca7289aac3f7017f3e81f4978687376 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4791312 Reviewed-by: James Cook <jamescook@chromium.org> Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185244}
- Loading branch information
Ahmed Fakhry
authored and
Chromium LUCI CQ
committed
Aug 18, 2023
1 parent
56c6a0d
commit f3dc293
Showing
7 changed files
with
344 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
ash/resources/vector_icons/wm_mode_gesture_move_to_desk.icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
CANVAS_DIMENSIONS, 24, | ||
MOVE_TO, 4, 20, | ||
R_ARC_TO, 1.99f, 1.99f, 0, 0, 1, -1.42f, -0.57f, | ||
ARC_TO, 1.99f, 1.99f, 0, 0, 1, 2, 18, | ||
R_V_LINE_TO, -3, | ||
R_H_LINE_TO, 2, | ||
R_V_LINE_TO, 3, | ||
R_H_LINE_TO, 16, | ||
V_LINE_TO, 6, | ||
H_LINE_TO, 4, | ||
R_V_LINE_TO, 3, | ||
H_LINE_TO, 2, | ||
V_LINE_TO, 6, | ||
R_CUBIC_TO, 0, -0.55f, 0.19f, -1.02f, 0.57f, -1.4f, | ||
R_CUBIC_TO, 0.4f, -0.4f, 0.88f, -0.6f, 1.43f, -0.6f, | ||
R_H_LINE_TO, 16, | ||
R_CUBIC_TO, 0.55f, 0, 1.02f, 0.2f, 1.4f, 0.6f, | ||
R_CUBIC_TO, 0.4f, 0.38f, 0.6f, 0.85f, 0.6f, 1.4f, | ||
R_V_LINE_TO, 12, | ||
R_CUBIC_TO, 0, 0.55f, -0.2f, 1.02f, -0.6f, 1.43f, | ||
R_CUBIC_TO, -0.38f, 0.38f, -0.85f, 0.57f, -1.4f, 0.57f, | ||
H_LINE_TO, 4, | ||
CLOSE, | ||
R_MOVE_TO, 7.5f, -3.5f, | ||
R_LINE_TO, -1.4f, -1.45f, | ||
LINE_TO, 12.18f, 13, | ||
H_LINE_TO, 2, | ||
R_V_LINE_TO, -2, | ||
R_H_LINE_TO, 10.18f, | ||
LINE_TO, 10.1f, 8.95f, | ||
R_LINE_TO, 1.4f, -1.45f, | ||
LINE_TO, 16, 12, | ||
R_LINE_TO, -4.5f, 4.5f, | ||
CLOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
CANVAS_DIMENSIONS, 24, | ||
MOVE_TO, 5, 9, | ||
R_V_LINE_TO, 5, | ||
R_H_LINE_TO, 2, | ||
R_V_LINE_TO, -3, | ||
R_H_LINE_TO, 3, | ||
V_LINE_TO, 9, | ||
H_LINE_TO, 5, | ||
CLOSE, | ||
R_MOVE_TO, 14, 3, | ||
R_V_LINE_TO, 5, | ||
R_H_LINE_TO, -5, | ||
R_V_LINE_TO, -2, | ||
R_H_LINE_TO, 3, | ||
R_V_LINE_TO, -3, | ||
R_H_LINE_TO, 2, | ||
CLOSE, | ||
NEW_PATH, | ||
MOVE_TO, 4, 20, | ||
R_ARC_TO, 1.99f, 1.99f, 0, 0, 1, -1.42f, -0.57f, | ||
ARC_TO, 1.99f, 1.99f, 0, 0, 1, 2, 18, | ||
V_LINE_TO, 6, | ||
R_CUBIC_TO, 0, -0.55f, 0.19f, -1.02f, 0.57f, -1.4f, | ||
R_CUBIC_TO, 0.4f, -0.4f, 0.88f, -0.6f, 1.43f, -0.6f, | ||
R_H_LINE_TO, 16, | ||
R_CUBIC_TO, 0.55f, 0, 1.02f, 0.2f, 1.4f, 0.6f, | ||
R_CUBIC_TO, 0.4f, 0.38f, 0.6f, 0.85f, 0.6f, 1.4f, | ||
R_V_LINE_TO, 12, | ||
R_CUBIC_TO, 0, 0.55f, -0.2f, 1.02f, -0.6f, 1.43f, | ||
R_CUBIC_TO, -0.38f, 0.38f, -0.85f, 0.57f, -1.4f, 0.57f, | ||
H_LINE_TO, 4, | ||
CLOSE, | ||
R_MOVE_TO, 0, -2, | ||
R_H_LINE_TO, 16, | ||
V_LINE_TO, 8, | ||
H_LINE_TO, 4, | ||
R_V_LINE_TO, 10, | ||
CLOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
CANVAS_DIMENSIONS, 24, | ||
MOVE_TO, 12, 7, | ||
H_LINE_TO, 5, | ||
R_V_LINE_TO, 10, | ||
R_H_LINE_TO, 7, | ||
V_LINE_TO, 7, | ||
CLOSE, | ||
NEW_PATH, | ||
MOVE_TO, 2.58f, 19.43f, | ||
R_CUBIC_TO, 0.4f, 0.38f, 0.88f, 0.57f, 1.43f, 0.57f, | ||
R_H_LINE_TO, 16, | ||
R_CUBIC_TO, 0.55f, 0, 1.02f, -0.19f, 1.4f, -0.57f, | ||
R_CUBIC_TO, 0.4f, -0.4f, 0.6f, -0.87f, 0.6f, -1.42f, | ||
V_LINE_TO, 6, | ||
R_CUBIC_TO, 0, -0.55f, -0.2f, -1.02f, -0.6f, -1.4f, | ||
R_CUBIC_TO, -0.38f, -0.4f, -0.85f, -0.6f, -1.4f, -0.6f, | ||
H_LINE_TO, 4, | ||
R_CUBIC_TO, -0.55f, 0, -1.02f, 0.2f, -1.42f, 0.6f, | ||
CUBIC_TO, 2.19f, 4.98f, 2, 5.45f, 2, 6, | ||
R_V_LINE_TO, 12, | ||
R_CUBIC_TO, 0, 0.55f, 0.19f, 1.02f, 0.57f, 1.43f, | ||
CLOSE, | ||
MOVE_TO, 20, 6, | ||
R_V_LINE_TO, 12, | ||
H_LINE_TO, 4, | ||
V_LINE_TO, 6, | ||
R_H_LINE_TO, 16, | ||
CLOSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.