| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_WIDGET_DROP_HELPER_H_ | 5 #ifndef UI_VIEWS_WIDGET_DROP_HELPER_H_ |
| 6 #define UI_VIEWS_WIDGET_DROP_HELPER_H_ | 6 #define UI_VIEWS_WIDGET_DROP_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 int drag_operation); | 87 int drag_operation); |
| 88 int NotifyDragOver(const OSExchangeData& data, | 88 int NotifyDragOver(const OSExchangeData& data, |
| 89 const gfx::Point& root_view_location, | 89 const gfx::Point& root_view_location, |
| 90 int drag_operation); | 90 int drag_operation); |
| 91 void NotifyDragExit(); | 91 void NotifyDragExit(); |
| 92 | 92 |
| 93 // RootView we were created for. | 93 // RootView we were created for. |
| 94 View* root_view_; | 94 View* root_view_; |
| 95 | 95 |
| 96 // View we're targeting events at. | 96 // View we're targeting events at. |
| 97 View* target_view_; | 97 View* target_view_ = nullptr; |
| 98 | 98 |
| 99 // The deepest view under the current drop coordinate. | 99 // The deepest view under the current drop coordinate. |
| 100 View* deepest_view_; | 100 View* deepest_view_ = nullptr; |
| 101 |
| 102 bool drag_over_widget_ = false; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(DropHelper); | 104 DISALLOW_COPY_AND_ASSIGN(DropHelper); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace views | 107 } // namespace views |
| 106 | 108 |
| 107 #endif // UI_VIEWS_WIDGET_DROP_HELPER_H_ | 109 #endif // UI_VIEWS_WIDGET_DROP_HELPER_H_ |
| OLD | NEW |