| 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_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 GdkDragContext*, GtkDragResult); | 51 GdkDragContext*, GtkDragResult); |
| 52 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin, | 52 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin, |
| 53 GdkDragContext*); | 53 GdkDragContext*); |
| 54 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd, | 54 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd, |
| 55 GdkDragContext*); | 55 GdkDragContext*); |
| 56 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet, | 56 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet, |
| 57 GdkDragContext*, GtkSelectionData*, guint, guint); | 57 GdkDragContext*, GtkSelectionData*, guint, guint); |
| 58 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose, | 58 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose, |
| 59 GdkEventExpose*); | 59 GdkEventExpose*); |
| 60 | 60 |
| 61 RenderViewHostImpl* GetRenderViewHost() const; | |
| 62 gfx::NativeView GetContentNativeView() const; | 61 gfx::NativeView GetContentNativeView() const; |
| 63 | 62 |
| 64 // The tab we're manging the drag for. | 63 // The tab we're manging the drag for. |
| 65 WebContents* web_contents_; | 64 WebContents* web_contents_; |
| 66 | 65 |
| 67 // The drop data for the current drag (for drags that originate in the render | 66 // The drop data for the current drag (for drags that originate in the render |
| 68 // view). Non-NULL iff there is a current drag. | 67 // view). Non-NULL iff there is a current drag. |
| 69 scoped_ptr<WebDropData> drop_data_; | 68 scoped_ptr<WebDropData> drop_data_; |
| 70 | 69 |
| 71 // The image used for depicting the drag, and the offset between the cursor | 70 // The image used for depicting the drag, and the offset between the cursor |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 GtkWidget* drag_icon_; | 104 GtkWidget* drag_icon_; |
| 106 | 105 |
| 107 ui::GtkSignalRegistrar signals_; | 106 ui::GtkSignalRegistrar signals_; |
| 108 | 107 |
| 109 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); | 108 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace content | 111 } // namespace content |
| 113 | 112 |
| 114 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ | 113 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ |
| OLD | NEW |