Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: ui/aura/client/aura_constants.h

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_CLIENT_AURA_CONSTANTS_H_ 5 #ifndef UI_AURA_CLIENT_AURA_CONSTANTS_H_
6 #define UI_AURA_CLIENT_AURA_CONSTANTS_H_ 6 #define UI_AURA_CLIENT_AURA_CONSTANTS_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 11
12 namespace ui { 12 namespace ui {
13 class InputMethod; 13 class InputMethod;
14 } 14 }
15 15
16 namespace views {
17 class View;
18 }
19
16 namespace aura { 20 namespace aura {
17 namespace client { 21 namespace client {
18 22
19 // Alphabetical sort. 23 // Alphabetical sort.
20 24
21 // A property key to store always-on-top flag. 25 // A property key to store always-on-top flag.
22 AURA_EXPORT extern const WindowProperty<bool>* const kAlwaysOnTopKey; 26 AURA_EXPORT extern const WindowProperty<bool>* const kAlwaysOnTopKey;
23 27
24 // A property key to store whether animations are disabled for the window. Type 28 // A property key to store whether animations are disabled for the window. Type
25 // of value is an int. 29 // of value is an int.
26 AURA_EXPORT extern const WindowProperty<bool>* const kAnimationsDisabledKey; 30 AURA_EXPORT extern const WindowProperty<bool>* const kAnimationsDisabledKey;
27 31
28 // A property key to store the can-maximize flag. 32 // A property key to store the can-maximize flag.
29 AURA_EXPORT extern const WindowProperty<bool>* const kCanMaximizeKey; 33 AURA_EXPORT extern const WindowProperty<bool>* const kCanMaximizeKey;
30 34
31 // A property key to store the can-resize flag. 35 // A property key to store the can-resize flag.
32 AURA_EXPORT extern const WindowProperty<bool>* const kCanResizeKey; 36 AURA_EXPORT extern const WindowProperty<bool>* const kCanResizeKey;
33 37
34 // A property key to store if a window is a constrained window or not. 38 // A property key to store if a window is a constrained window or not.
35 AURA_EXPORT extern const WindowProperty<bool>* const kConstrainedWindowKey; 39 AURA_EXPORT extern const WindowProperty<bool>* const kConstrainedWindowKey;
36 40
37 // A property key to indicate that a window should show that it deserves 41 // A property key to indicate that a window should show that it deserves
38 // attention. 42 // attention.
39 AURA_EXPORT extern const aura::WindowProperty<bool>* const kDrawAttentionKey; 43 AURA_EXPORT extern const aura::WindowProperty<bool>* const kDrawAttentionKey;
40 44
45 // A property key to indicate the window's host view. If specified, the host
46 // view determines the z-order of the window in its parent widget. The host
47 // view must have the same parent widget as the window on which the property
48 // is set. The z-order of the window is set to the z-order of the host view in
49 // the view tree relative to:
50 // - views with layers.
51 // - views bound to a window via the kHostViewKey.
52 AURA_EXPORT extern const WindowProperty<views::View*>* const kHostViewKey;
53
41 // A property key to store the window modality. 54 // A property key to store the window modality.
42 AURA_EXPORT extern const WindowProperty<ui::ModalType>* const kModalKey; 55 AURA_EXPORT extern const WindowProperty<ui::ModalType>* const kModalKey;
43 56
44 // A property key to store the restore bounds for a window. 57 // A property key to store the restore bounds for a window.
45 AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kRestoreBoundsKey; 58 AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kRestoreBoundsKey;
46 59
47 // A property key to store ui::WindowShowState for restoring a window. 60 // A property key to store ui::WindowShowState for restoring a window.
48 // Used in Ash to remember the show state before the window was minimized. 61 // Used in Ash to remember the show state before the window was minimized.
49 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const 62 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const
50 kRestoreShowStateKey; 63 kRestoreShowStateKey;
51 64
52 // A property key to store an input method object that handles a key event. 65 // A property key to store an input method object that handles a key event.
53 AURA_EXPORT extern const WindowProperty<ui::InputMethod*>* const 66 AURA_EXPORT extern const WindowProperty<ui::InputMethod*>* const
54 kRootWindowInputMethodKey; 67 kRootWindowInputMethodKey;
55 68
56 // A property key to store ui::WindowShowState for a window. 69 // A property key to store ui::WindowShowState for a window.
57 // See ui/base/ui_base_types.h for its definition. 70 // See ui/base/ui_base_types.h for its definition.
58 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const 71 AURA_EXPORT extern const WindowProperty<ui::WindowShowState>* const
59 kShowStateKey; 72 kShowStateKey;
60 73
61 // Alphabetical sort. 74 // Alphabetical sort.
62 75
63 } // namespace client 76 } // namespace client
64 } // namespace aura 77 } // namespace aura
65 78
66 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_ 79 #endif // UI_AURA_CLIENT_AURA_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698