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

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

Issue 2625113004: Unify window fullscreen and minimizing implementation (Closed)
Patch Set: Update Created 3 years, 11 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
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 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 11
12 namespace aura { 12 namespace aura {
13 class Window; 13 class Window;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
17 class Event; 17 class Event;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 21
22 namespace wm { 22 namespace wm {
23 23
24 // Utility functions for window activation. 24 // Utility functions for window activation.
25 ASH_EXPORT void ActivateWindow(aura::Window* window); 25 ASH_EXPORT void ActivateWindow(aura::Window* window);
26 ASH_EXPORT void DeactivateWindow(aura::Window* window); 26 ASH_EXPORT void DeactivateWindow(aura::Window* window);
27 ASH_EXPORT bool IsActiveWindow(aura::Window* window); 27 ASH_EXPORT bool IsActiveWindow(aura::Window* window);
28 ASH_EXPORT aura::Window* GetActiveWindow(); 28 ASH_EXPORT aura::Window* GetActiveWindow();
29 ASH_EXPORT bool CanActivateWindow(aura::Window* window); 29 ASH_EXPORT bool CanActivateWindow(aura::Window* window);
30 ASH_EXPORT void SetWindowFullscreen(aura::Window* window, bool fullscreen);
30 31
31 // Retrieves the activatable window for |window|. If |window| is activatable, 32 // Retrieves the activatable window for |window|. If |window| is activatable,
32 // this will just return it, otherwise it will climb the parent/transient parent 33 // this will just return it, otherwise it will climb the parent/transient parent
33 // chain looking for a window that is activatable, per the ActivationController. 34 // chain looking for a window that is activatable, per the ActivationController.
34 // If you're looking for a function to get the activatable "top level" window, 35 // If you're looking for a function to get the activatable "top level" window,
35 // this is probably what you're looking for. 36 // this is probably what you're looking for.
36 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); 37 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
37 38
38 // Returns true if |window|'s location can be controlled by the user. 39 // Returns true if |window|'s location can be controlled by the user.
39 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); 40 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window);
(...skipping 11 matching lines...) Expand all
51 52
52 // Mark the container window so that InstallSnapLayoutManagerToContainers 53 // Mark the container window so that InstallSnapLayoutManagerToContainers
53 // installs the SnapToPixelLayoutManager. 54 // installs the SnapToPixelLayoutManager.
54 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( 55 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
55 aura::Window* container); 56 aura::Window* container);
56 57
57 } // namespace wm 58 } // namespace wm
58 } // namespace ash 59 } // namespace ash
59 60
60 #endif // ASH_WM_WINDOW_UTIL_H_ 61 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/common/wm_window.cc ('k') | ash/wm/window_util.cc » ('j') | ash/wm/window_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698