1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26

ash / accelerators / top_row_key_usage_recorder.h [blame]

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

#ifndef ASH_ACCELERATORS_TOP_ROW_KEY_USAGE_RECORDER_H_
#define ASH_ACCELERATORS_TOP_ROW_KEY_USAGE_RECORDER_H_

#include "ash/ash_export.h"
#include "ui/events/event_handler.h"

namespace ash {

class ASH_EXPORT TopRowKeyUsageRecorder : public ui::EventHandler {
 public:
  TopRowKeyUsageRecorder();
  TopRowKeyUsageRecorder(const TopRowKeyUsageRecorder&) = delete;
  TopRowKeyUsageRecorder& operator=(const TopRowKeyUsageRecorder&) = delete;
  ~TopRowKeyUsageRecorder() override;

  // ui::EventHandler:
  void OnKeyEvent(ui::KeyEvent* event) override;
};

}  // namespace ash

#endif  // ASH_ACCELERATORS_TOP_ROW_KEY_USAGE_RECORDER_H_