OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/common/notification_observer.h" | 10 #include "chrome/common/notification_observer.h" |
11 #include "chrome/common/notification_registrar.h" | 11 #include "chrome/common/notification_registrar.h" |
12 #include "gfx/native_widget_types.h" | |
13 #include "gfx/point.h" | |
14 #include "ui/base/dragdrop/drag_source.h" | 12 #include "ui/base/dragdrop/drag_source.h" |
| 13 #include "ui/gfx/native_widget_types.h" |
| 14 #include "ui/gfx/point.h" |
15 | 15 |
16 class RenderViewHost; | 16 class RenderViewHost; |
17 class TabContents; | 17 class TabContents; |
18 | 18 |
19 // An IDropSource implementation for a TabContents. Handles notifications sent | 19 // An IDropSource implementation for a TabContents. Handles notifications sent |
20 // by an active drag-drop operation as the user mouses over other drop targets | 20 // by an active drag-drop operation as the user mouses over other drop targets |
21 // on their system. This object tells Windows whether or not the drag should | 21 // on their system. This object tells Windows whether or not the drag should |
22 // continue, and supplies the appropriate cursors. | 22 // continue, and supplies the appropriate cursors. |
23 class WebDragSource : public ui::DragSource, | 23 class WebDragSource : public ui::DragSource, |
24 public NotificationObserver { | 24 public NotificationObserver { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 RenderViewHost* render_view_host_; | 57 RenderViewHost* render_view_host_; |
58 | 58 |
59 NotificationRegistrar registrar_; | 59 NotificationRegistrar registrar_; |
60 | 60 |
61 DWORD effect_; | 61 DWORD effect_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(WebDragSource); | 63 DISALLOW_COPY_AND_ASSIGN(WebDragSource); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 66 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
OLD | NEW |