OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "webkit/api/public/WebDragOperation.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
13 #include "webkit/glue/webdropdata.h" | 13 #include "webkit/glue/webdropdata.h" |
14 | 14 |
15 class TabContents; | 15 class TabContents; |
16 | 16 |
17 // A helper class that handles DnD for drops in the renderer. In GTK parlance, | 17 // A helper class that handles DnD for drops in the renderer. In GTK parlance, |
18 // this handles destination-side DnD, but not source-side DnD. | 18 // this handles destination-side DnD, but not source-side DnD. |
19 class WebDragDestGtk { | 19 class WebDragDestGtk { |
20 public: | 20 public: |
21 WebDragDestGtk(TabContents* tab_contents, GtkWidget* widget); | 21 WebDragDestGtk(TabContents* tab_contents, GtkWidget* widget); |
22 ~WebDragDestGtk(); | 22 ~WebDragDestGtk(); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // destroyed, but we have to cancel the handler if we are destroyed before | 96 // destroyed, but we have to cancel the handler if we are destroyed before |
97 // |widget_| is. | 97 // |widget_| is. |
98 int destroy_handler_; | 98 int destroy_handler_; |
99 | 99 |
100 ScopedRunnableMethodFactory<WebDragDestGtk> method_factory_; | 100 ScopedRunnableMethodFactory<WebDragDestGtk> method_factory_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); | 102 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); |
103 }; | 103 }; |
104 | 104 |
105 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ | 105 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
OLD | NEW |