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.
5 #ifndef UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_
6 #define UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_
8 #include "ui/events/event.h"
9 #include "ui/base/dragdrop/os_exchange_data.h"
13 class UI_BASE_EXPORT DropTargetEvent
: public LocatedEvent
{
15 DropTargetEvent(const OSExchangeData
& data
,
16 const gfx::Point
& location
,
17 const gfx::Point
& root_location
,
18 int source_operations
);
20 const OSExchangeData
& data() const { return data_
; }
21 int source_operations() const { return source_operations_
; }
24 // Data associated with the drag/drop session.
25 const OSExchangeData
& data_
;
27 // Bitmask of supported DragDropTypes::DragOperation by the source.
28 int source_operations_
;
30 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent
);
35 #endif // UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_