summaryrefslogtreecommitdiff
path: root/chromium/ui/views/event_utils.h
blob: cfc553ff6597e9668660438696cf8d4cfd8d3eb2 (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
28
// Copyright (c) 2018 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.

#ifndef UI_VIEWS_EVENT_UTILS_H_
#define UI_VIEWS_EVENT_UTILS_H_

#include "ui/views/views_export.h"

namespace base {
class TimeTicks;
}

namespace ui {
class Event;
}

namespace views {

// Returns true if the event is a mouse, touch, or pointer event that took place
// within the double-click time interval after the |initial_timestamp|.
VIEWS_EXPORT bool IsPossiblyUnintendedInteraction(
    const base::TimeTicks& initial_timestamp,
    const ui::Event& event);

}  // namespace views

#endif  // UI_VIEWS_EVENT_UTILS_H_