Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ash / wm / window_properties.cc
blobd071a5fefa01317ac9f7d222b2094d9c290cae7e
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)
14 namespace ash {
16 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect,
17 kRestoreBoundsOverrideKey,
18 NULL);
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);
33 } // namespace ash