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

Unified Diff: views/view.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/event.h ('k') | views/view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
===================================================================
--- views/view.cc (revision 71798)
+++ views/view.cc (working copy)
@@ -9,13 +9,13 @@
#include <iostream>
#endif
-#include "app/drag_drop_types.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "gfx/canvas_skia.h"
#include "gfx/path.h"
#include "third_party/skia/include/core/SkShader.h"
+#include "ui/base/dragdrop/drag_drop_types.h"
#include "views/background.h"
#include "views/layout_manager.h"
#include "views/views_delegate.h"
@@ -497,7 +497,7 @@
if (!enabled)
return result;
- if (drag_operations != DragDropTypes::DRAG_NONE) {
+ if (drag_operations != ui::DragDropTypes::DRAG_NONE) {
drag_info->PossibleDrag(e.location());
return true;
}
@@ -606,7 +606,7 @@
void View::DoDrag(const MouseEvent& e, const gfx::Point& press_pt) {
int drag_operations = GetDragOperations(press_pt);
- if (drag_operations == DragDropTypes::DRAG_NONE)
+ if (drag_operations == ui::DragDropTypes::DRAG_NONE)
return;
OSExchangeData data;
@@ -1143,7 +1143,7 @@
int View::GetDragOperations(const gfx::Point& press_pt) {
return drag_controller_ ?
drag_controller_->GetDragOperations(this, press_pt) :
- DragDropTypes::DRAG_NONE;
+ ui::DragDropTypes::DRAG_NONE;
}
void View::WriteDragData(const gfx::Point& press_pt, OSExchangeData* data) {
@@ -1391,14 +1391,14 @@
}
int View::OnDragUpdated(const DropTargetEvent& event) {
- return DragDropTypes::DRAG_NONE;
+ return ui::DragDropTypes::DRAG_NONE;
}
void View::OnDragExited() {
}
int View::OnPerformDrop(const DropTargetEvent& event) {
- return DragDropTypes::DRAG_NONE;
+ return ui::DragDropTypes::DRAG_NONE;
}
// static
« no previous file with comments | « views/event.h ('k') | views/view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698