forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhighlighter_gesture_util.h
34 lines (26 loc) · 966 Bytes
/
highlighter_gesture_util.h
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
29
30
31
32
33
34
// 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.
#ifndef ASH_HIGHLIGHTER_HIGHLIGHTER_GESTURE_UTIL_H_
#define ASH_HIGHLIGHTER_HIGHLIGHTER_GESTURE_UTIL_H_
#include "ash/ash_export.h"
#include "ui/gfx/geometry/rect_f.h"
namespace fast_ink {
class FastInkPoints;
}
namespace ash {
// Highlighter gesture recognition result type. This enum is used to back
// an UMA histogram and should be treated as append-only.
enum class HighlighterGestureType {
kNotRecognized = 0,
kHorizontalStroke,
kClosedShape,
kGestureCount
};
// Returns the recognized gesture type.
HighlighterGestureType ASH_EXPORT
DetectHighlighterGesture(const gfx::RectF& box,
const gfx::SizeF& pen_tip_size,
const fast_ink::FastInkPoints& points);
} // namespace ash
#endif // ASH_HIGHLIGHTER_HIGHLIGHTER_GESTURE_UTIL_H_