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.
4
5#include "ui/aura/client/aura_constants.h"
6
7#include "ui/aura/window_property.h"
8#include "ui/gfx/rect.h"
9
10DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, bool)
11DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::ModalType)
12DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, gfx::Rect*)
13DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::InputMethod*)
14DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::WindowShowState)
15
16namespace aura {
17namespace client {
18
19// Alphabetical sort.
20
21DEFINE_WINDOW_PROPERTY_KEY(bool, kAlwaysOnTopKey, false);
22DEFINE_WINDOW_PROPERTY_KEY(bool, kAnimationsDisabledKey, false);
23DEFINE_WINDOW_PROPERTY_KEY(bool, kCanMaximizeKey, false);
24DEFINE_WINDOW_PROPERTY_KEY(bool, kCanResizeKey, true);
25DEFINE_WINDOW_PROPERTY_KEY(bool, kConstrainedWindowKey, false);
26DEFINE_WINDOW_PROPERTY_KEY(bool, kDrawAttentionKey, false);
27DEFINE_WINDOW_PROPERTY_KEY(Window*, kHostWindowKey, NULL);
28DEFINE_WINDOW_PROPERTY_KEY(ui::ModalType, kModalKey, ui::MODAL_TYPE_NONE);
29// gfx::Rect object for RestoreBoundsKey property is owned by the window
30// and will be freed automatically.
31DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect, kRestoreBoundsKey, NULL);
32DEFINE_WINDOW_PROPERTY_KEY(
33    ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT);
34DEFINE_WINDOW_PROPERTY_KEY(ui::InputMethod*, kRootWindowInputMethodKey, NULL);
35DEFINE_WINDOW_PROPERTY_KEY(
36    ui::WindowShowState, kShowStateKey, ui::SHOW_STATE_DEFAULT);
37
38}  // namespace client
39}  // namespace aura
40