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