blob: 3506df8c7bc9b1b007bfea46249265651fe46448 [file] [log] [blame]
// Copyright 2018 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_ASSISTANT_UTIL_HISTOGRAM_UTIL_H_
#define ASH_ASSISTANT_UTIL_HISTOGRAM_UTIL_H_
namespace ash {
enum class AssistantEntryPoint;
enum class AssistantExitPoint;
enum class AssistantButtonId;
enum class AssistantQuerySource;
namespace assistant {
namespace util {
// Increment number of queries fired for each entry point.
void IncrementAssistantQueryCountForEntryPoint(AssistantEntryPoint entry_point);
// Record the entry point where Assistant UI becomes visible.
void RecordAssistantEntryPoint(AssistantEntryPoint entry_point);
// Record the exit point where Assistant UI becomes invisible.
void RecordAssistantExitPoint(AssistantExitPoint exit_point);
// Count the number of times buttons are clicked on Assistant UI.
void IncrementAssistantButtonClickCount(AssistantButtonId button_id);
// Record the input source of each query (e.g. voice, typing).
void RecordAssistantQuerySource(AssistantQuerySource source);
} // namespace util
} // namespace assistant
} // namespace ash
#endif // ASH_ASSISTANT_UTIL_HISTOGRAM_UTIL_H_