blob: 026c72d4924f0c9a03edbd0be2344573d3442ff7 (
plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_WINDOW_PROPERTIES_H_
#define ASH_WM_WINDOW_PROPERTIES_H_
#include "ash/ash_export.h"
#include "ash/wm/property_util.h"
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
namespace gfx {
class Rect;
}
namespace ui_controls {
class UIControlsAura;
}
namespace ash {
class FramePainter;
namespace internal {
class AlwaysOnTopController;
class RootWindowController;
// Shell-specific window property keys.
// Alphabetical sort.
// A Key to store AlwaysOnTopController per RootWindow. The value is
// owned by the RootWindow.
extern const aura::WindowProperty<internal::AlwaysOnTopController*>* const
kAlwaysOnTopControllerKey;
// A property key to disable the frame painter policy for solo windows.
// It is only available for root windows.
ASH_EXPORT extern const aura::WindowProperty<bool>* const
kIgnoreSoloWindowFramePainterPolicy;
// True if the window is ignored by the shelf layout manager for purposes of
// darkening the shelf.
extern const aura::WindowProperty<bool>* const
kIgnoredByShelfKey;
// True if this is a browser window in immersive mode.
ASH_EXPORT extern const aura::WindowProperty<bool>* const kImmersiveModeKey;
// Used to remember the show state before the window was minimized.
extern const aura::WindowProperty<ui::WindowShowState>* const
kRestoreShowStateKey;
extern const aura::WindowProperty<RootWindowController*>* const
kRootWindowControllerKey;
// A property key to remember the frame painter for the solo-window in the root
// window. It is only available for root windows.
ASH_EXPORT extern const aura::WindowProperty<ash::FramePainter*>* const
kSoloWindowFramePainterKey;
// If this is set to true, the window stays in the same root window
// even if the bounds outside of its root window is set.
// This is exported as it's used in the tests.
ASH_EXPORT extern const aura::WindowProperty<bool>* const
kStayInSameRootWindowKey;
// Used to store a ui_controls for each root window.
extern const aura::WindowProperty<ui_controls::UIControlsAura*>* const
kUIControlsKey;
// A property key to remember if a windows position or size was changed by a
// user.
ASH_EXPORT extern const aura::WindowProperty<bool>* const
kUserChangedWindowPositionOrSizeKey;
// A property to remember the window position which was set before the
// auto window position manager changed the window bounds, so that it can get
// restored when only this one window gets shown.
ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const
kPreAutoManagedWindowBoundsKey;
// Property to tell if the container uses the screen coordinates.
extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
extern const aura::WindowProperty<WindowPersistsAcrossAllWorkspacesType>* const
kWindowPersistsAcrossAllWorkspacesKey;
// A property key to remember if a windows position can be managed by the
// workspace manager or not.
ASH_EXPORT extern const aura::WindowProperty<bool>* const
kWindowPositionManagedKey;
// A property key to tell the workspace layout manager to always restore the
// window to the restore-bounds (false by default).
extern const aura::WindowProperty<bool>* const kWindowRestoresToRestoreBounds;
// True if the window is controlled by the workspace manager.
extern const aura::WindowProperty<bool>* const
kWindowTrackedByWorkspaceKey;
// Alphabetical sort.
} // namespace internal
} // namespace ash
#endif // ASH_WM_WINDOW_PROPERTIES_H_
|