1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ash / wm / snap_group / snap_group_test_util.h [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/events/test/event_generator.h"
#ifndef ASH_WM_SNAP_GROUP_SNAP_GROUP_TEST_UTIL_H_
#define ASH_WM_SNAP_GROUP_SNAP_GROUP_TEST_UTIL_H_
namespace aura {
class Window;
} // namespace aura
namespace gfx {
class Rect;
} // namespace gfx
namespace ash {
class SnapGroup;
class SplitViewDivider;
SplitViewDivider* GetTopmostSnapGroupDivider();
gfx::Rect GetTopmostSnapGroupDividerBoundsInScreen();
void ClickOverviewItem(ui::test::EventGenerator* event_generator,
aura::Window* window);
void SnapTwoTestWindows(aura::Window* window1,
aura::Window* window2,
bool horizontal,
ui::test::EventGenerator* event_generator);
// Verifies that the union bounds of `w1`, `w2` and the divider are equal to
// the bounds of the work area with no overlap.
void UnionBoundsEqualToWorkAreaBounds(aura::Window* w1,
aura::Window* w2,
SplitViewDivider* divider);
// Verifies that the union bounds of the windows and divider in `snap_group` are
// equal to the bounds of the work area with no overlap.
void UnionBoundsEqualToWorkAreaBounds(SnapGroup* snap_group);
} // namespace ash
#endif // ASH_WM_SNAP_GROUP_SNAP_GROUP_TEST_UTIL_H_