summaryrefslogtreecommitdiffstats
path: root/ui/base/dragdrop/drop_target_event.cc
blob: 213fbeeddf002fede71e0aa21c739c50579f7927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 "ui/base/dragdrop/drop_target_event.h"

#include "ui/events/event_utils.h"

namespace ui {

////////////////////////////////////////////////////////////////////////////////
// DropTargetEvent

DropTargetEvent::DropTargetEvent(const OSExchangeData& data,
                                 const gfx::Point& location,
                                 const gfx::Point& root_location,
                                 int source_operations)
    : LocatedEvent(ET_DROP_TARGET_EVENT,
                   gfx::PointF(location),
                   gfx::PointF(root_location),
                   EventTimeForNow(),
                   0),
      data_(data),
      source_operations_(source_operations) {}

}  // namespace ui