keyboard_ukm_recorder.h 729 B

12345678910111213141516171819202122
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_KEYBOARD_UI_KEYBOARD_UKM_RECORDER_H_
  5. #define ASH_KEYBOARD_UI_KEYBOARD_UKM_RECORDER_H_
  6. #include "ash/keyboard/ui/keyboard_export.h"
  7. #include "services/metrics/public/cpp/ukm_source_id.h"
  8. #include "ui/base/ime/text_input_type.h"
  9. namespace keyboard {
  10. // Records a keyboard show event in UKM, under the VirtualKeyboard.Open metric.
  11. // Ignores invalid sources.
  12. KEYBOARD_EXPORT void RecordUkmKeyboardShown(
  13. ukm::SourceId source,
  14. const ui::TextInputType& input_type);
  15. } // namespace keyboard
  16. #endif // ASH_KEYBOARD_UI_KEYBOARD_UKM_RECORDER_H_