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

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

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated callsites to use WindowState::IsUserPositionable(). Created 5 years, 6 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/window_state.cc ('k') | ash/wm/window_util.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_UTIL_H_ 5 #ifndef ASH_WM_WINDOW_UTIL_H_
6 #define ASH_WM_WINDOW_UTIL_H_ 6 #define ASH_WM_WINDOW_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 28 matching lines...) Expand all
39 // Retrieves the activatable window for |window|. If |window| is activatable, 39 // Retrieves the activatable window for |window|. If |window| is activatable,
40 // this will just return it, otherwise it will climb the parent/transient parent 40 // this will just return it, otherwise it will climb the parent/transient parent
41 // chain looking for a window that is activatable, per the ActivationController. 41 // chain looking for a window that is activatable, per the ActivationController.
42 // If you're looking for a function to get the activatable "top level" window, 42 // If you're looking for a function to get the activatable "top level" window,
43 // this is probably what you're looking for. 43 // this is probably what you're looking for.
44 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 44 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
45 45
46 // TODO(oshima): remove this. 46 // TODO(oshima): remove this.
47 ASH_EXPORT bool IsWindowMinimized(aura::Window* window); 47 ASH_EXPORT bool IsWindowMinimized(aura::Window* window);
48 48
49 // Returns true if |window|'s location can be controlled by the user.
50 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window);
51
49 // Moves the window to the center of the display. 52 // Moves the window to the center of the display.
50 ASH_EXPORT void CenterWindow(aura::Window* window); 53 ASH_EXPORT void CenterWindow(aura::Window* window);
51 54
52 // Returns the bounds of a left snapped window with default width in parent 55 // Returns the bounds of a left snapped window with default width in parent
53 // coordinates. 56 // coordinates.
54 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent( 57 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent(
55 aura::Window* window); 58 aura::Window* window);
56 59
57 // Returns the bounds of a right snapped window with default width in parent 60 // Returns the bounds of a right snapped window with default width in parent
58 // coordinates. 61 // coordinates.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( 108 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
106 aura::Window* container); 109 aura::Window* container);
107 110
108 // Traverse the |container| tree and installs SnapToPixelLayoutManager. 111 // Traverse the |container| tree and installs SnapToPixelLayoutManager.
109 void InstallSnapLayoutManagerToContainers(aura::Window* container); 112 void InstallSnapLayoutManagerToContainers(aura::Window* container);
110 113
111 } // namespace wm 114 } // namespace wm
112 } // namespace ash 115 } // namespace ash
113 116
114 #endif // ASH_WM_WINDOW_UTIL_H_ 117 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698