| 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_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_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_aura/desktop_root_window_host.h" | 10 #include "ui/views/widget/desktop_aura/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 namespace client { | 14 namespace client { |
| 15 class DefaultCaptureClient; | 15 class DefaultCaptureClient; |
| 16 class FocusClient; | 16 class FocusClient; |
| 17 class ScreenPositionClient; | 17 class ScreenPositionClient; |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace views { | 21 namespace views { |
| 22 class DesktopActivationClient; | 22 class DesktopActivationClient; |
| 23 class DesktopCursorClient; | 23 class DesktopCursorClient; |
| 24 class DesktopDispatcherClient; | 24 class DesktopDispatcherClient; |
| 25 class DesktopDragDropClientWin; | 25 class DesktopDragDropClientWin; |
| 26 class HWNDMessageHandler; | 26 class HWNDMessageHandler; |
| 27 | 27 |
| 28 namespace corewm { |
| 29 class CursorManager; |
| 30 } |
| 31 |
| 28 class VIEWS_EXPORT DesktopRootWindowHostWin | 32 class VIEWS_EXPORT DesktopRootWindowHostWin |
| 29 : public DesktopRootWindowHost, | 33 : public DesktopRootWindowHost, |
| 30 public aura::RootWindowHost, | 34 public aura::RootWindowHost, |
| 31 public HWNDMessageHandlerDelegate { | 35 public HWNDMessageHandlerDelegate { |
| 32 public: | 36 public: |
| 33 DesktopRootWindowHostWin( | 37 DesktopRootWindowHostWin( |
| 34 internal::NativeWidgetDelegate* native_widget_delegate, | 38 internal::NativeWidgetDelegate* native_widget_delegate, |
| 35 DesktopNativeWidgetAura* desktop_native_widget_aura, | 39 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 36 const gfx::Rect& initial_bounds); | 40 const gfx::Rect& initial_bounds); |
| 37 virtual ~DesktopRootWindowHostWin(); | 41 virtual ~DesktopRootWindowHostWin(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 222 |
| 219 DesktopNativeWidgetAura* desktop_native_widget_aura_; | 223 DesktopNativeWidgetAura* desktop_native_widget_aura_; |
| 220 | 224 |
| 221 aura::RootWindowHostDelegate* root_window_host_delegate_; | 225 aura::RootWindowHostDelegate* root_window_host_delegate_; |
| 222 aura::Window* content_window_; | 226 aura::Window* content_window_; |
| 223 | 227 |
| 224 // In some cases, we set a screen position client on |root_window_|. If we | 228 // In some cases, we set a screen position client on |root_window_|. If we |
| 225 // do, we're responsible for the lifetime. | 229 // do, we're responsible for the lifetime. |
| 226 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 230 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
| 227 | 231 |
| 228 // A simple cursor client which just forwards events to the RootWindow. | 232 // Controls visibility of the cursor. |
| 229 scoped_ptr<DesktopCursorClient> cursor_client_; | 233 scoped_ptr<views::corewm::CursorManager> cursor_client_; |
| 230 | 234 |
| 231 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_; | 235 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_; |
| 232 | 236 |
| 233 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
| 234 }; | 238 }; |
| 235 | 239 |
| 236 } // namespace views | 240 } // namespace views |
| 237 | 241 |
| 238 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 242 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |