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

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

Issue 357063002: Snap widgets to pixel boundary on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adjust tests Created 6 years, 5 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
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.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 "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 19 matching lines...) Expand all
30 // maximized mode window manager. 30 // maximized mode window manager.
31 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const 31 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const
32 kRestoreBoundsOverrideKey; 32 kRestoreBoundsOverrideKey;
33 33
34 // A property key which stores the bounds to restore a window to. These take 34 // A property key which stores the bounds to restore a window to. These take
35 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is 35 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is
36 // set. This is used by e.g. the always maximized mode window manager. 36 // set. This is used by e.g. the always maximized mode window manager.
37 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const 37 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const
38 kRestoreShowStateOverrideKey; 38 kRestoreShowStateOverrideKey;
39 39
40 // Containers with this property (true) are aligned with physical pixel
41 // boundary.
42 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
43
40 // If this is set to true, the window stays in the same root window 44 // If this is set to true, the window stays in the same root window
41 // even if the bounds outside of its root window is set. 45 // even if the bounds outside of its root window is set.
42 // This is exported as it's used in the tests. 46 // This is exported as it's used in the tests.
43 ASH_EXPORT extern const aura::WindowProperty<bool>* const 47 ASH_EXPORT extern const aura::WindowProperty<bool>* const
44 kStayInSameRootWindowKey; 48 kStayInSameRootWindowKey;
45 49
46 // Property to tell if the container uses the screen coordinates. 50 // Property to tell if the container uses the screen coordinates.
47 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 51 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
48 52
49 // A property key to store WindowState in the window. The window state 53 // A property key to store WindowState in the window. The window state
50 // is owned by the window. 54 // is owned by the window.
51 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 55 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
52 56
53 // Alphabetical sort. 57 // Alphabetical sort.
54 58
55 } // namespace ash 59 } // namespace ash
56 60
57 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 61 #endif // ASH_WM_WINDOW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698