OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ | 5 #ifndef UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ |
6 #define UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ | 6 #define UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ |
7 | 7 |
8 #include "ui/events/event.h" | 8 #include "ui/events/event.h" |
9 #include "ui/base/dragdrop/os_exchange_data.h" | 9 #include "ui/base/dragdrop/os_exchange_data.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 class UI_EXPORT DropTargetEvent : public LocatedEvent { | 13 class UI_BASE_EXPORT DropTargetEvent : public LocatedEvent { |
14 public: | 14 public: |
15 DropTargetEvent(const OSExchangeData& data, | 15 DropTargetEvent(const OSExchangeData& data, |
16 const gfx::Point& location, | 16 const gfx::Point& location, |
17 const gfx::Point& root_location, | 17 const gfx::Point& root_location, |
18 int source_operations); | 18 int source_operations); |
19 | 19 |
20 const OSExchangeData& data() const { return data_; } | 20 const OSExchangeData& data() const { return data_; } |
21 int source_operations() const { return source_operations_; } | 21 int source_operations() const { return source_operations_; } |
22 | 22 |
23 private: | 23 private: |
24 // Data associated with the drag/drop session. | 24 // Data associated with the drag/drop session. |
25 const OSExchangeData& data_; | 25 const OSExchangeData& data_; |
26 | 26 |
27 // Bitmask of supported DragDropTypes::DragOperation by the source. | 27 // Bitmask of supported DragDropTypes::DragOperation by the source. |
28 int source_operations_; | 28 int source_operations_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 30 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace ui | 33 } // namespace ui |
34 | 34 |
35 #endif // UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ | 35 #endif // UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_ |
36 | 36 |
OLD | NEW |