blob: 7cc718fc702089121f67bf8ae5a89e29936cc587 [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 UI_KEYBOARD_KEYBOARD_UKM_RECORDER_H_
#define UI_KEYBOARD_KEYBOARD_UKM_RECORDER_H_
#include "base/macros.h"
#include "services/metrics/public/cpp/ukm_source_id.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/keyboard/keyboard_export.h"
namespace keyboard {
// Records a keyboard show event in UKM, under the VirtualKeyboard.Open metric.
// Ignores invalid sources.
KEYBOARD_EXPORT void RecordUkmKeyboardShown(
ukm::SourceId source,
const ui::TextInputType& input_type);
} // namespace keyboard
#endif // UI_KEYBOARD_KEYBOARD_UKM_RECORDER_H_