| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 GdkDragContext*, GtkDragResult); | 50 GdkDragContext*, GtkDragResult); |
| 51 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin, | 51 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin, |
| 52 GdkDragContext*); | 52 GdkDragContext*); |
| 53 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd, | 53 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd, |
| 54 GdkDragContext*); | 54 GdkDragContext*); |
| 55 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet, | 55 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet, |
| 56 GdkDragContext*, GtkSelectionData*, guint, guint); | 56 GdkDragContext*, GtkSelectionData*, guint, guint); |
| 57 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose, | 57 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose, |
| 58 GdkEventExpose*); | 58 GdkEventExpose*); |
| 59 | 59 |
| 60 content::RenderViewHostImpl* GetRenderViewHost() const; | 60 RenderViewHostImpl* GetRenderViewHost() const; |
| 61 gfx::NativeView GetContentNativeView() const; | 61 gfx::NativeView GetContentNativeView() const; |
| 62 | 62 |
| 63 // The tab we're manging the drag for. | 63 // The tab we're manging the drag for. |
| 64 content::WebContents* web_contents_; | 64 WebContents* web_contents_; |
| 65 | 65 |
| 66 // 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 |
| 67 // view). Non-NULL iff there is a current drag. | 67 // view). Non-NULL iff there is a current drag. |
| 68 scoped_ptr<WebDropData> drop_data_; | 68 scoped_ptr<WebDropData> drop_data_; |
| 69 | 69 |
| 70 // 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 |
| 71 // and the top left pixel. | 71 // and the top left pixel. |
| 72 GdkPixbuf* drag_pixbuf_; | 72 GdkPixbuf* drag_pixbuf_; |
| 73 gfx::Point image_offset_; | 73 gfx::Point image_offset_; |
| 74 | 74 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 104 GtkWidget* drag_icon_; | 104 GtkWidget* drag_icon_; |
| 105 | 105 |
| 106 ui::GtkSignalRegistrar signals_; | 106 ui::GtkSignalRegistrar signals_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); | 108 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace content | 111 } // namespace content |
| 112 | 112 |
| 113 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ | 113 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ |
| OLD | NEW |