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

Side by Side Diff: ui/aura_shell/window_util.h

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/aura_shell/window_properties.cc ('k') | ui/aura_shell/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) 2011 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_AURA_SHELL_WINDOW_UTIL_H_
6 #define UI_AURA_SHELL_WINDOW_UTIL_H_
7 #pragma once
8
9 #include "ui/aura_shell/aura_shell_export.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 namespace aura_shell {
16
17 // TODO(jamescook): Put all these functions in namespace window_util.
18
19 // Returns true if |window| is in the maximized state.
20 AURA_SHELL_EXPORT bool IsWindowMaximized(aura::Window* window);
21
22 // Convenience setters/getters for |aura::client::kRootWindowActiveWindow|.
23 AURA_SHELL_EXPORT void ActivateWindow(aura::Window* window);
24 AURA_SHELL_EXPORT void DeactivateWindow(aura::Window* window);
25 AURA_SHELL_EXPORT bool IsActiveWindow(aura::Window* window);
26 AURA_SHELL_EXPORT aura::Window* GetActiveWindow();
27
28 // Retrieves the activatable window for |window|. If |window| is activatable,
29 // this will just return it, otherwise it will climb the parent/transient parent
30 // chain looking for a window that is activatable, per the ActivationController.
31 // If you're looking for a function to get the activatable "top level" window,
32 // this is probably what you're looking for.
33 AURA_SHELL_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
34
35 // Update window bounds based on a change in show state.
36 AURA_SHELL_EXPORT void UpdateBoundsFromShowState(aura::Window* window);
37
38 } // namespace aura_shell
39
40 #endif // UI_AURA_SHELL_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/window_properties.cc ('k') | ui/aura_shell/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698