Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: ash/common/wm/dock/dock_types.h

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_WM_DOCK_DOCK_TYPES_H_
6 #define ASH_COMMON_WM_DOCK_DOCK_TYPES_H_
7
8 namespace ash {
9
10 // Possible values of which side of the screen the windows are docked at.
11 // This is used by DockedwindowLayoutManager and DockedWindowResizer to
12 // implement docking behavior including magnetism while dragging windows into
13 // or out of the docked windows area.
14 enum DockedAlignment {
15 // No docked windows.
16 DOCKED_ALIGNMENT_NONE,
17
18 // Some windows are already docked on the left side of the screen.
19 DOCKED_ALIGNMENT_LEFT,
20
21 // Some windows are already docked on the right side of the screen.
22 DOCKED_ALIGNMENT_RIGHT,
23 };
24
25 // User action recorded for use in UMA histograms.
26 enum DockedAction {
27 DOCKED_ACTION_NONE, // Regular drag of undocked window. Not recorded.
28 DOCKED_ACTION_DOCK, // Dragged and docked a window.
29 DOCKED_ACTION_UNDOCK, // Dragged and undocked a window.
30 DOCKED_ACTION_RESIZE, // Resized a docked window.
31 DOCKED_ACTION_REORDER, // Possibly reordered docked windows.
32 DOCKED_ACTION_EVICT, // A docked window could not stay docked.
33 DOCKED_ACTION_MAXIMIZE, // Maximized a docked window.
34 DOCKED_ACTION_MINIMIZE, // Minimized a docked window.
35 DOCKED_ACTION_RESTORE, // Restored a docked window that was minimized.
36 DOCKED_ACTION_CLOSE, // Closed a window while it was docked.
37 DOCKED_ACTION_COUNT, // Maximum value of this enum for histograms use.
38 };
39
40 // Event source for the docking user action (when known).
41 enum DockedActionSource {
42 DOCKED_ACTION_SOURCE_UNKNOWN,
43 DOCKED_ACTION_SOURCE_MOUSE,
44 DOCKED_ACTION_SOURCE_TOUCH,
45 DOCKED_ACTION_SOURCE_KEYBOARD,
46
47 // Maximum value of this enum for histograms use.
48 DOCKED_ACTION_SOURCE_COUNT,
49 };
50
51 } // namespace ash
52
53 #endif // ASH_COMMON_WM_DOCK_DOCK_TYPES_H_
OLDNEW
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698