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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_STACKING_CLIENT_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_STACKING_CLIENT_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_STACKING_CLIENT_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_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 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 // A stacking client for the desktop; always sets the default parent to the | 31 // A stacking client for the desktop; always sets the default parent to the |
32 // RootWindow of the passed in Window. | 32 // RootWindow of the passed in Window. |
33 class VIEWS_EXPORT DesktopStackingClient : public aura::client::StackingClient { | 33 class VIEWS_EXPORT DesktopStackingClient : public aura::client::StackingClient { |
34 public: | 34 public: |
35 DesktopStackingClient(); | 35 DesktopStackingClient(); |
36 virtual ~DesktopStackingClient(); | 36 virtual ~DesktopStackingClient(); |
37 | 37 |
38 // Overridden from aura::client::StackingClient: | 38 // Overridden from aura::client::StackingClient: |
39 virtual aura::Window* GetDefaultParent(aura::Window* window, | 39 virtual aura::Window* GetDefaultParent(aura::Window* context, |
| 40 aura::Window* window, |
40 const gfx::Rect& bounds) OVERRIDE; | 41 const gfx::Rect& bounds) OVERRIDE; |
41 | 42 |
42 private: | 43 private: |
43 void CreateNULLParent(); | 44 void CreateNULLParent(); |
44 | 45 |
45 // Windows with NULL parents are parented to this. | 46 // Windows with NULL parents are parented to this. |
46 scoped_ptr<aura::RootWindow> null_parent_; | 47 scoped_ptr<aura::RootWindow> null_parent_; |
47 | 48 |
48 // All the member variables below are necessary for the NULL parent root | 49 // All the member variables below are necessary for the NULL parent root |
49 // window to function. | 50 // window to function. |
50 scoped_ptr<aura::FocusManager> focus_manager_; | 51 scoped_ptr<aura::FocusManager> focus_manager_; |
51 // Depends on focus_manager_. | 52 // Depends on focus_manager_. |
52 scoped_ptr<DesktopActivationClient> activation_client_; | 53 scoped_ptr<DesktopActivationClient> activation_client_; |
53 | 54 |
54 scoped_ptr<corewm::InputMethodEventFilter> input_method_filter_; | 55 scoped_ptr<corewm::InputMethodEventFilter> input_method_filter_; |
55 corewm::CompoundEventFilter* window_event_filter_; | 56 corewm::CompoundEventFilter* window_event_filter_; |
56 | 57 |
57 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 58 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); | 60 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace views | 63 } // namespace views |
63 | 64 |
64 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_STACKING_CLIENT_H_ | 65 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_STACKING_CLIENT_H_ |
OLD | NEW |