OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | |
6 #define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | |
7 | |
8 #include "ui/aura/client/stacking_client.h" | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "ui/views/views_export.h" | |
14 | |
15 namespace views { | |
16 namespace corewm { | |
17 class CompoundEventFilter; | |
18 class InputMethodEventFilter; | |
19 } | |
20 } | |
21 | |
22 namespace aura { | |
23 class DesktopActivationClient; | |
24 class FocusManager; | |
25 class RootWindow; | |
26 class Window; | |
27 | |
28 namespace client { | |
29 class DefaultCaptureClient; | |
30 } | |
31 | |
32 // A stacking client for the desktop; always sets the default parent to the | |
33 // RootWindow of the passed in Window. | |
34 class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient { | |
35 public: | |
36 DesktopStackingClient(); | |
37 virtual ~DesktopStackingClient(); | |
38 | |
39 // Overridden from client::StackingClient: | |
40 virtual Window* GetDefaultParent(Window* window, | |
41 const gfx::Rect& bounds) OVERRIDE; | |
42 | |
43 private: | |
44 void CreateNULLParent(); | |
45 | |
46 // Windows with NULL parents are parented to this. | |
47 scoped_ptr<RootWindow> null_parent_; | |
48 | |
49 // All the member variables below are necessary for the NULL parent root | |
50 // window to function. | |
51 scoped_ptr<FocusManager> focus_manager_; | |
52 // Depends on focus_manager_. | |
53 scoped_ptr<DesktopActivationClient> activation_client_; | |
54 | |
55 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; | |
56 views::corewm::CompoundEventFilter* window_event_filter_; | |
57 | |
58 scoped_ptr<client::DefaultCaptureClient> capture_client_; | |
59 | |
60 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); | |
61 }; | |
62 | |
63 } // namespace aura | |
64 | |
65 #endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ | |
OLD | NEW |