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

Side by Side Diff: ui/wm/core/window_util.h

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | « ui/wm/core/window_modality_controller.cc ('k') | ui/wm/core/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 UI_WM_CORE_WINDOW_UTIL_H_ 5 #ifndef UI_WM_CORE_WINDOW_UTIL_H_
6 #define UI_WM_CORE_WINDOW_UTIL_H_ 6 #define UI_WM_CORE_WINDOW_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/wm/core/wm_core_export.h" 13 #include "ui/wm/core/wm_core_export.h"
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 class Layer; 20 class Layer;
21 class LayerOwner; 21 class LayerOwner;
22 class LayerTreeOwner; 22 class LayerTreeOwner;
23 } 23 }
24 24
25 namespace views { 25 namespace wm {
26 namespace corewm {
27 26
28 WM_CORE_EXPORT void ActivateWindow(aura::Window* window); 27 WM_CORE_EXPORT void ActivateWindow(aura::Window* window);
29 WM_CORE_EXPORT void DeactivateWindow(aura::Window* window); 28 WM_CORE_EXPORT void DeactivateWindow(aura::Window* window);
30 WM_CORE_EXPORT bool IsActiveWindow(aura::Window* window); 29 WM_CORE_EXPORT bool IsActiveWindow(aura::Window* window);
31 WM_CORE_EXPORT bool CanActivateWindow(aura::Window* window); 30 WM_CORE_EXPORT bool CanActivateWindow(aura::Window* window);
32 31
33 // Retrieves the activatable window for |window|. The ActivationClient makes 32 // Retrieves the activatable window for |window|. The ActivationClient makes
34 // this determination. 33 // this determination.
35 WM_CORE_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 34 WM_CORE_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
36 35
(...skipping 21 matching lines...) Expand all
58 WM_CORE_EXPORT void AddTransientChild(aura::Window* parent, 57 WM_CORE_EXPORT void AddTransientChild(aura::Window* parent,
59 aura::Window* child); 58 aura::Window* child);
60 WM_CORE_EXPORT void RemoveTransientChild(aura::Window* parent, 59 WM_CORE_EXPORT void RemoveTransientChild(aura::Window* parent,
61 aura::Window* child); 60 aura::Window* child);
62 61
63 // Returns true if |window| has |ancestor| as a transient ancestor. A transient 62 // Returns true if |window| has |ancestor| as a transient ancestor. A transient
64 // ancestor is found by following the transient parent chain of the window. 63 // ancestor is found by following the transient parent chain of the window.
65 WM_CORE_EXPORT bool HasTransientAncestor(const aura::Window* window, 64 WM_CORE_EXPORT bool HasTransientAncestor(const aura::Window* window,
66 const aura::Window* ancestor); 65 const aura::Window* ancestor);
67 66
68 } // namespace corewm 67 } // namespace wm
69 } // namespace views
70 68
71 #endif // UI_WM_CORE_WINDOW_UTIL_H_ 69 #endif // UI_WM_CORE_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ui/wm/core/window_modality_controller.cc ('k') | ui/wm/core/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698