| 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 #ifndef VIEWS_WIDGET_DROP_HELPER_H_ | 5 #ifndef VIEWS_WIDGET_DROP_HELPER_H_ |
| 6 #define VIEWS_WIDGET_DROP_HELPER_H_ | 6 #define VIEWS_WIDGET_DROP_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 class OSExchangeData; | |
| 12 | |
| 13 namespace gfx { | 11 namespace gfx { |
| 14 class Point; | 12 class Point; |
| 15 } // namespace gfx | 13 } // namespace gfx |
| 16 | 14 |
| 15 namespace ui { |
| 16 class OSExchangeData; |
| 17 } // namespace ui |
| 18 using ui::OSExchangeData; |
| 19 |
| 17 namespace views { | 20 namespace views { |
| 18 | 21 |
| 19 class RootView; | 22 class RootView; |
| 20 class View; | 23 class View; |
| 21 | 24 |
| 22 // DropHelper provides support for managing the view a drop is going to occur | 25 // DropHelper provides support for managing the view a drop is going to occur |
| 23 // at during dnd as well as sending the view the appropriate dnd methods. | 26 // at during dnd as well as sending the view the appropriate dnd methods. |
| 24 // DropHelper is intended to be used by a class that interacts with the system | 27 // DropHelper is intended to be used by a class that interacts with the system |
| 25 // drag and drop. The system class invokes OnDragOver as the mouse moves, | 28 // drag and drop. The system class invokes OnDragOver as the mouse moves, |
| 26 // then either OnDragExit or OnDrop when the drop is done. | 29 // then either OnDragExit or OnDrop when the drop is done. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 99 |
| 97 // The deepest view under the current drop coordinate. | 100 // The deepest view under the current drop coordinate. |
| 98 View* deepest_view_; | 101 View* deepest_view_; |
| 99 | 102 |
| 100 DISALLOW_COPY_AND_ASSIGN(DropHelper); | 103 DISALLOW_COPY_AND_ASSIGN(DropHelper); |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace views | 106 } // namespace views |
| 104 | 107 |
| 105 #endif // VIEWS_WIDGET_DROP_HELPER_H_ | 108 #endif // VIEWS_WIDGET_DROP_HELPER_H_ |
| OLD | NEW |