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

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

Issue 2613793002: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: move WmWindowAuraTestApi to ash/test Created 3 years, 11 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/test/wm_window_aura_test_api.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"
11 #include "ash/common/shelf/shelf_item_types.h" 11 #include "ash/common/shelf/shelf_item_types.h"
12 #include "ui/base/ui_base_types.h" 12 #include "ui/base/ui_base_types.h"
13 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
14 14
15 namespace aura { 15 namespace aura {
16 template <typename T> 16 template <typename T>
17 struct WindowProperty; 17 struct WindowProperty;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 namespace wm { 21 namespace wm {
22 class WindowState; 22 class WindowState;
23 } // namespace wm 23 } // namespace wm
24 24
25 // Used with kWidgetCreationType to indicate source of the widget creation.
26 enum class WidgetCreationType {
27 // The widget was created internally, and not at the request of a client.
28 // For example, overview mode creates a number of widgets. These widgets are
29 // created with a type of INTERNAL. This is the default.
30 INTERNAL,
31
32 // The widget was created for a client. In other words there is a client
33 // embedded in the aura::Window. For example, when Chrome creates a new
34 // browser window the window manager is asked to create the aura::Window.
35 // The window manager creates an aura::Window and a views::Widget to show
36 // the non-client frame decorations. In this case the creation type is
37 // FOR_CLIENT.
38 FOR_CLIENT,
39 };
40
25 // Shell-specific window property keys; some keys are exported for use in tests. 41 // Shell-specific window property keys; some keys are exported for use in tests.
26 42
27 // Alphabetical sort. 43 // Alphabetical sort.
28 44
29 // If this is set to true, the window stays in the same root window even if the 45 // If this is set to true, the window stays in the same root window even if the
30 // bounds outside of its root window is set. 46 // bounds outside of its root window is set.
31 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; 47 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey;
32 48
33 // If true (and the window is a panel), it's attached to its shelf item. 49 // If true (and the window is a panel), it's attached to its shelf item.
34 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey; 50 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey;
(...skipping 16 matching lines...) Expand all
51 // A property key to store the type of a window's shelf item. 67 // A property key to store the type of a window's shelf item.
52 ASH_EXPORT extern const aura::WindowProperty<int32_t>* const kShelfItemTypeKey; 68 ASH_EXPORT extern const aura::WindowProperty<int32_t>* const kShelfItemTypeKey;
53 69
54 // Containers with this property (true) are aligned with physical pixel 70 // Containers with this property (true) are aligned with physical pixel
55 // boundary. 71 // boundary.
56 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; 72 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
57 73
58 // Property to tell if the container uses the screen coordinates. 74 // Property to tell if the container uses the screen coordinates.
59 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 75 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
60 76
77 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const
78 kWidgetCreationTypeKey;
79
61 // A property key to store WindowState in the window. The window state 80 // A property key to store WindowState in the window. The window state
62 // is owned by the window. 81 // is owned by the window.
63 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 82 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
64 83
65 // Alphabetical sort. 84 // Alphabetical sort.
66 85
67 } // namespace ash 86 } // namespace ash
68 87
69 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 88 #endif // ASH_WM_WINDOW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « ash/test/wm_window_aura_test_api.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698