Fix mouse warp with 2x displays
[chromium-blink-merge.git] / ash / wm / window_properties.cc
blobf7c8b5666a3a150ab1a006c25be857f19988c409
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*);
12 namespace ash {
14 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect,
15 kRestoreBoundsOverrideKey,
16 NULL);
18 DEFINE_WINDOW_PROPERTY_KEY(ui::WindowShowState,
19 kRestoreShowStateOverrideKey,
20 ui::SHOW_STATE_DEFAULT);
22 DEFINE_WINDOW_PROPERTY_KEY(bool, kSnapChildrenToPixelBoundary, false);
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kStayInSameRootWindowKey, false);
26 DEFINE_WINDOW_PROPERTY_KEY(bool, kUsesScreenCoordinatesKey, false);
28 DEFINE_OWNED_WINDOW_PROPERTY_KEY(wm::WindowState,
29 kWindowStateKey, NULL);
31 } // namespace ash