#include "chrome/browser/metrics/desktop_session_duration/touch_mode_stats_tracker.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/no_destructor.h"
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h"
#include "ui/base/pointer/touch_ui_controller.h"
void TouchModeStatsTracker::Initialize(
metrics::DesktopSessionDurationTracker* session_duration_tracker,
ui::TouchUiController* touch_ui_controller) { … }
TouchModeStatsTracker::TouchModeStatsTracker(
metrics::DesktopSessionDurationTracker* session_duration_tracker,
ui::TouchUiController* touch_ui_controller)
: … { … }
TouchModeStatsTracker::~TouchModeStatsTracker() = default;
const char TouchModeStatsTracker::kSessionTouchDurationHistogramName[] = …;
void TouchModeStatsTracker::TouchModeChanged() { … }
void TouchModeStatsTracker::OnSessionStarted(base::TimeTicks session_start) { … }
void TouchModeStatsTracker::OnSessionEnded(base::TimeDelta session_length,
base::TimeTicks session_end) { … }