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

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

Issue 2539363005: Converts ash to use aura-mus (Closed)
Patch Set: merge Created 4 years 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
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
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_item_types.h" 11 #include "ash/common/shelf/shelf_item_types.h"
10 #include "ui/base/ui_base_types.h" 12 #include "ui/base/ui_base_types.h"
11 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
12 14
13 namespace aura { 15 namespace aura {
14 template <typename T> 16 template <typename T>
15 struct WindowProperty; 17 struct WindowProperty;
16 } 18 }
17 19
(...skipping 20 matching lines...) Expand all
38 // A property key which stores the bounds to restore a window to. These take 40 // A property key which stores the bounds to restore a window to. These take
39 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is 41 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is
40 // set. This is used by e.g. the always maximized mode window manager. 42 // set. This is used by e.g. the always maximized mode window manager.
41 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const 43 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const
42 kRestoreShowStateOverrideKey; 44 kRestoreShowStateOverrideKey;
43 45
44 // A property key to store the id for a window's shelf item. 46 // A property key to store the id for a window's shelf item.
45 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey; 47 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey;
46 48
47 // A property key to store the type of a window's shelf item. 49 // A property key to store the type of a window's shelf item.
48 ASH_EXPORT extern const aura::WindowProperty<int>* const kShelfItemTypeKey; 50 ASH_EXPORT extern const aura::WindowProperty<int32_t>* const kShelfItemTypeKey;
49 51
50 // Containers with this property (true) are aligned with physical pixel 52 // Containers with this property (true) are aligned with physical pixel
51 // boundary. 53 // boundary.
52 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; 54 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
53 55
54 // Property to tell if the container uses the screen coordinates. 56 // Property to tell if the container uses the screen coordinates.
55 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 57 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
56 58
57 // A property key to store WindowState in the window. The window state 59 // A property key to store WindowState in the window. The window state
58 // is owned by the window. 60 // is owned by the window.
59 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 61 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
60 62
61 // Alphabetical sort. 63 // Alphabetical sort.
62 64
63 } // namespace ash 65 } // namespace ash
64 66
65 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 67 #endif // ASH_WM_WINDOW_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698