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

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

Issue 11418224: Eliminates all ash dependencies from WindowModalityController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/focus_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
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_VIEWS_COREWM_WINDOW_UTIL_H_ 5 #ifndef UI_VIEWS_COREWM_WINDOW_UTIL_H_
6 #define UI_VIEWS_COREWM_WINDOW_UTIL_H_ 6 #define UI_VIEWS_COREWM_WINDOW_UTIL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 class Layer; 16 class Layer;
17 } 17 }
18 18
19 namespace views { 19 namespace views {
20 namespace corewm { 20 namespace corewm {
21 21
22 VIEWS_EXPORT void ActivateWindow(aura::Window* window);
23 VIEWS_EXPORT void DeactivateWindow(aura::Window* window);
24 VIEWS_EXPORT bool IsActiveWindow(aura::Window* window);
25 VIEWS_EXPORT bool CanActivateWindow(aura::Window* window);
26
27 // Retrieves the activatable window for |window|. The ActivationClient makes
28 // this determination.
29 VIEWS_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
30
22 // Deletes |layer| and all its child layers. 31 // Deletes |layer| and all its child layers.
23 VIEWS_EXPORT void DeepDeleteLayers(ui::Layer* layer); 32 VIEWS_EXPORT void DeepDeleteLayers(ui::Layer* layer);
24 33
25 // Returns the existing Layer for |window| (and all its descendants) and creates 34 // Returns the existing Layer for |window| (and all its descendants) and creates
26 // a new layer for |window| and all its descendants. This is intended for 35 // a new layer for |window| and all its descendants. This is intended for
27 // animations that want to animate between the existing visuals and a new window 36 // animations that want to animate between the existing visuals and a new window
28 // state. The caller owns the return value. 37 // state. The caller owns the return value.
29 // 38 //
30 // As a result of this |window| has freshly created layers, meaning the layers 39 // As a result of this |window| has freshly created layers, meaning the layers
31 // are all empty (nothing has been painted to them) and are sized to 0x0. Soon 40 // are all empty (nothing has been painted to them) and are sized to 0x0. Soon
32 // after this call you need to reset the bounds of the window. Or, you can pass 41 // after this call you need to reset the bounds of the window. Or, you can pass
33 // true as the second argument to let the function do that. 42 // true as the second argument to let the function do that.
34 VIEWS_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window, 43 VIEWS_EXPORT ui::Layer* RecreateWindowLayers(aura::Window* window,
35 bool set_bounds) WARN_UNUSED_RESULT; 44 bool set_bounds) WARN_UNUSED_RESULT;
36 45
37 } // namespace corewm 46 } // namespace corewm
38 } // namespace views 47 } // namespace views
39 48
40 #endif // UI_VIEWS_COREWM_WINDOW_UTIL_H_ 49 #endif // UI_VIEWS_COREWM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/focus_controller.cc ('k') | ui/views/corewm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698