OLD | NEW |
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_ALWAYS_ON_TOP_CONTROLLER_H_ | 5 #ifndef ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_ |
6 #define ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_ | 6 #define ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/aura/window_observer.h" | 10 #include "ui/aura/window_observer.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~AlwaysOnTopController(); | 25 virtual ~AlwaysOnTopController(); |
26 | 26 |
27 // Sets the container for always on top windows. | 27 // Sets the container for always on top windows. |
28 void SetAlwaysOnTopContainer(aura::Window* always_on_top_container); | 28 void SetAlwaysOnTopContainer(aura::Window* always_on_top_container); |
29 | 29 |
30 // Gets container for given |window| based on its "AlwaysOnTop" property. | 30 // Gets container for given |window| based on its "AlwaysOnTop" property. |
31 aura::Window* GetContainer(aura::Window* window) const; | 31 aura::Window* GetContainer(aura::Window* window) const; |
32 | 32 |
33 private: | 33 private: |
34 // Overridden from aura::WindowObserver: | 34 // Overridden from aura::WindowObserver: |
35 virtual void OnWindowAdded(aura::Window* child) OVERRIDE; | 35 virtual void OnWindowAdded(aura::Window* child) override; |
36 virtual void OnWillRemoveWindow(aura::Window* child) OVERRIDE; | 36 virtual void OnWillRemoveWindow(aura::Window* child) override; |
37 virtual void OnWindowPropertyChanged(aura::Window* window, | 37 virtual void OnWindowPropertyChanged(aura::Window* window, |
38 const void* key, | 38 const void* key, |
39 intptr_t old) OVERRIDE; | 39 intptr_t old) override; |
40 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 40 virtual void OnWindowDestroyed(aura::Window* window) override; |
41 | 41 |
42 aura::Window* always_on_top_container_; | 42 aura::Window* always_on_top_container_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(AlwaysOnTopController); | 44 DISALLOW_COPY_AND_ASSIGN(AlwaysOnTopController); |
45 }; | 45 }; |
46 | 46 |
47 } // namepsace ash | 47 } // namepsace ash |
48 | 48 |
49 #endif // ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_ | 49 #endif // ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_ |
OLD | NEW |