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

Unified Diff: views/widget/drop_target_gtk.cc

Issue 6250014: Move more dnd related files to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « views/widget/drop_helper.cc ('k') | views/widget/drop_target_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/drop_target_gtk.cc
===================================================================
--- views/widget/drop_target_gtk.cc (revision 71798)
+++ views/widget/drop_target_gtk.cc (working copy)
@@ -9,12 +9,12 @@
#include <string>
#include <vector>
-#include "app/drag_drop_types.h"
-#include "app/gtk_dnd_util.h"
#include "base/file_path.h"
#include "base/utf_string_conversions.h"
#include "gfx/point.h"
#include "net/base/net_util.h"
+#include "ui/base/dragdrop/drag_drop_types.h"
+#include "ui/base/dragdrop/gtk_dnd_util.h"
#include "ui/base/dragdrop/os_exchange_data_provider_gtk.h"
#include "views/widget/root_view.h"
#include "views/widget/widget_gtk.h"
@@ -143,13 +143,13 @@
if (!data_->HasAllFormats(requested_formats_, requested_custom_formats_))
return; // Waiting on more data.
- int drag_operation = DragDropTypes::GdkDragActionToDragOperation(
+ int drag_operation = ui::DragDropTypes::GdkDragActionToDragOperation(
context->actions);
gfx::Point root_view_location(x, y);
drag_operation = helper_.OnDragOver(*data_, root_view_location,
drag_operation);
GdkDragAction gdk_action = static_cast<GdkDragAction>(
- DragDropTypes::DragOperationToGdkDragAction(drag_operation));
+ ui::DragDropTypes::DragOperationToGdkDragAction(drag_operation));
if (!received_drop_)
gdk_drag_status(context, gdk_action, time);
@@ -224,14 +224,14 @@
}
}
- int drag_operation = DragDropTypes::GdkDragActionToDragOperation(
+ int drag_operation = ui::DragDropTypes::GdkDragActionToDragOperation(
context->actions);
drag_operation = helper_.OnDragOver(*data_, root_view_location,
drag_operation);
if (!received_drop_) {
GdkDragAction gdk_action =
static_cast<GdkDragAction>(
- DragDropTypes::DragOperationToGdkDragAction(drag_operation));
+ ui::DragDropTypes::DragOperationToGdkDragAction(drag_operation));
gdk_drag_status(context, gdk_action, time);
}
return TRUE;
@@ -240,13 +240,13 @@
void DropTargetGtk::FinishDrop(GdkDragContext* context,
gint x, gint y, guint time) {
gfx::Point root_view_location(x, y);
- int drag_operation = DragDropTypes::GdkDragActionToDragOperation(
+ int drag_operation = ui::DragDropTypes::GdkDragActionToDragOperation(
context->actions);
drag_operation = helper_.OnDrop(*data_, root_view_location,
drag_operation);
GdkDragAction gdk_action =
static_cast<GdkDragAction>(
- DragDropTypes::DragOperationToGdkDragAction(drag_operation));
+ ui::DragDropTypes::DragOperationToGdkDragAction(drag_operation));
gtk_drag_finish(context, gdk_action != 0, (gdk_action & GDK_ACTION_MOVE),
time);
« no previous file with comments | « views/widget/drop_helper.cc ('k') | views/widget/drop_target_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698