| 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_DEST_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include "app/gtk_signal.h" | |
| 12 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 13 #include "base/task.h" | 12 #include "base/task.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 13 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 15 #include "ui/base/gtk/gtk_signal.h" |
| 16 #include "webkit/glue/webdropdata.h" | 16 #include "webkit/glue/webdropdata.h" |
| 17 | 17 |
| 18 class TabContents; | 18 class TabContents; |
| 19 | 19 |
| 20 // A helper class that handles DnD for drops in the renderer. In GTK parlance, | 20 // A helper class that handles DnD for drops in the renderer. In GTK parlance, |
| 21 // this handles destination-side DnD, but not source-side DnD. | 21 // this handles destination-side DnD, but not source-side DnD. |
| 22 class WebDragDestGtk { | 22 class WebDragDestGtk { |
| 23 public: | 23 public: |
| 24 WebDragDestGtk(TabContents* tab_contents, GtkWidget* widget); | 24 WebDragDestGtk(TabContents* tab_contents, GtkWidget* widget); |
| 25 virtual ~WebDragDestGtk(); | 25 virtual ~WebDragDestGtk(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // The bookmark data for the current tab. This will be empty if there is not | 85 // The bookmark data for the current tab. This will be empty if there is not |
| 86 // a native bookmark drag (or we haven't gotten the data from the source yet). | 86 // a native bookmark drag (or we haven't gotten the data from the source yet). |
| 87 BookmarkNodeData bookmark_drag_data_; | 87 BookmarkNodeData bookmark_drag_data_; |
| 88 | 88 |
| 89 ScopedRunnableMethodFactory<WebDragDestGtk> method_factory_; | 89 ScopedRunnableMethodFactory<WebDragDestGtk> method_factory_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); | 91 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ | 94 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
| OLD | NEW |