OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "gfx/point.h" | |
16 #include "gfx/native_widget_types.h" | |
17 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
19 #include "ui/base/gtk/gtk_signal.h" | 17 #include "ui/base/gtk/gtk_signal.h" |
20 #include "ui/base/gtk/gtk_signal_registrar.h" | 18 #include "ui/base/gtk/gtk_signal_registrar.h" |
| 19 #include "ui/gfx/native_widget_types.h" |
| 20 #include "ui/gfx/point.h" |
21 | 21 |
22 class SkBitmap; | 22 class SkBitmap; |
23 class TabContents; | 23 class TabContents; |
24 class TabContentsView; | 24 class TabContentsView; |
25 struct WebDropData; | 25 struct WebDropData; |
26 | 26 |
27 // TabContentsDragSource takes care of managing the drag from a TabContents | 27 // TabContentsDragSource takes care of managing the drag from a TabContents |
28 // with Gtk. | 28 // with Gtk. |
29 class TabContentsDragSource : public MessageLoopForUI::Observer { | 29 class TabContentsDragSource : public MessageLoopForUI::Observer { |
30 public: | 30 public: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // an OwnedWidgetGtk because the GtkWindow initialization code sinks | 101 // an OwnedWidgetGtk because the GtkWindow initialization code sinks |
102 // the reference. | 102 // the reference. |
103 GtkWidget* drag_icon_; | 103 GtkWidget* drag_icon_; |
104 | 104 |
105 ui::GtkSignalRegistrar signals_; | 105 ui::GtkSignalRegistrar signals_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); | 107 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 110 #endif // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ |
OLD | NEW |