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