summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/drag_descriptor.cc
blob: edadab99ab440b450c04d3042750e4cf8abc6a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 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/keyboard/drag_descriptor.h"

#include "ui/events/event.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/vector2d.h"

namespace keyboard {

DragDescriptor::DragDescriptor(const gfx::Point& keyboard_location,
                               const gfx::Vector2d& click_offset,
                               bool is_touch_drag,
                               ui::PointerId pointer_id)
    : original_keyboard_location_(keyboard_location),
      original_click_offset_(click_offset),
      is_touch_drag_(is_touch_drag),
      pointer_id_(pointer_id) {}

}  // namespace keyboard