1 // Copyright (c) 2012 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.
5 #include "ash/wm/window_properties.h"
7 #include "ash/root_window_controller.h"
8 #include "ash/wm/always_on_top_controller.h"
9 #include "ash/wm/frame_painter.h"
10 #include "ui/aura/window_property.h"
11 #include "ui/gfx/rect.h"
13 DECLARE_WINDOW_PROPERTY_TYPE(ash::internal::AlwaysOnTopController
*);
14 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(ASH_EXPORT
, ash::FramePainter
*);
15 DECLARE_WINDOW_PROPERTY_TYPE(ash::WindowPersistsAcrossAllWorkspacesType
)
16 DECLARE_WINDOW_PROPERTY_TYPE(ash::internal::RootWindowController
*);
20 DEFINE_OWNED_WINDOW_PROPERTY_KEY(ash::internal::AlwaysOnTopController
,
21 kAlwaysOnTopControllerKey
,
23 DEFINE_WINDOW_PROPERTY_KEY(bool, kContinueDragAfterReparent
, false);
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kCyclingThroughWorkspacesKey
, false);
25 DEFINE_WINDOW_PROPERTY_KEY(bool, kIgnoreSoloWindowFramePainterPolicy
, false);
26 DEFINE_WINDOW_PROPERTY_KEY(bool, kIgnoredByShelfKey
, false);
27 DEFINE_WINDOW_PROPERTY_KEY(bool, kImmersiveModeKey
, false);
28 DEFINE_WINDOW_PROPERTY_KEY(bool, kPanelAttachedKey
, true);
29 DEFINE_WINDOW_PROPERTY_KEY(
30 ui::WindowShowState
, kRestoreShowStateKey
, ui::SHOW_STATE_DEFAULT
);
31 DEFINE_WINDOW_PROPERTY_KEY(RootWindowController
*,
32 kRootWindowControllerKey
, NULL
);
33 DEFINE_WINDOW_PROPERTY_KEY(bool, kSoloWindowHeaderKey
, false);
34 DEFINE_WINDOW_PROPERTY_KEY(bool, kStayInSameRootWindowKey
, false);
35 DEFINE_WINDOW_PROPERTY_KEY(bool, kUsesScreenCoordinatesKey
, false);
36 DEFINE_WINDOW_PROPERTY_KEY(bool, kUserChangedWindowPositionOrSizeKey
, false);
37 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect
,
38 kPreAutoManagedWindowBoundsKey
,
40 DEFINE_WINDOW_PROPERTY_KEY(ash::WindowPersistsAcrossAllWorkspacesType
,
41 kWindowPersistsAcrossAllWorkspacesKey
,
42 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT
);
43 DEFINE_WINDOW_PROPERTY_KEY(bool, kWindowPositionManagedKey
, false);
44 DEFINE_WINDOW_PROPERTY_KEY(bool, kWindowRestoresToRestoreBounds
, false);
45 DEFINE_WINDOW_PROPERTY_KEY(bool, kWindowTrackedByWorkspaceKey
, true);
47 } // namespace internal