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

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

Issue 10828037: ash: Remove wm::GetRootWindowController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « ash/wm/user_activity_detector.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 9
10 namespace aura { 10 namespace aura {
11 class RootWindow; 11 class RootWindow;
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 namespace internal { 16 namespace internal {
17 class RootWindowController; 17 class RootWindowController;
18 } 18 }
19 namespace wm { 19 namespace wm {
20 20
21 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|. 21 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|.
22 ASH_EXPORT void ActivateWindow(aura::Window* window); 22 ASH_EXPORT void ActivateWindow(aura::Window* window);
23 ASH_EXPORT void DeactivateWindow(aura::Window* window); 23 ASH_EXPORT void DeactivateWindow(aura::Window* window);
24 ASH_EXPORT bool IsActiveWindow(aura::Window* window); 24 ASH_EXPORT bool IsActiveWindow(aura::Window* window);
25 ASH_EXPORT aura::Window* GetActiveWindow(); 25 ASH_EXPORT aura::Window* GetActiveWindow();
26 ASH_EXPORT bool CanActivateWindow(aura::Window* window); 26 ASH_EXPORT bool CanActivateWindow(aura::Window* window);
27 ASH_EXPORT internal::RootWindowController* GetRootWindowController(
28 aura::RootWindow* root_window);
29 27
30 // Retrieves the activatable window for |window|. If |window| is activatable, 28 // Retrieves the activatable window for |window|. If |window| is activatable,
31 // this will just return it, otherwise it will climb the parent/transient parent 29 // this will just return it, otherwise it will climb the parent/transient parent
32 // chain looking for a window that is activatable, per the ActivationController. 30 // chain looking for a window that is activatable, per the ActivationController.
33 // If you're looking for a function to get the activatable "top level" window, 31 // If you're looking for a function to get the activatable "top level" window,
34 // this is probably what you're looking for. 32 // this is probably what you're looking for.
35 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 33 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
36 34
37 // Returns true if |window| is normal or default. 35 // Returns true if |window| is normal or default.
38 ASH_EXPORT bool IsWindowNormal(aura::Window* window); 36 ASH_EXPORT bool IsWindowNormal(aura::Window* window);
(...skipping 16 matching lines...) Expand all
55 // Restores |window|, which must not be NULL. 53 // Restores |window|, which must not be NULL.
56 ASH_EXPORT void RestoreWindow(aura::Window* window); 54 ASH_EXPORT void RestoreWindow(aura::Window* window);
57 55
58 // Moves the window to the center of the display. 56 // Moves the window to the center of the display.
59 ASH_EXPORT void CenterWindow(aura::Window* window); 57 ASH_EXPORT void CenterWindow(aura::Window* window);
60 58
61 } // namespace wm 59 } // namespace wm
62 } // namespace ash 60 } // namespace ash
63 61
64 #endif // ASH_WM_WINDOW_UTIL_H_ 62 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/user_activity_detector.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698