Chromium Code Reviews| 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; | |
| 26 class DropTargetWin; | |
| 25 class HWNDMessageHandler; | 27 class HWNDMessageHandler; |
| 26 namespace corewm { | 28 namespace corewm { |
| 27 class CompoundEventFilter; | 29 class CompoundEventFilter; |
| 28 class InputMethodEventFilter; | 30 class InputMethodEventFilter; |
| 29 } | 31 } |
| 30 | 32 |
| 31 class VIEWS_EXPORT DesktopRootWindowHostWin | 33 class VIEWS_EXPORT DesktopRootWindowHostWin |
| 32 : public DesktopRootWindowHost, | 34 : public DesktopRootWindowHost, |
| 33 public aura::RootWindowHost, | 35 public aura::RootWindowHost, |
| 34 public HWNDMessageHandlerDelegate { | 36 public HWNDMessageHandlerDelegate { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 aura::RootWindowHostDelegate* root_window_host_delegate_; | 226 aura::RootWindowHostDelegate* root_window_host_delegate_; |
| 225 aura::Window* content_window_; | 227 aura::Window* content_window_; |
| 226 | 228 |
| 227 // In some cases, we set a screen position client on |root_window_|. If we | 229 // In some cases, we set a screen position client on |root_window_|. If we |
| 228 // do, we're responsible for the lifetime. | 230 // do, we're responsible for the lifetime. |
| 229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; | 231 scoped_ptr<aura::client::ScreenPositionClient> position_client_; |
| 230 | 232 |
| 231 // A simple cursor client which just forwards events to the RootWindow. | 233 // A simple cursor client which just forwards events to the RootWindow. |
| 232 scoped_ptr<DesktopCursorClient> cursor_client_; | 234 scoped_ptr<DesktopCursorClient> cursor_client_; |
| 233 | 235 |
| 236 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_; | |
| 237 | |
| 234 // The RootWindow's CompoundEventFilter. | 238 // The RootWindow's CompoundEventFilter. |
| 235 views::corewm::CompoundEventFilter* root_window_event_filter_; | 239 views::corewm::CompoundEventFilter* root_window_event_filter_; |
| 236 | 240 |
| 241 scoped_refptr<DropTargetWin> drop_target_; | |
|
Ben Goodger (Google)
2012/12/05 22:23:19
is there a reason this can't be owned by ddc?
jam
2012/12/05 23:04:30
it's currently accessed in HandleDestroying
| |
| 242 | |
| 237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); | 243 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); |
| 238 }; | 244 }; |
| 239 | 245 |
| 240 } // namespace views | 246 } // namespace views |
| 241 | 247 |
| 242 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 248 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |