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

Side by Side Diff: ash/wm/window_properties.h

Issue 2669633003: mash: Fix MusPropertyMirrorAsh for owned properties; add test. (Closed)
Patch Set: Fix ash shell Created 3 years, 10 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
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_WM_WINDOW_PROPERTIES_H_ 5 #ifndef ASH_WM_WINDOW_PROPERTIES_H_
6 #define ASH_WM_WINDOW_PROPERTIES_H_ 6 #define ASH_WM_WINDOW_PROPERTIES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 29 matching lines...) Expand all
40 }; 40 };
41 41
42 // Shell-specific window property keys; some keys are exported for use in tests. 42 // Shell-specific window property keys; some keys are exported for use in tests.
43 43
44 // Alphabetical sort. 44 // Alphabetical sort.
45 45
46 // If this is set to true, the window stays in the same root window even if the 46 // If this is set to true, the window stays in the same root window even if the
47 // bounds outside of its root window is set. 47 // bounds outside of its root window is set.
48 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; 48 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey;
49 49
50 // If true (and the window is a panel), it's attached to its shelf item.
51 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey;
52
53 // A property key which stores the bounds to restore a window to. These take 50 // A property key which stores the bounds to restore a window to. These take
54 // preference over the current bounds/state. This is used by e.g. the always 51 // preference over the current bounds/state. This is used by e.g. the always
55 // maximized mode window manager. 52 // maximized mode window manager.
56 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const 53 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const
57 kRestoreBoundsOverrideKey; 54 kRestoreBoundsOverrideKey;
58 55
59 // A property key which stores the bounds to restore a window to. These take 56 // A property key which stores the bounds to restore a window to. These take
60 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is 57 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is
61 // set. This is used by e.g. the always maximized mode window manager. 58 // set. This is used by e.g. the always maximized mode window manager.
62 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const 59 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const
63 kRestoreShowStateOverrideKey; 60 kRestoreShowStateOverrideKey;
64 61
65 // A property key to store the id for a window's shelf item. 62 // A property key to store the id for a window's shelf item.
66 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey; 63 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey;
67 64
68 // A property key to store the type of a window's shelf item.
69 ASH_EXPORT extern const aura::WindowProperty<int32_t>* const kShelfItemTypeKey;
70
71 // Containers with this property (true) are aligned with physical pixel 65 // Containers with this property (true) are aligned with physical pixel
72 // boundary. 66 // boundary.
73 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; 67 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
74 68
75 // Property to tell if the container uses the screen coordinates. 69 // Property to tell if the container uses the screen coordinates.
76 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 70 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
77 71
78 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const 72 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const
79 kWidgetCreationTypeKey; 73 kWidgetCreationTypeKey;
80 74
81 // A property key to store WindowState in the window. The window state 75 // A property key to store WindowState in the window. The window state
82 // is owned by the window. 76 // is owned by the window.
83 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 77 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
84 78
85 // Alphabetical sort. 79 // Alphabetical sort.
86 80
87 } // namespace ash 81 } // namespace ash
88 82
89 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 83 #endif // ASH_WM_WINDOW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698