Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Unified Diff: chrome/browser/download/drag_download_item_views.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/drag_download_item_views.cc
diff --git a/chrome/browser/download/drag_download_item_views.cc b/chrome/browser/download/drag_download_item_views.cc
index 5ecfbc8e97345ee56236453623037d6a10e1afd4..9ac601fe7fb572f68d6e30f30318150f9f248e97 100644
--- a/chrome/browser/download/drag_download_item_views.cc
+++ b/chrome/browser/download/drag_download_item_views.cc
@@ -60,7 +60,6 @@ void DragDownloadItem(const content::DownloadItem* download,
ui::FileInfo(full_path, download->GetFileNameToReportUser()));
data.SetFilenames(file_infos);
-#if !defined(TOOLKIT_GTK)
#if defined(USE_AURA)
aura::Window* root_window = view->GetRootWindow();
if (!root_window || !aura::client::GetDragDropClient(root_window))
@@ -86,18 +85,4 @@ void DragDownloadItem(const content::DownloadItem* download,
DROPEFFECT_COPY | DROPEFFECT_LINK,
&effects);
#endif
-
-#else
- GtkWidget* root = gtk_widget_get_toplevel(view);
- if (!root)
- return;
-
- views::NativeWidgetGtk* widget = static_cast<views::NativeWidgetGtk*>(
- views::Widget::GetWidgetForNativeView(root)->native_widget());
- if (!widget)
- return;
-
- widget->DoDrag(data,
- ui::DragDropTypes::DRAG_COPY | ui::DragDropTypes::DRAG_LINK);
-#endif // TOOLKIT_GTK
}

Powered by Google App Engine
This is Rietveld 408576698