Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / ui / aura / client / aura_constants.cc
blob7d6d89bff4215db2d8d9c62963a85e25a19b6ff2
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 "ui/aura/client/aura_constants.h"
7 #include "ui/aura/window_property.h"
8 #include "ui/gfx/geometry/rect.h"
10 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, bool)
11 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::ModalType)
12 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, gfx::Rect*)
13 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::InputMethod*)
14 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, ui::WindowShowState)
15 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, int)
16 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, void*)
18 namespace aura {
19 namespace client {
21 // Alphabetical sort.
23 DEFINE_WINDOW_PROPERTY_KEY(bool, kAlwaysOnTopKey, false);
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kAnimationsDisabledKey, false);
25 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanMaximizeKey, false);
26 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanMinimizeKey, false);
27 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanResizeKey, true);
28 DEFINE_WINDOW_PROPERTY_KEY(bool, kConstrainedWindowKey, false);
29 DEFINE_WINDOW_PROPERTY_KEY(bool, kDrawAttentionKey, false);
30 DEFINE_WINDOW_PROPERTY_KEY(Window*, kHostWindowKey, NULL);
31 DEFINE_WINDOW_PROPERTY_KEY(ui::ModalType, kModalKey, ui::MODAL_TYPE_NONE);
32 // gfx::Rect object for RestoreBoundsKey property is owned by the window
33 // and will be freed automatically.
34 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect, kRestoreBoundsKey, NULL);
35 DEFINE_WINDOW_PROPERTY_KEY(
36 ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT);
37 DEFINE_WINDOW_PROPERTY_KEY(ui::InputMethod*, kRootWindowInputMethodKey, NULL);
38 DEFINE_WINDOW_PROPERTY_KEY(
39 ui::WindowShowState, kShowStateKey, ui::SHOW_STATE_DEFAULT);
41 } // namespace client
42 } // namespace aura