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 UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | 5 #ifndef UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ |
6 #define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | 6 #define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ |
7 | 7 |
8 #include "ui/aura/client/stacking_client.h" | 8 #include "ui/aura/client/stacking_client.h" |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 // A stacking client for the desktop; always sets the default parent to the | 23 // A stacking client for the desktop; always sets the default parent to the |
24 // RootWindow of the passed in Window. | 24 // RootWindow of the passed in Window. |
25 class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient { | 25 class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient { |
26 public: | 26 public: |
27 DesktopStackingClient(); | 27 DesktopStackingClient(); |
28 virtual ~DesktopStackingClient(); | 28 virtual ~DesktopStackingClient(); |
29 | 29 |
30 // Overridden from client::StackingClient: | 30 // Overridden from client::StackingClient: |
31 virtual Window* GetDefaultParent(Window* window, | 31 virtual Window* GetDefaultParent(Window* context, |
| 32 Window* window, |
32 const gfx::Rect& bounds) OVERRIDE; | 33 const gfx::Rect& bounds) OVERRIDE; |
33 | 34 |
34 private: | 35 private: |
35 // Windows with NULL parents are parented to this. | 36 // Windows with NULL parents are parented to this. |
36 scoped_ptr<aura::RootWindow> null_parent_; | 37 scoped_ptr<aura::RootWindow> null_parent_; |
37 | 38 |
38 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 39 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); | 41 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace aura | 44 } // namespace aura |
44 | 45 |
45 #endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | 46 #endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ |
OLD | NEW |