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

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

Issue 2901663003: chromeos: converts WindowState to aura::Window (Closed)
Patch Set: feedback Created 3 years, 7 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
« no previous file with comments | « ash/wm/window_state_util.cc ('k') | ash/wm/workspace/workspace_event_handler.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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/base/ui_base_types.h" 12 #include "ui/base/ui_base_types.h"
13 13
14 namespace aura { 14 namespace aura {
15 class Window; 15 class Window;
16 } 16 }
17 17
18 namespace ui { 18 namespace ui {
19 class Event; 19 class Event;
20 } 20 }
21 21
22 namespace ash { 22 namespace ash {
23
24 namespace wm { 23 namespace wm {
25 24
26 // Utility functions for window activation. 25 // Utility functions for window activation.
27 ASH_EXPORT void ActivateWindow(aura::Window* window); 26 ASH_EXPORT void ActivateWindow(aura::Window* window);
28 ASH_EXPORT void DeactivateWindow(aura::Window* window); 27 ASH_EXPORT void DeactivateWindow(aura::Window* window);
29 ASH_EXPORT bool IsActiveWindow(aura::Window* window); 28 ASH_EXPORT bool IsActiveWindow(aura::Window* window);
30 ASH_EXPORT aura::Window* GetActiveWindow(); 29 ASH_EXPORT aura::Window* GetActiveWindow();
31 ASH_EXPORT bool CanActivateWindow(aura::Window* window); 30 ASH_EXPORT bool CanActivateWindow(aura::Window* window);
32 ASH_EXPORT aura::Window* GetFocusedWindow(); 31 ASH_EXPORT aura::Window* GetFocusedWindow();
33 32
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 64
66 // Mark the container window so that InstallSnapLayoutManagerToContainers 65 // Mark the container window so that InstallSnapLayoutManagerToContainers
67 // installs the SnapToPixelLayoutManager. 66 // installs the SnapToPixelLayoutManager.
68 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( 67 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
69 aura::Window* container); 68 aura::Window* container);
70 69
71 } // namespace wm 70 } // namespace wm
72 } // namespace ash 71 } // namespace ash
73 72
74 #endif // ASH_WM_WINDOW_UTIL_H_ 73 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW
« no previous file with comments | « ash/wm/window_state_util.cc ('k') | ash/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698