| 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_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "ui/aura/root_window_host.h" | 8 #include "ui/aura/root_window_host.h" |
| 9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
| 10 #include "ui/views/widget/desktop_root_window_host.h" | 10 #include "ui/views/widget/desktop_root_window_host.h" |
| 11 #include "ui/views/win/hwnd_message_handler_delegate.h" | 11 #include "ui/views/win/hwnd_message_handler_delegate.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 class DesktopActivationClient; | 14 class DesktopActivationClient; |
| 15 class DesktopCursorClient; | 15 class DesktopCursorClient; |
| 16 class DesktopDispatcherClient; | 16 class DesktopDispatcherClient; |
| 17 class FocusManager; | 17 class FocusManager; |
| 18 namespace client { | 18 namespace client { |
| 19 class DefaultCaptureClient; | 19 class DefaultCaptureClient; |
| 20 class ScreenPositionClient; | 20 class ScreenPositionClient; |
| 21 } | 21 } |
| 22 namespace shared { | |
| 23 class CompoundEventFilter; | |
| 24 class InputMethodEventFilter; | |
| 25 } | |
| 26 } | 22 } |
| 27 | 23 |
| 28 namespace views { | 24 namespace views { |
| 29 class HWNDMessageHandler; | 25 class HWNDMessageHandler; |
| 26 namespace corewm { |
| 27 class CompoundEventFilter; |
| 28 class InputMethodEventFilter; |
| 29 } |
| 30 | 30 |
| 31 class VIEWS_EXPORT DesktopRootWindowHostWin | 31 class VIEWS_EXPORT DesktopRootWindowHostWin |
| 32 : public DesktopRootWindowHost, | 32 : public DesktopRootWindowHost, |
| 33 public aura::RootWindowHost, | 33 public aura::RootWindowHost, |
| 34 public HWNDMessageHandlerDelegate { | 34 public HWNDMessageHandlerDelegate { |
| 35 public: | 35 public: |
| 36 DesktopRootWindowHostWin( | 36 DesktopRootWindowHostWin( |
| 37 internal::NativeWidgetDelegate* native_widget_delegate, | 37 internal::NativeWidgetDelegate* native_widget_delegate, |
| 38 DesktopNativeWidgetAura* desktop_native_widget_aura, | 38 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 39 const gfx::Rect& initial_bounds); | 39 const gfx::Rect& initial_bounds); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 private: | 206 private: |
| 207 // We are owned by the RootWindow, but we have to have a back pointer to it. | 207 // We are owned by the RootWindow, but we have to have a back pointer to it. |
| 208 aura::RootWindow* root_window_; | 208 aura::RootWindow* root_window_; |
| 209 | 209 |
| 210 scoped_ptr<HWNDMessageHandler> message_handler_; | 210 scoped_ptr<HWNDMessageHandler> message_handler_; |
| 211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 211 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
| 212 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_; | 212 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_; |
| 213 scoped_ptr<aura::FocusManager> focus_manager_; | 213 scoped_ptr<aura::FocusManager> focus_manager_; |
| 214 // Depends on focus_manager_. | 214 // Depends on focus_manager_. |
| 215 scoped_ptr<aura::DesktopActivationClient> activation_client_; | 215 scoped_ptr<aura::DesktopActivationClient> activation_client_; |
| 216 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; | 216 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; |
| 217 | 217 |
| 218 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura | 218 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura |
| 219 // instead of providing this route back to Widget. | 219 // instead of providing this route back to Widget. |
| 220 internal::NativeWidgetDelegate* native_widget_delegate_; | 220 internal::NativeWidgetDelegate* native_widget_delegate_; |
| 221 | 221 |
| 222 DesktopNativeWidgetAura* desktop_native_widget_aura_; | 222 DesktopNativeWidgetAura* desktop_native_widget_aura_; |
| 223 | 223 |
| 224 aura::RootWindowHostDelegate* root_window_host_delegate_; | 224 aura::RootWindowHostDelegate* root_window_host_delegate_; |
| 225 aura::Window* content_window_; | 225 aura::Window* content_window_; |
| 226 | 226 |
| 227 // In some cases, we set a screen position client on |root_window_|. If we | 227 // In some cases, we set a screen position client on |root_window_|. If we |
| 228 // do, we're responsible for the lifetime. | 228 // do, we're responsible for the lifetime. |
| 229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
| 230 | 230 |
| 231 // A simple cursor client which just forwards events to the RootWindow. | 231 // A simple cursor client which just forwards events to the RootWindow. |
| 232 scoped_ptr<aura::DesktopCursorClient> cursor_client_; | 232 scoped_ptr<aura::DesktopCursorClient> cursor_client_; |
| 233 | 233 |
| 234 // The RootWindow's CompoundEventFilter. | 234 // The RootWindow's CompoundEventFilter. |
| 235 aura::shared::CompoundEventFilter* root_window_event_filter_; | 235 views::corewm::CompoundEventFilter* root_window_event_filter_; |
| 236 | 236 |
| 237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace views | 240 } // namespace views |
| 241 | 241 |
| 242 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 242 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |