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

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

Issue 2860503002: mash: Replace int ShelfIDs with AppLaunchID strings. (Closed)
Patch Set: Fix struct traits typo. Created 3 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
« 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>
9
10 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
11 #include "ash/public/cpp/shelf_types.h"
12 #include "ui/base/class_property.h" 9 #include "ui/base/class_property.h"
13 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
14 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
15 12
16 namespace aura { 13 namespace aura {
17 template <typename T> 14 template <typename T>
18 using WindowProperty = ui::ClassProperty<T>; 15 using WindowProperty = ui::ClassProperty<T>;
19 } 16 }
20 17
21 namespace ash { 18 namespace ash {
(...skipping 30 matching lines...) Expand all
52 // maximized mode window manager. 49 // maximized mode window manager.
53 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const 50 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const
54 kRestoreBoundsOverrideKey; 51 kRestoreBoundsOverrideKey;
55 52
56 // A property key which stores the bounds to restore a window to. These take 53 // A property key which stores the bounds to restore a window to. These take
57 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is 54 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is
58 // set. This is used by e.g. the always maximized mode window manager. 55 // set. This is used by e.g. the always maximized mode window manager.
59 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const 56 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const
60 kRestoreShowStateOverrideKey; 57 kRestoreShowStateOverrideKey;
61 58
62 // A property key to store the id for a window's shelf item.
63 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey;
64
65 // Containers with this property (true) are aligned with physical pixel 59 // Containers with this property (true) are aligned with physical pixel
66 // boundary. 60 // boundary.
67 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; 61 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
68 62
69 // Property to tell if the container uses the screen coordinates. 63 // Property to tell if the container uses the screen coordinates.
70 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 64 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
71 65
72 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const 66 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const
73 kWidgetCreationTypeKey; 67 kWidgetCreationTypeKey;
74 68
75 // A property key to store WindowState in the window. The window state 69 // A property key to store WindowState in the window. The window state
76 // is owned by the window. 70 // is owned by the window.
77 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 71 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
78 72
79 // Alphabetical sort. 73 // Alphabetical sort.
80 74
81 } // namespace ash 75 } // namespace ash
82 76
83 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 77 #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