#include "ui/touch_selection/touch_selection_metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "ui/base/pointer/touch_editing_controller.h"
#include "ui/events/event.h"
namespace ui {
namespace {
constexpr int kSessionTouchDownCountMin = …;
constexpr int kSessionTouchDownCountMax = …;
constexpr int kSessionTouchDownCountBuckets = …;
constexpr base::TimeDelta kSessionTimeoutDuration = …;
TouchSelectionMenuAction MapCommandIdToMenuAction(int command_id) { … }
bool IsSuccessfulSessionEndEvent(const Event& session_end_event) { … }
}
void RecordTouchSelectionDrag(TouchSelectionDragType drag_type) { … }
void RecordTouchSelectionMenuCommandAction(int command_id) { … }
void RecordTouchSelectionMenuEllipsisAction() { … }
void RecordTouchSelectionMenuSmartAction() { … }
TouchSelectionSessionMetricsRecorder::TouchSelectionSessionMetricsRecorder() =
default;
TouchSelectionSessionMetricsRecorder::~TouchSelectionSessionMetricsRecorder() =
default;
void TouchSelectionSessionMetricsRecorder::OnCursorActivationEvent() { … }
void TouchSelectionSessionMetricsRecorder::OnSelectionActivationEvent() { … }
void TouchSelectionSessionMetricsRecorder::OnTouchEvent(bool is_down_event) { … }
void TouchSelectionSessionMetricsRecorder::OnMenuCommand(
bool should_end_session) { … }
void TouchSelectionSessionMetricsRecorder::OnSessionEndEvent(
const Event& session_end_event) { … }
void TouchSelectionSessionMetricsRecorder::ResetMetrics() { … }
void TouchSelectionSessionMetricsRecorder::RefreshSessionStatus() { … }
bool TouchSelectionSessionMetricsRecorder::IsSessionActive() const { … }
void TouchSelectionSessionMetricsRecorder::RecordSessionMetrics() const { … }
}