OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 UI_AURA_DESKTOP_H_ | 5 #ifndef UI_AURA_DESKTOP_H_ |
6 #define UI_AURA_DESKTOP_H_ | 6 #define UI_AURA_DESKTOP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Window* active_window() { return active_window_; } | 86 Window* active_window() { return active_window_; } |
87 | 87 |
88 // Activates the topmost window. Does nothing if the topmost window is already | 88 // Activates the topmost window. Does nothing if the topmost window is already |
89 // active. | 89 // active. |
90 void ActivateTopmostWindow(); | 90 void ActivateTopmostWindow(); |
91 | 91 |
92 // Invoked from RootWindow when |window| is being destroyed. | 92 // Invoked from RootWindow when |window| is being destroyed. |
93 void WindowDestroying(Window* window); | 93 void WindowDestroying(Window* window); |
94 | 94 |
95 // Dispatch NativeEvent. | 95 // Dispatch NativeEvent. |
96 bool DispatchNativeEvent(const ui::NativeEvent& event); | 96 bool DispatchNativeEvent(const base::NativeEvent& event); |
97 | 97 |
98 static Desktop* GetInstance(); | 98 static Desktop* GetInstance(); |
99 | 99 |
100 private: | 100 private: |
101 // Returns the topmost window to activate. This ignores |ignore|. | 101 // Returns the topmost window to activate. This ignores |ignore|. |
102 Window* GetTopmostWindowToActivate(Window* ignore); | 102 Window* GetTopmostWindowToActivate(Window* ignore); |
103 | 103 |
104 // Overridden from ui::CompositorDelegate | 104 // Overridden from ui::CompositorDelegate |
105 virtual void ScheduleDraw(); | 105 virtual void ScheduleDraw(); |
106 | 106 |
(...skipping 18 matching lines...) Expand all Loading... |
125 // Are we in the process of being destroyed? Used to avoid processing during | 125 // Are we in the process of being destroyed? Used to avoid processing during |
126 // destruction. | 126 // destruction. |
127 bool in_destructor_; | 127 bool in_destructor_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(Desktop); | 129 DISALLOW_COPY_AND_ASSIGN(Desktop); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace aura | 132 } // namespace aura |
133 | 133 |
134 #endif // UI_AURA_DESKTOP_H_ | 134 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |