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

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

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 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
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"
11 11
12 namespace aura { 12 namespace aura {
13 class Window; 13 class Window;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Point; 17 class Point;
18 class Rect; 18 class Rect;
19 class Size; 19 class Size;
20 } 20 }
21 21
22 namespace ui { 22 namespace ui {
23 class Event; 23 class Event;
24 } 24 }
25 25
26 namespace ash { 26 namespace ash {
27 namespace wm {
28 27
29 class WmWindow; 28 class WmWindow;
30 29
30 namespace wm {
31
31 // Utility functions for window activation. 32 // Utility functions for window activation.
32 ASH_EXPORT void ActivateWindow(aura::Window* window); 33 ASH_EXPORT void ActivateWindow(aura::Window* window);
33 ASH_EXPORT void DeactivateWindow(aura::Window* window); 34 ASH_EXPORT void DeactivateWindow(aura::Window* window);
34 ASH_EXPORT bool IsActiveWindow(aura::Window* window); 35 ASH_EXPORT bool IsActiveWindow(aura::Window* window);
35 ASH_EXPORT aura::Window* GetActiveWindow(); 36 ASH_EXPORT aura::Window* GetActiveWindow();
36 ASH_EXPORT bool CanActivateWindow(aura::Window* window); 37 ASH_EXPORT bool CanActivateWindow(aura::Window* window);
37 38
38 // Retrieves the activatable window for |window|. If |window| is activatable, 39 // Retrieves the activatable window for |window|. If |window| is activatable,
39 // 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
40 // chain looking for a window that is activatable, per the ActivationController. 41 // chain looking for a window that is activatable, per the ActivationController.
(...skipping 23 matching lines...) Expand all
64 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( 65 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
65 aura::Window* container); 66 aura::Window* container);
66 67
67 // Traverse the |container| tree and installs SnapToPixelLayoutManager. 68 // Traverse the |container| tree and installs SnapToPixelLayoutManager.
68 void InstallSnapLayoutManagerToContainers(aura::Window* container); 69 void InstallSnapLayoutManagerToContainers(aura::Window* container);
69 70
70 } // namespace wm 71 } // namespace wm
71 } // namespace ash 72 } // namespace ash
72 73
73 #endif // ASH_WM_WINDOW_UTIL_H_ 74 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« ash/common/wm_window.h ('K') | « ash/wm/window_state_aura.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698