| Index: components/keyboard_lock/key_event_filter_installer.cc
|
| diff --git a/components/keyboard_lock/key_event_filter_installer.cc b/components/keyboard_lock/key_event_filter_installer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b709ade036cd5cf74b8a3375f74e60bdea83785
|
| --- /dev/null
|
| +++ b/components/keyboard_lock/key_event_filter_installer.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "components/keyboard_lock/key_event_filter_installer.h"
|
| +
|
| +#include <memory>
|
| +
|
| +#include "base/logging.h"
|
| +#include "components/keyboard_lock/keyboard_lock_host.h"
|
| +
|
| +namespace keyboard_lock {
|
| +
|
| +KeyEventFilterInstaller::KeyEventFilterInstaller(
|
| + KeyEventFilterReceiver* receiver) {
|
| + DCHECK(receiver);
|
| + receiver->SetKeyEventFilter(std::unique_ptr<KeyEventFilter>(this));
|
| +}
|
| +
|
| +KeyEventFilterInstaller::~KeyEventFilterInstaller() = default;
|
| +
|
| +} // namespace keyboard_lock
|
|
|