| 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // OnDragSourceDrop schedules its main work to be done after IDropTarget::Drop | 47 // OnDragSourceDrop schedules its main work to be done after IDropTarget::Drop |
| 48 // by posting a task to this function. | 48 // by posting a task to this function. |
| 49 void DelayedOnDragSourceDrop(); | 49 void DelayedOnDragSourceDrop(); |
| 50 | 50 |
| 51 // Keep a reference to the window so we can translate the cursor position. | 51 // Keep a reference to the window so we can translate the cursor position. |
| 52 gfx::NativeWindow source_wnd_; | 52 gfx::NativeWindow source_wnd_; |
| 53 | 53 |
| 54 // We use this as a channel to the renderer to tell it about various drag | 54 // We use this as a channel to the renderer to tell it about various drag |
| 55 // drop events that it needs to know about (such as when a drag operation it | 55 // drop events that it needs to know about (such as when a drag operation it |
| 56 // initiated terminates). | 56 // initiated terminates). |
| 57 RenderViewHost* render_view_host_; | 57 WebContents* web_contents_; |
| 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 } // namespace content | 66 } // namespace content |
| 67 | 67 |
| 68 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ | 68 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ |
| OLD | NEW |