blob: 4e618a99b875257c67dfe61dead15829f9ed7c5b (
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
|
// Copyright (c) 2012 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_BASE_GESTURES_GESTURE_UTIL_H_
#define UI_BASE_GESTURES_GESTURE_UTIL_H_
#include "ui/base/ui_export.h"
namespace gfx {
class Point;
} // namespace gfx
namespace ui {
namespace gestures {
// Returns true if the distance between points |p1| and |p2| is less than a
// threshold. This is generally used to determine if a touch point has moved
// enough to be no longer considered a tap.
UI_EXPORT bool IsInsideManhattanSquare(const gfx::Point& p1,
const gfx::Point& p2);
} // namespace gestures
} // namespace ui
#endif // UI_BASE_GESTURES_GESTURE_UTIL_H_
|