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_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
6 #define CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 6 #define CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "app/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "webkit/api/public/WebDragOperation.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
14 | 14 |
15 class TabContents; | 15 class TabContents; |
16 class TabContentsView; | 16 class TabContentsView; |
17 struct WebDropData; | 17 struct WebDropData; |
18 | 18 |
19 // TabContentsDragSource takes care of managing the drag from a TabContents | 19 // TabContentsDragSource takes care of managing the drag from a TabContents |
20 // with Gtk. | 20 // with Gtk. |
21 class TabContentsDragSource : public MessageLoopForUI::Observer { | 21 class TabContentsDragSource : public MessageLoopForUI::Observer { |
22 public: | 22 public: |
23 explicit TabContentsDragSource(TabContentsView* tab_contents_view); | 23 explicit TabContentsDragSource(TabContentsView* tab_contents_view); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // This is the widget we use to initiate drags. Since we don't use the | 79 // This is the widget we use to initiate drags. Since we don't use the |
80 // renderer widget, we can persist drags even when our contents is switched | 80 // renderer widget, we can persist drags even when our contents is switched |
81 // out. | 81 // out. |
82 GtkWidget* drag_widget_; | 82 GtkWidget* drag_widget_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); | 84 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); |
85 }; | 85 }; |
86 | 86 |
87 #endif // CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 87 #endif // CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
OLD | NEW |