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

Side by Side Diff: ui/views/corewm/window_util.h

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (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/views/corewm/window_modality_controller.cc ('k') | ui/views/corewm/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_COREWM_WINDOW_UTIL_H_
6 #define UI_VIEWS_COREWM_WINDOW_UTIL_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "ui/views/views_export.h"
14
15 namespace aura {
16 class Window;
17 }
18
19 namespace ui {
20 class Layer;
21 class LayerOwner;
22 class LayerTreeOwner;
23 }
24
25 namespace views {
26 namespace corewm {
27
28 VIEWS_EXPORT void ActivateWindow(aura::Window* window);
29 VIEWS_EXPORT void DeactivateWindow(aura::Window* window);
30 VIEWS_EXPORT bool IsActiveWindow(aura::Window* window);
31 VIEWS_EXPORT bool CanActivateWindow(aura::Window* window);
32
33 // Retrieves the activatable window for |window|. The ActivationClient makes
34 // this determination.
35 VIEWS_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
36
37 // Retrieves the toplevel window for |window|. The ActivationClient makes this
38 // determination.
39 VIEWS_EXPORT aura::Window* GetToplevelWindow(aura::Window* window);
40
41 // Returns the existing Layer for |root| (and all its descendants) and creates
42 // a new layer for |root| and all its descendants. This is intended for
43 // animations that want to animate between the existing visuals and a new state.
44 //
45 // As a result of this |root| has freshly created layers, meaning the layers
46 // have not yet been painted to.
47 VIEWS_EXPORT scoped_ptr<ui::LayerTreeOwner> RecreateLayers(
48 ui::LayerOwner* root);
49
50 // Convenience functions that get the TransientWindowManager for the window and
51 // redirect appropriately. These are preferable to calling functions on
52 // TransientWindowManager as they handle the appropriate NULL checks.
53 VIEWS_EXPORT aura::Window* GetTransientParent(aura::Window* window);
54 VIEWS_EXPORT const aura::Window* GetTransientParent(const aura::Window* window);
55 VIEWS_EXPORT const std::vector<aura::Window*>& GetTransientChildren(
56 const aura::Window* window);
57 VIEWS_EXPORT void AddTransientChild(aura::Window* parent, aura::Window* child);
58 VIEWS_EXPORT void RemoveTransientChild(aura::Window* parent,
59 aura::Window* child);
60
61 // Returns true if |window| has |ancestor| as a transient ancestor. A transient
62 // ancestor is found by following the transient parent chain of the window.
63 VIEWS_EXPORT bool HasTransientAncestor(const aura::Window* window,
64 const aura::Window* ancestor);
65
66 } // namespace corewm
67 } // namespace views
68
69 #endif // UI_VIEWS_COREWM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/window_modality_controller.cc ('k') | ui/views/corewm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698