chromium/ui/touch_selection/touch_selection_metrics.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// Duration of inactivity after which we consider a touch selection session to
// have timed out for the purpose of determining session action count metrics.
constexpr base::TimeDelta kSessionTimeoutDuration =;

TouchSelectionMenuAction MapCommandIdToMenuAction(int command_id) {}

// We want to record the touch down count required to get to a successful cursor
// placement or selection, but it's hard to know if this has happened. We'll
// just consider a session to be successful if it ends in a character key event
// or an IME fabricated key event (e.g. from the ChromeOS virtual keyboard).
bool IsSuccessfulSessionEndEvent(const Event& session_end_event) {}

}  // namespace

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 {}

}  // namespace ui