blob: 5a8abf1f40cc7de50e764ce07787ebafed421067 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/component_export.h"
#include "base/macros.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/events/event.h"
namespace ui {
// Note: This object must not outlive the OSExchangeData used to construct it,
// as it stores that by reference.
class COMPONENT_EXPORT(UI_BASE) DropTargetEvent : public LocatedEvent {
DropTargetEvent(const OSExchangeData& data,
const gfx::PointF& location,
const gfx::PointF& root_location,
int source_operations);
DropTargetEvent(const DropTargetEvent& other);
const OSExchangeData& data() const { return data_; }
int source_operations() const { return source_operations_; }
// Data associated with the drag/drop session.
const OSExchangeData& data_;
// Bitmask of supported DragDropTypes::DragOperation by the source.
int source_operations_;
} // namespace ui