| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/views/widget/root_view.h" | 5 #include "chrome/views/widget/root_view.h" |
| 6 | 6 |
| 7 #include "app/drag_drop_types.h" |
| 7 #include "app/gfx/chrome_canvas.h" | 8 #include "app/gfx/chrome_canvas.h" |
| 8 #include "base/base_drag_source.h" | 9 #include "base/base_drag_source.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "chrome/common/drag_drop_types.h" | |
| 11 #include "chrome/views/widget/root_view_drop_target.h" | 11 #include "chrome/views/widget/root_view_drop_target.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 void RootView::UpdateCursor(const MouseEvent& e) { | 15 void RootView::UpdateCursor(const MouseEvent& e) { |
| 16 View *v = GetViewForPoint(e.location()); | 16 View *v = GetViewForPoint(e.location()); |
| 17 | 17 |
| 18 if (v && v != this) { | 18 if (v && v != this) { |
| 19 gfx::Point l(e.location()); | 19 gfx::Point l(e.location()); |
| 20 View::ConvertPointToView(this, v, &l); | 20 View::ConvertPointToView(this, v, &l); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // If the view is removed during the drag operation, drag_view_ is set to | 61 // If the view is removed during the drag operation, drag_view_ is set to |
| 62 // NULL. | 62 // NULL. |
| 63 if (drag_view_ == view) { | 63 if (drag_view_ == view) { |
| 64 View* drag_view = drag_view_; | 64 View* drag_view = drag_view_; |
| 65 drag_view_ = NULL; | 65 drag_view_ = NULL; |
| 66 drag_view->OnDragDone(); | 66 drag_view->OnDragDone(); |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 } | 70 } |
| OLD | NEW |