Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / base / dragdrop / drop_target_event.h
blob18c0630f52fad66854cd43a0014c9cf55bdab52b
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"
11 namespace ui {
13 class UI_BASE_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);
20 const OSExchangeData& data() const { return data_; }
21 int source_operations() const { return source_operations_; }
23 private:
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);
33 } // namespace ui
35 #endif // UI_BASE_DRAGDROP_DROP_TARGET_EVENT_H_