| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 GtkWidget* drag_widget_; | 86 GtkWidget* drag_widget_; |
| 87 | 87 |
| 88 // Context created once drag starts. A NULL value indicates that there is | 88 // Context created once drag starts. A NULL value indicates that there is |
| 89 // no drag currently in progress. | 89 // no drag currently in progress. |
| 90 GdkDragContext* drag_context_; | 90 GdkDragContext* drag_context_; |
| 91 | 91 |
| 92 // The file mime type for a drag-out download. | 92 // The file mime type for a drag-out download. |
| 93 string16 wide_download_mime_type_; | 93 string16 wide_download_mime_type_; |
| 94 | 94 |
| 95 // The file name to be saved to for a drag-out download. | 95 // The file name to be saved to for a drag-out download. |
| 96 FilePath download_file_name_; | 96 base::FilePath download_file_name_; |
| 97 | 97 |
| 98 // The URL to download from for a drag-out download. | 98 // The URL to download from for a drag-out download. |
| 99 GURL download_url_; | 99 GURL download_url_; |
| 100 | 100 |
| 101 // The widget that provides visual feedback for the drag. We can't use | 101 // The widget that provides visual feedback for the drag. We can't use |
| 102 // an OwnedWidgetGtk because the GtkWindow initialization code sinks | 102 // an OwnedWidgetGtk because the GtkWindow initialization code sinks |
| 103 // the reference. | 103 // the reference. |
| 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 |