chromium/chrome/browser/metrics/desktop_session_duration/touch_mode_stats_tracker.h

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

#ifndef CHROME_BROWSER_METRICS_DESKTOP_SESSION_DURATION_TOUCH_MODE_STATS_TRACKER_H_
#define CHROME_BROWSER_METRICS_DESKTOP_SESSION_DURATION_TOUCH_MODE_STATS_TRACKER_H_

#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h"
#include "ui/base/pointer/touch_ui_controller.h"

// Records active time spent in touch mode. Emits one sample to
// |kSessionTouchDurationHistogram| for every sample in
// "Session.TotalDuration", which is managed by
// |metrics::DesktopSessionDurationTracker|. Each sample is the time
// spent in touch mode within the corresponding session.
class TouchModeStatsTracker
    : public metrics::DesktopSessionDurationTracker::Observer {};

#endif  // CHROME_BROWSER_METRICS_DESKTOP_SESSION_DURATION_TOUCH_MODE_STATS_TRACKER_H_