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/wm/window_state.h"
8 #include "ui/aura/window_property.h"
10 DECLARE_WINDOW_PROPERTY_TYPE(ash::wm::WindowState
*);
11 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(ASH_EXPORT
, gfx::Rect
*)
12 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(ASH_EXPORT
, ui::WindowShowState
)
16 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect
,
17 kRestoreBoundsOverrideKey
,
20 DEFINE_WINDOW_PROPERTY_KEY(ui::WindowShowState
,
21 kRestoreShowStateOverrideKey
,
22 ui::SHOW_STATE_DEFAULT
);
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kSnapChildrenToPixelBoundary
, false);
26 DEFINE_WINDOW_PROPERTY_KEY(bool, kStayInSameRootWindowKey
, false);
28 DEFINE_WINDOW_PROPERTY_KEY(bool, kUsesScreenCoordinatesKey
, false);
30 DEFINE_OWNED_WINDOW_PROPERTY_KEY(wm::WindowState
,
31 kWindowStateKey
, NULL
);