| Index: ash/aura/key_event_watcher_aura.h
|
| diff --git a/ash/aura/key_event_watcher_aura.h b/ash/aura/key_event_watcher_aura.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..83d8ef625c680f11a7e3c9461ad0748f0a0bd82f
|
| --- /dev/null
|
| +++ b/ash/aura/key_event_watcher_aura.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 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_AURA_KEY_EVENT_WATCHER_AURA_H_
|
| +#define ASH_AURA_KEY_EVENT_WATCHER_AURA_H_
|
| +
|
| +#include <map>
|
| +
|
| +#include "ash/ash_export.h"
|
| +#include "ash/common/key_event_watcher.h"
|
| +#include "ui/events/event_handler.h"
|
| +
|
| +namespace ui {
|
| +class KeyEvent;
|
| +}
|
| +
|
| +namespace ash {
|
| +
|
| +// An EventHandler based KeyEventWatcher implementation.
|
| +class ASH_EXPORT KeyEventWatcherAura : public KeyEventWatcher,
|
| + public ui::EventHandler {
|
| + public:
|
| + KeyEventWatcherAura();
|
| + ~KeyEventWatcherAura() override;
|
| +
|
| + // ui::EventHandler:
|
| + void OnKeyEvent(ui::KeyEvent* event) override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(KeyEventWatcherAura);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_AURA_KEY_EVENT_WATCHER_AURA_H_
|
|
|