1fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek// Use of this source code is governed by a BSD-style license that can be
3fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek// found in the LICENSE file.
4fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek
50bc735ffcfb223c0186419547abaa5c84482663eChris Lattner#ifndef UI_AURA_CLIENT_AURA_CONSTANTS_H_
60bc735ffcfb223c0186419547abaa5c84482663eChris Lattner#define UI_AURA_CLIENT_AURA_CONSTANTS_H_
7fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek
8fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek#include "ui/aura/aura_export.h"
9fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek#include "ui/aura/window.h"
10fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek#include "ui/base/ui_base_types.h"
11fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek
12fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremeneknamespace ui {
13fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenekclass InputMethod;
14fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek}
15cd881d534517f09a2fae10445f9b865f49ccc6c8Ted Kremenek
16cd881d534517f09a2fae10445f9b865f49ccc6c8Ted Kremeneknamespace aura {
17cd881d534517f09a2fae10445f9b865f49ccc6c8Ted Kremeneknamespace client {
1874fb1a493cf5d2dd0fb51a4eadf74e85e10a3457Ted Kremenek
19ee82d9bdc5025b82de8ce2a4ad4685e0a8b79da9Ted Kremenek// Alphabetical sort.
20079bd72439448b78629a28da6b1f8abe2cdeaf4dMike Stump
2130a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler Carruth// A property key to store always-on-top flag.
2230a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler CarruthAURA_EXPORT extern const WindowProperty<bool>* const kAlwaysOnTopKey;
23fdf6a279c9a75c778eba382d9a156697092982a1David Blaikie
2430a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler Carruth// A property key to store whether animations are disabled for the window. Type
2530a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler Carruth// of value is an int.
2630a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler CarruthAURA_EXPORT extern const WindowProperty<bool>* const kAnimationsDisabledKey;
2730a2e16f6c27f888dd11eba6bbbae1e980078fcbChandler Carruth
28681ab8998793899076bae9cd6383a5d78b8ee1acBenjamin Kramer// A property key to store the can-maximize flag.
29c1581a0d64b0ee4f822ed2fca4442a111d03569aHartmut KaiserAURA_EXPORT extern const WindowProperty<bool>* const kCanMaximizeKey;
30403ba3522d1b1c97ae5fad81c1a2c4b3a754e1c1Nick Lewycky
31fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted Kremenek// A property key to store the can-resize flag.
32fddd51853f8ccaa1df2476376e6fd74d2f315c73Ted KremenekAURA_EXPORT extern const WindowProperty<bool>* const kCanResizeKey;
333c0349e87cdbd7316d06d2411d86ee1086e717a5Ted Kremenek
34b978a441c7d8bf59e7fede938e1f3b672573b443Mike Stump// A property key to store if a window is a constrained window or not.
3542a509f6a4f71bb805cc4abbb26722a34dffdddeTed KremenekAURA_EXPORT extern const WindowProperty<bool>* const kConstrainedWindowKey;
3663f5887f316fb52d243fcbb3631c039de6c4b993Ted Kremenek
377c625d8ffc20b92fff9e1690cd2484fcb6498183Marcin Swiderski// A property key to indicate that a window should show that it deserves
381cff132e48e0ccc253c34e5a2fb12718bd4e7d2eMarcin Swiderski// attention.
39cbb67480094b3bcb5b715acd827cbad55e2a204cSean HuntAURA_EXPORT extern const aura::WindowProperty<bool>* const kDrawAttentionKey;
407c625d8ffc20b92fff9e1690cd2484fcb6498183Marcin Swiderski
418599e7677e067fd01d3b2ee4c0875747d367fd8eMarcin Swiderski// A property key to store the host window of a window. This lets
4242a509f6a4f71bb805cc4abbb26722a34dffdddeTed Kremenek// WebContentsViews find the windows that should constrain NPAPI plugins.
4342a509f6a4f71bb805cc4abbb26722a34dffdddeTed KremenekAURA_EXPORT extern const WindowProperty<Window*>* const kHostWindowKey;
44e4f2142d00fa5fdb580c4e2413da91882d955381Chris Lattner
45e5af3ce53ec58995b09381ba645ab2117a46647bMike Stump// A property key to store the window modality.
4636d558d85653315edb389677e995ec9ccdbfbf3dJordan RoseAURA_EXPORT extern const WindowProperty<ui::ModalType>* const kModalKey;
4736d558d85653315edb389677e995ec9ccdbfbf3dJordan Rose
48e5af3ce53ec58995b09381ba645ab2117a46647bMike Stump// A property key to store the restore bounds for a window.
49852274d4257134906995cb252fb3dfd2d71deae8Ted KremenekAURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kRestoreBoundsKey;
50852274d4257134906995cb252fb3dfd2d71deae8Ted Kremenek
51852274d4257134906995cb252fb3dfd2d71deae8Ted Kremenek// A property key to store ui::WindowShowState for restoring a window.
52b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu// Used in Ash to remember the show state before the window was minimized.
53b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing XuAURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const
54b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu    kRestoreShowStateKey;
55b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu
56b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu// A property key to store an input method object that handles a key event.
57b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing XuAURA_EXPORT extern const WindowProperty<ui::InputMethod*>* const
5836d558d85653315edb389677e995ec9ccdbfbf3dJordan Rose    kRootWindowInputMethodKey;
59b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu
60b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu// A property key to store ui::WindowShowState for a window.
61b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu// See ui/base/ui_base_types.h for its definition.
623c0349e87cdbd7316d06d2411d86ee1086e717a5Ted KremenekAURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const
633c0349e87cdbd7316d06d2411d86ee1086e717a5Ted Kremenek    kShowStateKey;
64b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu
65b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu// Alphabetical sort.
66b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu
673c0349e87cdbd7316d06d2411d86ee1086e717a5Ted Kremenek}  // namespace client
68b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu}  // namespace aura
69b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu
70b36cd3e1757fb4fcd9509f35558c847b04bef35fZhongxing Xu#endif  // UI_AURA_CLIENT_AURA_CONSTANTS_H_
713c0349e87cdbd7316d06d2411d86ee1086e717a5Ted Kremenek