| 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/widget/desktop_root_window_host.h" | 9 #include "ui/views/widget/desktop_root_window_host.h" |
| 10 #include "ui/views/win/hwnd_message_handler_delegate.h" | 10 #include "ui/views/win/hwnd_message_handler_delegate.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 class DesktopActivationClient; | 13 class DesktopActivationClient; |
| 14 class DesktopCursorClient; |
| 14 class DesktopDispatcherClient; | 15 class DesktopDispatcherClient; |
| 15 class FocusManager; | 16 class FocusManager; |
| 17 namespace client { |
| 18 class ScreenPositionClient; |
| 19 } |
| 16 } | 20 } |
| 17 | 21 |
| 18 namespace views { | 22 namespace views { |
| 19 class DesktopCaptureClient; | 23 class DesktopCaptureClient; |
| 20 class HWNDMessageHandler; | 24 class HWNDMessageHandler; |
| 21 | 25 |
| 22 class DesktopRootWindowHostWin : public DesktopRootWindowHost, | 26 class DesktopRootWindowHostWin : public DesktopRootWindowHost, |
| 23 public aura::RootWindowHost, | 27 public aura::RootWindowHost, |
| 24 public HWNDMessageHandlerDelegate { | 28 public HWNDMessageHandlerDelegate { |
| 25 public: | 29 public: |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_; | 176 scoped_ptr<aura::DesktopDispatcherClient> dispatcher_client_; |
| 173 scoped_ptr<aura::FocusManager> focus_manager_; | 177 scoped_ptr<aura::FocusManager> focus_manager_; |
| 174 | 178 |
| 175 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura | 179 // TODO(beng): Consider providing an interface to DesktopNativeWidgetAura |
| 176 // instead of providing this route back to Widget. | 180 // instead of providing this route back to Widget. |
| 177 internal::NativeWidgetDelegate* native_widget_delegate_; | 181 internal::NativeWidgetDelegate* native_widget_delegate_; |
| 178 | 182 |
| 179 aura::RootWindowHostDelegate* root_window_host_delegate_; | 183 aura::RootWindowHostDelegate* root_window_host_delegate_; |
| 180 aura::Window* content_window_; | 184 aura::Window* content_window_; |
| 181 | 185 |
| 186 // In some cases, we set a screen position client on |root_window_|. If we |
| 187 // do, we're responsible for the lifetime. |
| 188 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
| 189 |
| 190 // A simple cursor client which just forwards events to the RootWindow. |
| 191 scoped_ptr<aura::DesktopCursorClient> cursor_client_; |
| 192 |
| 182 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 193 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
| 183 }; | 194 }; |
| 184 | 195 |
| 185 } // namespace views | 196 } // namespace views |
| 186 | 197 |
| 187 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 198 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |