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
48
49
50
51
52
ash / wm / wm_metrics.cc [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 "ash/wm/wm_metrics.h"
namespace ash {
std::ostream& operator<<(std::ostream& out, WindowSnapActionSource source) {
switch (source) {
case WindowSnapActionSource::kNotSpecified:
return out << "NotSpecified";
case WindowSnapActionSource::kDragWindowToEdgeToSnap:
return out << "DragWindowToEdgeToSnap";
case WindowSnapActionSource::kLongPressCaptionButtonToSnap:
return out << "LongPressCaptionButtonToSnap";
case WindowSnapActionSource::kKeyboardShortcutToSnap:
return out << "KeyboardShortcutToSnap";
case WindowSnapActionSource::kDragOrSelectOverviewWindowToSnap:
return out << "DragOrSelectOverviewWindowToSnap";
case WindowSnapActionSource::kLongPressOverviewButtonToSnap:
return out << "LongPressOverviewButtonToSnap";
case WindowSnapActionSource::kDragUpFromShelfToSnap:
return out << "DragUpFromShelfToSnap";
case WindowSnapActionSource::kDragDownFromTopToSnap:
return out << "DragDownFromTopToSnap";
case WindowSnapActionSource::kDragTabToSnap:
return out << "DragTabToSnap";
case WindowSnapActionSource::kAutoSnapInSplitView:
return out << "AutoSnapInSplitView";
case WindowSnapActionSource::kSnapByWindowStateRestore:
return out << "SnapByWindowStateRestore";
case WindowSnapActionSource::kSnapByWindowLayoutMenu:
return out << "SnapByWindowLayoutMenu";
case WindowSnapActionSource::kSnapByFullRestoreOrDeskTemplateOrSavedDesk:
return out << "SnapByFullRestoreOrDeskTemplateOrSavedDesk";
case WindowSnapActionSource::kSnapByClamshellTabletTransition:
return out << "SnapByClamshellTabletTransition";
case WindowSnapActionSource::kSnapByDeskOrSessionChange:
return out << "SnapByDeskOrSessionChange";
case WindowSnapActionSource::kSnapGroupWindowUpdate:
return out << "SnapGroupWindowUpdate";
case WindowSnapActionSource::kTest:
return out << "Test";
case WindowSnapActionSource::kLacrosSnapButtonOrWindowLayoutMenu:
return out << "LacrosSnapButtonOrWindowLayoutMenu";
case WindowSnapActionSource::kSnapBySwapWindowsInSnapGroup:
return out << "SnapBySwapWindowsInSnapGroup";
}
}
} // namespace ash