Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.h

Issue 11444013: Get drag and drop working for win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move DropTargetWin to DesktopDragDropClientWin Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 HWNDMessageHandler; 26 class HWNDMessageHandler;
26 namespace corewm { 27 namespace corewm {
27 class CompoundEventFilter; 28 class CompoundEventFilter;
28 class InputMethodEventFilter; 29 class InputMethodEventFilter;
29 } 30 }
30 31
31 class VIEWS_EXPORT DesktopRootWindowHostWin 32 class VIEWS_EXPORT DesktopRootWindowHostWin
32 : public DesktopRootWindowHost, 33 : public DesktopRootWindowHost,
33 public aura::RootWindowHost, 34 public aura::RootWindowHost,
34 public HWNDMessageHandlerDelegate { 35 public HWNDMessageHandlerDelegate {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 aura::RootWindowHostDelegate* root_window_host_delegate_; 225 aura::RootWindowHostDelegate* root_window_host_delegate_;
225 aura::Window* content_window_; 226 aura::Window* content_window_;
226 227
227 // 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
228 // do, we're responsible for the lifetime. 229 // do, we're responsible for the lifetime.
229 scoped_ptr<aura::client::ScreenPositionClient> position_client_; 230 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
230 231
231 // A simple cursor client which just forwards events to the RootWindow. 232 // A simple cursor client which just forwards events to the RootWindow.
232 scoped_ptr<DesktopCursorClient> cursor_client_; 233 scoped_ptr<DesktopCursorClient> cursor_client_;
233 234
235 scoped_ptr<DesktopDragDropClientWin> drag_drop_client_;
236
234 // The RootWindow's CompoundEventFilter. 237 // The RootWindow's CompoundEventFilter.
235 views::corewm::CompoundEventFilter* root_window_event_filter_; 238 views::corewm::CompoundEventFilter* root_window_event_filter_;
236 239
237 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 240 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin);
238 }; 241 };
239 242
240 } // namespace views 243 } // namespace views
241 244
242 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 245 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698